<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Qasim Ali Khawaja&#039;s Island</title>
	<atom:link href="http://qasimalikhawaja.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://qasimalikhawaja.wordpress.com</link>
	<description>Internet Hitch Hiking</description>
	<lastBuildDate>Tue, 14 Dec 2010 16:12:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='qasimalikhawaja.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Qasim Ali Khawaja&#039;s Island</title>
		<link>http://qasimalikhawaja.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://qasimalikhawaja.wordpress.com/osd.xml" title="Qasim Ali Khawaja&#039;s Island" />
	<atom:link rel='hub' href='http://qasimalikhawaja.wordpress.com/?pushpress=hub'/>
		<item>
		<title>List the languages of each countries</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/10/18/list-the-languages-of-each-countries/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/10/18/list-the-languages-of-each-countries/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 12:06:12 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Languages]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=231</guid>
		<description><![CDATA[Below is a list of actions that I have took to extract the languages of each countries. I am sharing the procedure so If you can suggest some optimal procedure to carry out the same task. Steps: Visit the CIA world fact book page as mentioned above Copy that html code while holds the required [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=231&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is a list of actions that I have took to extract the languages of  each countries. I am sharing the procedure so If you can suggest some  optimal procedure to carry out the same task.</p>
<p><strong>Steps:<br />
</strong></p>
<ol>
<li>Visit the <a href="https://www.cia.gov/library/publications/the-world-factbook/fields/2098.html" target="_blank">CIA world fact book</a> page as mentioned above</li>
<li>Copy that html code while holds the required data using Firebug</li>
<li>Browse the file and copy the fields using pointer</li>
<li>Paste the fields in the text file named languages.txt</li>
<li>Learn how to read the file line by line from php manual</li>
<li>Apply the following PHP script to filter out the data in terms of Country and Native languages</li>
</ol>
<blockquote><p>&lt;?php<br />
$myfile = &#8216;languages.txt&#8217;;<br />
$lines = file($myfile);<br />
for($i=count($lines);$i&gt;0;$i&#8211;){</p>
<p>$arr = explode(&#8216; &#8216;, $lines[$i], 2); // Seperate Country and Native languages<br />
$native = $arr[1]; // Only native languages sperated by &#8220;,&#8221;<br />
echo &#8220;&lt;pre&gt;&#8221;;<br />
echo $arr[0];<br />
print_r(explode(&#8216;,&#8217;, $native));<br />
echo &#8220;&lt;/pre&gt;&#8221;;<br />
}<br />
?&gt;</p></blockquote>
<p><strong>What&#8217;s left:<br />
</strong>Populating the database with the above extracted data.</p>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/web-services/'>Web Services</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/languages/'>Languages</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=231&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/10/18/list-the-languages-of-each-countries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>
	</item>
		<item>
		<title>IP to country conversion</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/10/18/ip-to-country-conversion/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/10/18/ip-to-country-conversion/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 10:06:30 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[geoip]]></category>
		<category><![CDATA[ip to country]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=217</guid>
		<description><![CDATA[Though there are a lot of available solutions to tackle this problem but the one reside in the Google Code is the perfect one with simplicity and ease of use. Below is the work around to setup a test case; - Explore the code: Visit the project&#8217;s profile and read about the documentation. Download the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=217&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Though there are a lot of available solutions to tackle this problem but the one reside in the Google Code is the perfect one with simplicity and ease of use. Below is the work around to setup a test case; -</p>
<p><strong>Explore the code:</strong></p>
<p>Visit the <a href="http://code.google.com/p/php-ip-2-country/" target="_blank">project&#8217;s profile</a> and read about the documentation.</p>
<p><strong>Download the code;</strong></p>
<p>Get the latest code from the <a href="http://code.google.com/p/php-ip-2-country/downloads/list" target="_blank">repo</a> and extract it to the root directory of the web server. Linux &#8211; /var/www/phpip2country Windows &#8211; C:\xampp\htdocs\phpip2country</p>
<p><strong>Test the code: </strong></p>
<p>Browse the directory in the browser. http://localhost/phpip2country/index.php</p>
<p>You need to upload the sql file which is actually a mapper for IP and Countries.</p>
<p><strong>Results: </strong></p>
<blockquote><p><strong>IP: </strong>127.0.0.1<br />
<strong>IP numerical Value: </strong>2130706433<br />
<strong>IP registry: </strong>IANA<br />
<strong>IP assigned (Y-m-d H:i:s): </strong>1983-01-01 05:00:00<br />
<strong>IP country RIR (Regional Internet Registry) representation: </strong>ZZ<br />
<strong>IP Country Abbreviation: </strong>ZZZ<br />
<strong>IP country name: </strong>RESERVED<br />
<strong>IP range: </strong>array (<br />
&#8216;FROM&#8217; =&gt; &#8217;127.0.0.0&#8242;,<br />
&#8216;TO&#8217; =&gt; &#8217;127.255.255.255&#8242;,<br />
)<br />
<strong>IP range numerical: </strong>array (<br />
&#8216;FROM&#8217; =&gt; &#8217;2130706432&#8242;,<br />
&#8216;TO&#8217; =&gt; &#8217;2147483647&#8242;,<br />
)<br />
<strong>full IP informations array: </strong>array (<br />
&#8216;IP_FROM&#8217; =&gt; &#8217;2130706432&#8242;,<br />
&#8216;IP_TO&#8217; =&gt; &#8217;2147483647&#8242;,<br />
&#8216;REGISTRY&#8217; =&gt; &#8216;IANA&#8217;,<br />
&#8216;ASSIGNED&#8217; =&gt; &#8217;410227200&#8242;,<br />
&#8216;CTRY&#8217; =&gt; &#8216;ZZ&#8217;,<br />
&#8216;CNTRY&#8217; =&gt; &#8216;ZZZ&#8217;,<br />
&#8216;COUNTRY&#8217; =&gt; &#8216;RESERVED&#8217;,<br />
&#8216;IP_STR&#8217; =&gt; &#8217;127.0.0.1&#8242;,<br />
&#8216;IP_VALUE&#8217; =&gt; 2130706433,<br />
&#8216;IP_FROM_STR&#8217; =&gt; &#8217;127.0.0.0&#8242;,<br />
&#8216;IP_TO_STR&#8217; =&gt; &#8217;127.255.255.255&#8242;,<br />
)</p></blockquote>
<p>Below is the output when the code has been set on a live server.</p>
<blockquote><p><strong>IP: </strong>116.58.42.211<br />
<strong>IP numerical Value: </strong>1949969107<br />
<strong>IP registry: </strong>APNIC<br />
<strong>IP assigned (Y-m-d H:i:s): </strong>2007-03-27 19:00:00<br />
<strong>IP country RIR (Regional Internet Registry) representation: </strong>PK<br />
<strong>IP Country Abbreviation: </strong>PAK<br />
<strong>IP country name: </strong>PAKISTAN<br />
<strong>IP range: </strong>array (<br />
&#8216;FROM&#8217; =&gt; &#8217;116.58.0.0&#8242;,<br />
&#8216;TO&#8217; =&gt; &#8217;116.58.127.255&#8242;,<br />
)<br />
<strong>IP range numerical: </strong>array (<br />
&#8216;FROM&#8217; =&gt; &#8217;1949958144&#8242;,<br />
&#8216;TO&#8217; =&gt; &#8217;1949990911&#8242;,<br />
)<br />
<strong>full IP informations array: </strong>array (<br />
&#8216;IP_FROM&#8217; =&gt; &#8217;1949958144&#8242;,<br />
&#8216;IP_TO&#8217; =&gt; &#8217;1949990911&#8242;,<br />
&#8216;REGISTRY&#8217; =&gt; &#8216;APNIC&#8217;,<br />
&#8216;ASSIGNED&#8217; =&gt; &#8217;1175040000&#8242;,<br />
&#8216;CTRY&#8217; =&gt; &#8216;PK&#8217;,<br />
&#8216;CNTRY&#8217; =&gt; &#8216;PAK&#8217;,<br />
&#8216;COUNTRY&#8217; =&gt; &#8216;PAKISTAN&#8217;,<br />
&#8216;IP_STR&#8217; =&gt; &#8217;116.58.42.211&#8242;,<br />
&#8216;IP_VALUE&#8217; =&gt; 1949969107,<br />
&#8216;IP_FROM_STR&#8217; =&gt; &#8217;116.58.0.0&#8242;,<br />
&#8216;IP_TO_STR&#8217; =&gt; &#8217;116.58.127.255&#8242;,<br />
)</p></blockquote>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/web-tools/'>Web Tools</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/geoip/'>geoip</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/ip-to-country/'>ip to country</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/php/'>php</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=217&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/10/18/ip-to-country-conversion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenInviter let&#8217;s drag friends</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/09/03/openinviter-lets-drag-friends-one-click-away/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/09/03/openinviter-lets-drag-friends-one-click-away/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 00:20:35 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[OpenInviter]]></category>
		<category><![CDATA[Contacts importer]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[openinviter]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=191</guid>
		<description><![CDATA[OpenInviter is a fantastic edition to the open source widget domain. The purpose is pretty simple and straight forward that is dragging friends instantly. Below is my 15mins interaction with that widget. Visit it&#8217;s website that is http://openinviter.com Get yourself register with the service. This is mandatory because the widget will use the private key [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=191&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://qasimalikhawaja.files.wordpress.com/2010/09/openinviter.png"><img class="aligncenter size-medium wp-image-199" title="openinviter" src="http://qasimalikhawaja.files.wordpress.com/2010/09/openinviter.png?w=300&#038;h=107" alt="" width="300" height="107" /></a></p>
<p>OpenInviter is a fantastic edition to the open source widget domain. The purpose is pretty simple and straight forward that is dragging friends instantly.</p>
<p>Below is my 15mins interaction with that widget.</p>
<ul>
<li>Visit it&#8217;s website that is <a href="http://openinviter.com" target="_blank">http://openinviter.com</a></li>
</ul>
<ul>
<li>Get yourself register with the service. This is mandatory because the widget will use the private key generated for a particular user.</li>
</ul>
<ul>
<li>Download the widget from http://openinviter.com/download.php</li>
</ul>
<ul>
<li>Extract the compress file in webserver root directory</li>
</ul>
<blockquote><p>#sudo tar zxvf openinviter-*.tar.gz</p></blockquote>
<ul>
<li>Fullfill the dependencies like wget and curl packages</li>
</ul>
<blockquote><p>$sudo apt-get install wget curl</p></blockquote>
<ul>
<li>Navigate the postinstall.php and look for the following output;-</li>
</ul>
<blockquote><p>Checking username and private key&#8230; *OK*<br />
Checking PHP version&#8230; *OK*<br />
Checking DOMDocument support&#8230; *OK*<br />
Checking transport method&#8230; <strong>libcurl</strong> is installed. Using <strong>cURL</strong> to handle requests<br />
<strong>SQLite</strong> is NOT installed. Unable to keep stats. This will not affect the OpenInviter modules since they will run without keeping any stats.<br />
Checking write permisions&#8230; <strong>/tmp</strong> is writable. Using <strong>/tmp</strong> to store cookie files and logs<br />
Checking for new versions of OpenInviter&#8230; Your OpenInviter software is up-to-date<br />
Checking Abv&#8230; *OK*<br />
Checking AOL&#8230; *OK*<br />
Checking Apropo&#8230; *OK*<br />
Checking Atlas&#8230; *OK*<br />
Checking Aussiemail&#8230; *OK*<br />
Checking Azet&#8230; *OK*<br />
Checking Bigstring&#8230; *OK*<br />
Checking Bordermail&#8230; *OK*<br />
Checking Canoe&#8230; *OK*<br />
Checking Care2&#8230; *NOT OK* &#8211; This plugin might not work correctly on your system<br />
Checking Clevergo&#8230; *OK*<br />
Checking Doramail&#8230; *OK*<br />
Checking Evite&#8230; *OK*<br />
Checking FastMail&#8230; *OK*<br />
Checking 5Fm&#8230; *NOT OK* &#8211; This plugin might not work correctly on your system<br />
Checking Freemail&#8230; *OK*<br />
Checking Gawab&#8230; *OK*<br />
Checking GMail&#8230; *OK*</p></blockquote>
<ul>
<li> Once done either delete the postinstall.php file or rename it.</li>
</ul>
<blockquote><p># sudo mv /var/www/jump4tmp/openinviter/postinstall.php /var/www/jump4tmp/openinviter/postinstallDONE.php</p></blockquote>
<ul>
<li> For detail install instructions look for the install.txt file.</li>
</ul>
<ul>
<li>Navigate the openinviter root directory and look for config.php file while will set the settings of the widget</li>
</ul>
<blockquote><p># sudo gedit /var/www/jump4tmp/openinviter/config.php</p>
<p>&lt;?php<br />
$openinviter_settings=array(<br />
&#8216;username&#8217;=&gt;&#8221;register_user&#8221;, &#8216;private_key&#8217;=&gt;&#8221;801cb788f47075fd3cf57328b7948527&#8243;, &#8216;cookie_path&#8217;=&gt;&#8221;/tmp&#8221;, &#8216;message_body&#8217;=&gt;&#8221;You are invited to http://website.com&#8221;, &#8216;message_subject&#8217;=&gt;&#8221; is inviting you to http://website.com&#8221;, &#8216;transport&#8217;=&gt;&#8221;curl&#8221;, &#8216;local_debug&#8217;=&gt;&#8221;on_error&#8221;, &#8216;remote_debug&#8217;=&gt;&#8221;", &#8216;hosted&#8217;=&gt;&#8221;", &#8216;proxies&#8217;=&gt;array(),<br />
&#8216;stats&#8217;=&gt;&#8221;", &#8216;plugins_cache_time&#8217;=&gt;&#8221;1800&#8243;, &#8216;plugins_cache_file&#8217;=&gt;&#8221;oi_plugins.php&#8221;, &#8216;update_files&#8217;=&gt;&#8221;1&#8243;, &#8216;stats_user&#8217;=&gt;&#8221;", &#8216;stats_password&#8217;=&gt;&#8221;");<br />
?&gt;</p></blockquote>
<ul>
<li>Adjust the file content according to you need like stayed above.</li>
</ul>
<ul>
<li>Finally navigate to the example.php in the browser to play around with the widget LIVE!</li>
</ul>
<p><a href="http://localhost/jump4temp/openinviter/example.php">http://localhost/jump4temp/openinviter/example.php</a></p>
<p>&nbsp;</p>
<div id="attachment_198" class="wp-caption aligncenter" style="width: 310px"><a href="http://qasimalikhawaja.files.wordpress.com/2010/09/examplephp.png"><img class="size-medium wp-image-198" title="example.php" src="http://qasimalikhawaja.files.wordpress.com/2010/09/examplephp.png?w=300&#038;h=144" alt="example.php" width="300" height="144" /></a><p class="wp-caption-text">openinviter/example.php </p></div>
<p>&nbsp;</p>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/web-tools/openinviter-web-tools/'>OpenInviter</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/contacts-importer/'>Contacts importer</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/email/'>email</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/openinviter/'>openinviter</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=191&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/09/03/openinviter-lets-drag-friends-one-click-away/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>

		<media:content url="http://qasimalikhawaja.files.wordpress.com/2010/09/openinviter.png?w=300" medium="image">
			<media:title type="html">openinviter</media:title>
		</media:content>

		<media:content url="http://qasimalikhawaja.files.wordpress.com/2010/09/examplephp.png?w=300" medium="image">
			<media:title type="html">example.php</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex development on Linux</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/09/02/flex-development-on-linux/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/09/02/flex-development-on-linux/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 21:17:03 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[Flex Development]]></category>
		<category><![CDATA[acrionscript]]></category>
		<category><![CDATA[adobe flex]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=179</guid>
		<description><![CDATA[Hey guys, I hope there are lot of guys who are relying on linux distro like Ubuntu, centos or fedora to name some. As far as the developers, geeks and machine fanatics are concerned. Aftyer such an addiction it&#8217;s quite difficult to work back on Windows system for some specific reasons like previous was the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=179&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey guys, I hope there are lot of guys who are relying on linux distro like Ubuntu, centos or fedora to name some. As far as the developers, geeks and machine fanatics are concerned. Aftyer such an addiction it&#8217;s quite difficult to work back on Windows system for some specific reasons like previous was the case as flash development is restricted to windows based machines. But now as adobe took a nice decision to move to bit to open source society with their new open source flexsdk the dream to develop flash based application on the linux island come true. Now with a handful of simple plugins our distro will be up and ready to develop application in flash and actionscript.</p>
<p>1. Download the eclipse euorpa with JEE support (v3.2 or higher)<br />
Visit the following link <a href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a><br />
Look for Eclipse IDE for Java EE Developers<br />
32bit: <a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-linux-gtk-x86_64.tar.gz">http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-linux-gtk.tar.gz</a><br />
64bit: <a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-linux-gtk-x86_64.tar.gz">http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-linux-gtk-x86_64.tar.gz</a></p>
<p>or get a torrent: <a href="http://build.eclipse.org/technology/phoenix/torrents/jee/eclipse-jee-helios-linux-gtk.tar.gz.torrent">http://build.eclipse.org/technology/phoenix/torrents/jee/eclipse-jee-helios-linux-gtk.tar.gz.torrent</a></p>
<p>Move the tar file into /opt dir<br />
# sudo mv eclipse-*.tar /opt</p>
<p>Untar the eclipse compress file<br />
# sudo tar zxvf eclipse-*.tar<br />
# sudo cd eclipse<br />
# ./eclipse &amp;</p>
<p>2. Install the following plugins</p>
<p>In the menu, we choose Help -&gt; Install new software&#8230;</p>
<p>Click on the &#8220;Add&#8230;&#8221; button, and type the following:</p>
<p>Name: Eclipse IMP<br />
Location: http://download.eclipse.org/technology/imp/updates/</p>
<p><a href="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-add_imp.png"><img src="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-add_imp.png?w=300" border="0" alt="" /></a></p>
<p>Name: AXDT<br />
Location: http://update.axdt.org/</p>
<p><a href="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-add_axdt.png"><img src="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-add_axdt.png?w=300" border="0" alt="" /></a></p>
<p>Choose (at least) the following packages:<br />
Axdt AS3 Feature<br />
Flex3SDK Feature</p>
<p><a href="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-install_axdt.png"><img src="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-install_axdt.png?w=300" border="0" alt="" /></a></p>
<p>Then click on the &#8220;Next &gt;&#8221; button, accept the licence and proceed to install the AXDT + Flex SDK framework.</p>
<p>Once installed, restart Eclipse</p>
<p>Go to the menu: Window -&gt; Open perspective -&gt; Other&#8230; -&gt; AXDT</p>
<p>That&#8217;s all what you need to get started with Flas application development.</p>
<p><strong>Coming soon</strong></p>
<p>Tutorial: Write and compile you first flex application</p>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/web-tools/flex-development/'>Flex Development</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/acrionscript/'>acrionscript</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/adobe-flex/'>adobe flex</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/eclipse/'>Eclipse</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/flash/'>flash</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/ubuntu/'>Ubuntu</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=179&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/09/02/flex-development-on-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>

		<media:content url="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-add_imp.png?w=300" medium="image" />

		<media:content url="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-add_axdt.png?w=300" medium="image" />

		<media:content url="http://qasimalikhawaja.files.wordpress.com/2010/09/pantallazo-install_axdt.png?w=300" medium="image" />
	</item>
		<item>
		<title>USB networking on mobile platforms</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/04/25/usb-networking-on-mobile-platforms/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/04/25/usb-networking-on-mobile-platforms/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 18:06:10 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[Mobile Devices]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile devices]]></category>
		<category><![CDATA[palm]]></category>
		<category><![CDATA[usb networking]]></category>
		<category><![CDATA[webos]]></category>
		<category><![CDATA[windows mobile]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=153</guid>
		<description><![CDATA[After the dot com bubble the new bubble is surely mobile platforms.  The same trend is getting the hype in ma university where now lot of guys are working on mobile platforms and related technologies. Two of the guys are tease me with a lot of questions accordingly including Mr. Hassaan Masud and Mr. Humanyun [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=153&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After the dot com bubble the new bubble is surely mobile platforms.  The same trend is getting the hype in ma university where now lot of guys are working on mobile platforms and related technologies. Two of the guys are tease me with a lot of questions accordingly including Mr. <a href="http://www.facebook.com/profile.php?id=502355484">Hassaan Masud</a> and Mr. <a href="http://www.facebook.com/profile.php?id=667931691" target="_blank">Humanyun Ali Daud</a>.</p>
<p><em><strong>Symbian: </strong></em></p>
<p><a href="http://www.forum.nokia.com/info/sw.nokia.com/id/99ffe0f8-34d3-46c2-a069-ba83b9dfdce3/Nokia_Network_Bridge.html" target="_blank">Nokia network bridge</a></p>
<p>Which is a J2ME based api and can be downloaded from <a href="http://www.forum.nokia.com/pics/btn_download_now.gif" target="_blank">here</a>. For a complete set of IP related application scan <a href="http://www.giveawayoftheday.com/symbian+ip/" target="_blank">here</a>. If you are a Linux guy then you are well aware of the importance of doing ssh on other machines here you go with a <a href="http://s2putty.sourceforge.net/" target="_blank">putty</a> (.sis) for you symbian device. <a href="http://xan.dnsalias.org/gnubox/" target="_blank">GNUBox</a> is an application that let&#8217;s you share your machine&#8217;s internet with the device using USB.</p>
<p>Other applications repos: [<a href="http://www.free-symbian.eu/" target="_blank">1</a>]</p>
<p><em><strong>Windows Mobile:</strong></em></p>
<p>You can connect your Windows mobile 6.0 or higher with you machine by following the following <a href="http://www.pocketpcfaq.com/faqs/activesync/usb-advanced-functionality.htm" target="_blank">steps</a>. By using the Virtual Machine Network Driver you can enable TCP/IP <a href="http://msdn.microsoft.com/en-us/library/bb762801%28VS.90%29.aspx" target="_blank">Networking </a>on the Device Emulator.</p>
<p><em><strong>Google Android: </strong></em></p>
<p>Wow! Android is ma love :p the fantastic platform as far as mobile eco-system is concerned. There is one application called <a href="http://code.google.com/p/connectbot/" target="_blank">ConnecBot </a>an port of linux terminal and a perfect SSH client. here&#8217;s an other <a href="http://www.htc-android.com/viewtopic.php?f=5&amp;t=154" target="_blank">how-to</a> guide with HTC set.</p>
<p><em><strong>Apple&#8217;s iPhone:</strong></em></p>
<p><em><strong><br />
</strong></em></p>
<p><em><strong>RIM&#8217;s Blackbery: </strong></em></p>
<p><em><strong><br />
</strong></em></p>
<p><em><strong>Palm&#8217;s WebOS:</strong></em></p>
<p><em><strong><br />
</strong></em></p>
<p><em><strong>OpenMoko&#8217;s Freerunner:</strong></em></p>
<p>This is the world&#8217;s first Open source mobile phone both in terms of software and hardware. The <a href="http://wiki.openmoko.org/wiki/USB_Networking" target="_blank">USB networking</a> on Openmoko has been well explained on it&#8217;s wiki which gives you the real feel of linux in your hands.</p>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/mobile-devices/'>Mobile Devices</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/android/'>Android</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/apple/'>apple</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/blackberry/'>blackberry</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/google/'>google</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/iphone/'>iphone</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/mobile-devices-2/'>mobile devices</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/palm/'>palm</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/usb-networking/'>usb networking</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/webos/'>webos</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/windows-mobile/'>windows mobile</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=153&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/04/25/usb-networking-on-mobile-platforms/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash-player for Mozilla Firefox</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/04/25/flash-player-for-firfox/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/04/25/flash-player-for-firfox/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 12:02:43 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=137</guid>
		<description><![CDATA[I thing firefox should struggle a bit to make a contract with adobe on this regards which will save our time but in the mean while see the below methods to do it yourself. From the tar file:- unpack anywhere (as a root user) # tar -zxvf install_flash_player_10_linux.tar.gz Run the script # ./flashplayer-installer Copyright(C) 2002-2006 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=137&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I thing firefox should struggle a bit to make a contract with adobe on this regards which will save our time but in the mean while see the below methods to do it yourself.</p>
<p><span style="text-decoration:underline;"><em><strong>From the tar file:-</strong></em></span></p>
<p>unpack anywhere (as a root user)</p>
<blockquote><p># tar -zxvf install_flash_player_10_linux.tar.gz</p></blockquote>
<p>Run the script</p>
<blockquote><p># ./flashplayer-installer</p>
<p>Copyright(C) 2002-2006 Adobe Macromedia Software LLC.  All rights  reserved.</p>
<p>Adobe Flash Player 10 for Linux</p>
<p>Adobe Flash Player 10 will be installed on this machine.</p>
<p>You are running the Adobe Flash Player installer as a non-root user.<br />
Adobe Flash Player 10 will be installed in your home directory.</p>
<p>Support is available at http://www.adobe.com/support/flashplayer/</p>
<p>To install Adobe Flash Player 10 now, press ENTER.</p>
<p>To cancel the installation at any time, press Control-C.</p>
<p>NOTE: Please exit any browsers you may have running.</p>
<p>Press ENTER to continue…</p>
<p>———– Install Action Summary ———–</p>
<p>Adobe Flash Player 10 will be installed in the following directory:</p>
<p>Mozilla installation  directory  = /home/username/.mozilla</p>
<p>Proceed with the  installation? (y/n/q): y</p>
<p>NOTE: Please ask your administrator to remove the xpti.dat from the<br />
components directory of the Mozilla or Netscape browser.</p>
<p>Installation complete.</p>
<p>Perform another  installation? (y/n): n</p></blockquote>
<p>The flash plugin is installed now!</p>
<p>Or if the tar file just have the lib proceed with the following</p>
<p>copy unpacked ‘libflashplayer.so’ to ‘/usr/lib64/browser-plugins’  directory</p>
<blockquote><p># cp libflashplayer.so /usr/lib/browser-plugins</p></blockquote>
<p>set permissions: ‘chmod 755  /usr/lib64/browser-plugins/libflashplayer.so’</p>
<blockquote><p># chmod 755  /usr/lib/browser-plugins/libflashplayer.so</p></blockquote>
<p><em><span style="text-decoration:underline;"><strong>From the repository:-</strong></span></em></p>
<p><strong>In Redhat :</strong></p>
<blockquote><p><code># up2date  flash-plugin</code></p></blockquote>
<p><strong><code>In Suse:</code></strong></p>
<blockquote><p># zypper in flash-player</p>
<p>Retrieving repository &#8216;openSUSE-11.2-Non-Oss&#8217; metadata [\]</p></blockquote>
<p>Expected errors:</p>
<p>System management is locked by the application with pid 4399 (/usr/sbin/packagekitd).<br />
Close this application before trying again.</p>
<p>Fix:</p>
<p>Kill the process and rerun the command</p>
<blockquote><p># kill -9 &lt;PID&gt;</p></blockquote>
<p><strong>In Ubuntu:</strong></p>
<p>Just visit youtube.com and a pop=up will appear asking you to install the required flash plugin it&#8217;s that simple!</p>
<p><em><strong>Confirmation:</strong></em></p>
<p>To confirm successful installation launch your Firefox browser and in  the address bar type <em><strong>“about:plugins”</strong></em> and press  enter.</p>
<p><em><strong>Caution:</strong></em></p>
<p>To install the plugin successfully it is advised to close all the instances of the firefox before running the plugin</p>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/linux/how-to-linux/'>How to</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/firefox/'>firefox</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/flash/'>flash</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/linux/'>Linux</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=137&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/04/25/flash-player-for-firfox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>
	</item>
		<item>
		<title>Nokia Web Runtime WRT</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/04/23/nokia-web-runtime-wrt/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/04/23/nokia-web-runtime-wrt/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 20:16:59 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[S60 Devices]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[S60]]></category>
		<category><![CDATA[WRT]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/2010/04/23/nokia-web-runtime-wrt/</guid>
		<description><![CDATA[Filed under: S60 Devices Tagged: nokia, Qt, S60, WRT<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=132&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[Filed under: S60 Devices Tagged: nokia, Qt, S60, WRT<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=132&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/04/23/nokia-web-runtime-wrt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>
	</item>
		<item>
		<title>Joomla installation on Ubuntu</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/04/23/joomla-installation-on-ubuntu/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/04/23/joomla-installation-on-ubuntu/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 19:30:20 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Web Frameworks]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[Nabeel Mushtaq]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=125</guid>
		<description><![CDATA[Today&#8217;s we are going to see how to use google map mashup in a famous CMS &#8211; Content Management System which is Joomla.  Though the documentation is self explanatory I&#8217;ll just list te common mistakes that fly-over testers make while installing Joomla but let me tell you experience developers (like Mr. Nabeel Mushtaq) always prefer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=125&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s we are going to see how to use google map mashup in a famous CMS &#8211; Content Management System which is Joomla.  Though the documentation is self explanatory I&#8217;ll just list te common mistakes that fly-over testers make while installing Joomla but let me tell you experience developers (like <a title="Mr. Nabeel Mushtaq" href="http://www.facebook.com/nabilm" target="_blank">Mr. Nabeel Mushtaq</a>) always prefer to read the documentation evertime you you have to install some package or framework because it&#8217;s like the movie &#8220;The Matrix&#8221; every time you find something to grab!</p>
<p>Move the downloaded zip file of the Joomla package to webserver&#8217;s root directory;-</p>
<blockquote><p># mv /home/user-name/Downloads/Joomla***.zip /var/www/joomla</p></blockquote>
<p>Unzip it here</p>
<blockquote><p># unzip Joomla***.zip</p></blockquote>
<p>Delete the existing configuration.php-dist file</p>
<blockquote><p># rm -rf configuration.php-dist</p></blockquote>
<p>Most users don&#8217;t perform the above step and just rename the filename</p>
<blockquote><p># mv configuration.php-dist configuration.php</p></blockquote>
<p>Due to whish while running the web wizard or installation it causes problems as the script feels dizzy while updated the already populated configuration.php file</p>
<p>Create a new unwritten file</p>
<blockquote><p># toucj configuration.php</p></blockquote>
<p>Give&#8217;em writes to apache users to writeable</p>
<blockquote><p># chmod 755 configuration.php</p></blockquote>
<p>Some users while rename the configuration.php-dist file to configurtion.php while fall at the end of the web installation wizard with a fatal error.</p>
<p>If you got permission errors I would suggest you should give apache user the rights to read write the joomla folder</p>
<blockquote><p>#chown www-data /var/www/joomla -R</p></blockquote>
<p>That&#8217;s it!</p>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/web-services/web-frameworks/cms/'>CMS</a>, <a href='http://qasimalikhawaja.wordpress.com/category/web-services/web-frameworks/'>Web Frameworks</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/cms/'>CMS</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/how-to/'>How to</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/joomla/'>joomla</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/nabeel-mushtaq/'>Nabeel Mushtaq</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/open-source/'>open source</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/ubuntu/'>Ubuntu</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=125&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/04/23/joomla-installation-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>
	</item>
		<item>
		<title>Mail parsing via Ez Components</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/04/18/mail-parsing-via-ez-components/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/04/18/mail-parsing-via-ez-components/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 12:39:17 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[ez components]]></category>
		<category><![CDATA[ez publish]]></category>
		<category><![CDATA[mail parsing]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=118</guid>
		<description><![CDATA[Get started with EZ Components: After spending ma 24hrs I landed on a blog where the guys have an excellent tutorial series to get started with Ez components in detail so skim it first here you go [1] Hello World![2]  Send an Email[3] RSS feed creation. sudo apt-get install apache2 sudo apt-get install php5 sudo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=118&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Get started with EZ Components:</strong></p>
<p>After spending ma 24hrs I landed on a blog where the guys have an excellent tutorial series to get started with Ez components in detail so skim it first here you go [<a href="http://www.phpro.org/tutorials/Introduction-To-eZ-Components-part-1.html">1</a>] Hello World![<a href="http://www.phpro.org/tutorials/Introduction-To-eZ-Components-part-2.html">2</a>]  Send an Email[<a href="http://www.phpro.org/tutorials/Introduction-To-eZ-Components-part-3.html">3</a>] RSS feed creation.</p>
<blockquote><p>sudo apt-get install apache2</p>
<p>sudo apt-get install php5</p>
<p>sudo apt-get install libapache2-mod-php5</p>
<p>sudo /etc/init.d/apache2 restart</p></blockquote>
<p>Pear Package Manager installation on Linux:</p>
<blockquote>
<pre><tt><strong><tt><strong>lynx -source http://pear.php.net/go-pear | php</strong></tt></strong></tt></pre>
<p>sudo apt-get install lynx-cur</p>
<p>sudo apt-get install php5-cli</p></blockquote>
<p><strong>Ez Component using Pear Installed</strong></p>
<blockquote>
<pre>pear channel-discover components.ez.no
pear install -a ezc/eZComponents
</pre>
</blockquote>
<p><strong>Setup include_path</strong></p>
<p>Navigate to the following files and append the root PEAR directory.</p>
<blockquote><p>/etc/php5/apache2/php.ini<br />
/etc/php5/cli/php.ini</p>
<p>include_path=&#8221;.:/var/www/path/to/root/PEAR&#8221;</p></blockquote>
<p>At the top of the code you wrote using ez libs</p>
<blockquote><p>require_once(&#8220;ezc/Base/base.php&#8221;);  //depend of the installation method either pear or svn<br />
function __autoload( $className )<br />
{<br />
ezcBase::autoload( $className );<br />
}</p></blockquote>
<p><strong>Pre-requisites:</strong></p>
<ol>
<li><a href="http://www.apachefriends.org/en/xampp.html" target="_blank">Xampp </a></li>
<li><a title="Ex components " href="http://ezcomponents.org/" target="_blank">Ez Components</a></li>
</ol>
<p><strong>Task 1: Receiving and Parsing emails:</strong></p>
<p>In the code below we are going to receive emails from a remote server and parse it&#8217;s parts. Moreover we&#8217;ll tear down the attached files and move them to a separate directory for later processing.</p>
<blockquote><p>&lt;?php<br />
$dir = dirname( __FILE__ );<br />
require_once &#8220;$dir/../../ezcomponents-2009/Mail/docs/tutorial/tutorial_autoload.php&#8221;;</p>
<p>$options = new ezcMailPop3TransportOptions();<br />
$options-&gt;ssl = true;<br />
$pop3 = new ezcMailPop3Transport( &#8220;pop.gmail.com&#8221;, 995, $options  );<br />
$pop3-&gt;authenticate( &#8220;sendmarks@gmail.com&#8221;, &#8220;cubesatlover&#8221; );<br />
$pop3-&gt;status( $num, $size );<br />
$messages = $pop3-&gt;listMessages();<br />
$set = $pop3-&gt;fetchAll();<br />
$parser = new ezcMailParser();<br />
$mail = $parser-&gt;parseMail( $set );</p>
<p>//echo print_r($mail);</p>
<p>for ( $i = 0; $i &lt; count( $mail ); $i++ )<br />
{<br />
echo formatMail( $mail[$i] );<br />
}</p>
<p>function formatMail( $mail )<br />
{<br />
$t = &#8221;;<br />
$t .= &#8220;From:      &#8220;. formatAddress( $mail-&gt;from ). &#8220;&lt;br /&gt;&#8221;;<br />
$t .= &#8220;To:        &#8220;. formatAddresses( $mail-&gt;to ). &#8220;&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Cc:        &#8220;. formatAddresses( $mail-&gt;cc ). &#8220;&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Bcc:       &#8220;. formatAddresses( $mail-&gt;bcc ). &#8220;&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Date:      &#8220;. date( DATE_RFC822, $mail-&gt;timestamp ).<br />
&#8220;&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Subject:   &#8220;. $mail-&gt;subject . &#8220;&lt;br /&gt;&#8221;;<br />
$t .= &#8220;MessageId: &#8220;. $mail-&gt;messageId . &#8220;&lt;br /&gt;&#8221;;<br />
$t .= &#8220;&lt;br /&gt;&#8221;;<br />
$t .= formatMailPart( $mail-&gt;body ) . &#8220;&lt;br /&gt;&#8221;;<br />
return $t . &#8220;&lt;br /&gt;&lt;br /&gt;&#8221;;<br />
}</p>
<p>function formatMailPart( $part )<br />
{<br />
if ( $part instanceof ezcMail )<br />
return formatMail( $part );</p>
<p>if ( $part instanceof ezcMailText )<br />
return formatMailText( $part );</p>
<p>if ( $part instanceof ezcMailFile )<br />
return formatMailFile( $part );</p>
<p>if ( $part instanceof ezcMailRfc822Digest )<br />
return formatMailRfc822Digest( $part );</p>
<p>if ( $part instanceof ezcMailMultiPart )<br />
return formatMailMultipart( $part );</p>
<p>die( &#8220;No clue about the &#8220;. get_class( $part ) . &#8220;&lt;br /&gt;&#8221; );<br />
}</p>
<p>function formatMailMultipart( $part )<br />
{<br />
if ( $part instanceof ezcMailMultiPartAlternative )<br />
return formatMailMultipartAlternative( $part );</p>
<p>if ( $part instanceof ezcMailMultiPartDigest )<br />
return formatMailMultipartDigest( $part );</p>
<p>if ( $part instanceof ezcMailMultiPartRelated )<br />
return formatMailMultipartRelated( $part );</p>
<p>if ( $part instanceof ezcMailMultiPartMixed )<br />
return formatMailMultipartMixed( $part );</p>
<p>die( &#8220;No clue about the &#8220;. get_class( $part ) . &#8220;&lt;br /&gt;&#8221; );<br />
}</p>
<p>function formatMailMultipartMixed( $part )<br />
{<br />
$t = &#8221;;<br />
foreach ( $part-&gt;getParts() as $key =&gt; $alternativePart )<br />
{<br />
$t .= &#8220;-MIXED-<br />
$key&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&lt;br /&gt;&#8221;;<br />
$t .= formatMailPart( $alternativePart );<br />
}<br />
$t .= &#8220;-MIXED<br />
END&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&lt;br /&gt;&#8221;;<br />
return $t;<br />
}</p>
<p>function formatMailMultipartRelated( $part )<br />
{<br />
$t = &#8221;;<br />
$t .= &#8220;-RELATED MAIN<br />
PART&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&lt;br /&gt;&#8221;;<br />
$t .= formatMailPart( $part-&gt;getMainPart() );<br />
foreach ( $part-&gt;getRelatedParts() as $key =&gt; $alternativePart )<br />
{<br />
$t .= &#8220;-RELATED PART<br />
$key&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&lt;br /&gt;&#8221;;<br />
$t .= formatMailPart( $alternativePart );<br />
}<br />
$t .= &#8220;-RELATED<br />
END&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&lt;br /&gt;&#8221;;<br />
return $t;<br />
}</p>
<p>function formatMailMultipartDigest( $part )<br />
{<br />
$t = &#8221;;<br />
foreach ( $part-&gt;getParts() as $key =&gt; $alternativePart )<br />
{<br />
$t .= &#8220;-DIGEST-<br />
$key&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&lt;br /&gt;&#8221;;<br />
$t .= formatMailPart( $alternativePart );<br />
}<br />
$t .= &#8220;-DIGEST<br />
END&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&lt;br /&gt;&#8221;;<br />
return $t;<br />
}</p>
<p>function formatMailRfc822Digest( $part )<br />
{<br />
$t = &#8221;;<br />
$t .= &#8220;-DIGEST-ITEM-<br />
$key&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Item:&lt;br /&gt;&lt;br /&gt;&#8221;;<br />
$t .= formatMailpart( $part-&gt;mail );<br />
$t .= &#8220;-DIGEST ITEM<br />
END&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&lt;br /&gt;&#8221;;<br />
return $t;<br />
}</p>
<p>function formatMailMultipartAlternative( $part )<br />
{<br />
$t = &#8221;;<br />
foreach ( $part-&gt;getParts() as $key =&gt; $alternativePart )<br />
{<br />
$t .= &#8220;-ALTERNATIVE ITEM<br />
$key&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&lt;br /&gt;&#8221;;<br />
$t .= formatMailPart( $alternativePart );<br />
}<br />
$t .= &#8220;-ALTERNATIVE<br />
END&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&lt;br /&gt;&#8221;;<br />
return $t;<br />
}</p>
<p>function formatMailText( $part )<br />
{<br />
$t = &#8221;;<br />
$t .= &#8220;Original Charset: {$part-&gt;originalCharset}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Charset:          {$part-&gt;charset}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Encoding:         {$part-&gt;encoding}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Type:             {$part-&gt;subType}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;&lt;br /&gt;{$part-&gt;text}&lt;br /&gt;&#8221;;<br />
return $t;<br />
}</p>
<p>function formatMailFile( $part )<br />
{<br />
$t = &#8221;;<br />
$t .= &#8220;Disposition Type: {$part-&gt;dispositionType}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Content Type:     {$part-&gt;contentType}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Mime Type:        {$part-&gt;mimeType}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Content ID:       {$part-&gt;contentId}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;Filename:         {$part-&gt;fileName}&lt;br /&gt;&#8221;;<br />
$t .= &#8220;&lt;br /&gt;&#8221;;<br />
move_uploaded_file ( $part-&gt;fileName , &#8220;/var/www/vhosts/domain.com/<br />
httpdocs/image.png&#8221;);<br />
$t .= &#8220;&lt;img src=&#8217;/image.png&#8217;&gt;&#8221;;<br />
return $t;<br />
}</p>
<p>function formatAddresses( $addresses )<br />
{<br />
$fa = array();<br />
foreach ( $addresses as $address )<br />
{<br />
$fa[] = formatAddress( $address );<br />
}<br />
return implode( &#8216;, &#8216;, $fa );<br />
}</p>
<p>function formatAddress( $address )<br />
{<br />
$name = &#8221;;<br />
if ( !empty( $address-&gt;name ) )<br />
{<br />
$name = &#8220;{$address-&gt;name} &#8220;;<br />
}<br />
return $name . &#8220;&lt;{$address-&gt;email}&gt;&#8221;;<br />
}</p>
<p>?&gt;</p></blockquote>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/web-tools/'>Web Tools</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/ez-components/'>ez components</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/ez-publish/'>ez publish</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/mail-parsing/'>mail parsing</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=118&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/04/18/mail-parsing-via-ez-components/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>
	</item>
		<item>
		<title>Zend Erroronicles</title>
		<link>http://qasimalikhawaja.wordpress.com/2010/04/05/zend-erroronicles/</link>
		<comments>http://qasimalikhawaja.wordpress.com/2010/04/05/zend-erroronicles/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 10:34:10 +0000</pubDate>
		<dc:creator>qasimalikhawaja</dc:creator>
				<category><![CDATA[Web Frameworks]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[hellow world]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://qasimalikhawaja.wordpress.com/?p=112</guid>
		<description><![CDATA[Today we are going to list the couple of buys a noob has to face while getting started with the Zend framework;- The story while traveling to the Hello world Errors: Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/landmark_collector/public/index.php on line 11 Fatal error: require_once() [function.require]: Failed opening required [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=112&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today we are going to list the couple of buys a noob has to face while getting started with the Zend framework;- The story while traveling to the Hello world <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Errors: </strong></p>
<blockquote><p>Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/landmark_collector/public/index.php on line 11</p>
<p>Fatal error: require_once() [function.require]: Failed opening required &#8216;Zend/Loader.php&#8217; (include_path=&#8217;/var/www/landmark_collector/application/../library:.:/usr/share/php:/usr/share/pear&#8217;) in /var/www/landmark_collector/public/index.php on line 11</p></blockquote>
<p><strong>Problem:</strong></p>
<p>Set the zend library path in the inlude_path for php</p>
<p><strong>Solution: </strong></p>
<blockquote><p><strong>+ </strong>the following lines at the top of the file /var/www/website-name/application/bootstrap.php</p>
<p>define(&#8220;SITE_ROOT&#8221;, dirname($_SERVER['DOCUMENT_ROOT']));<br />
set_include_path(get_include_path().PATH_SEPARATOR<br />
.&#8217;/var/www/zend/library&#8217;);</p></blockquote>
<p><strong>Error:</strong></p>
<blockquote><p>Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /var/www/landmark_collector/library/Zend/Loader.php on line 258</p>
<p>Fatal error: Uncaught exception &#8216;Zend_Controller_Dispatcher_Exception&#8217; with message &#8216;Invalid controller specified (error)&#8217; in /var/www/landmark_collector/library/Zend/Controller/Dispatcher/Standard.php:242 Stack trace: #0 /var/www/landmark_collector/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard-&gt;dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /var/www/landmark_collector/public/index.php(25): Zend_Controller_Front-&gt;dispatch() #2 {main} thrown in /var/www/landmark_collector/library/Zend/Controller/Dispatcher/Standard.php on line 242</p></blockquote>
<p><strong>Problem:</strong></p>
<br />Filed under: <a href='http://qasimalikhawaja.wordpress.com/category/web-services/web-frameworks/'>Web Frameworks</a> Tagged: <a href='http://qasimalikhawaja.wordpress.com/tag/bugs/'>bugs</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/errors/'>errors</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/hellow-world/'>hellow world</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/php/'>php</a>, <a href='http://qasimalikhawaja.wordpress.com/tag/zend/'>zend</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qasimalikhawaja.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qasimalikhawaja.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qasimalikhawaja.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qasimalikhawaja.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qasimalikhawaja.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qasimalikhawaja.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qasimalikhawaja.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qasimalikhawaja.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qasimalikhawaja.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qasimalikhawaja.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qasimalikhawaja.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qasimalikhawaja.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qasimalikhawaja.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qasimalikhawaja.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=qasimalikhawaja.wordpress.com&amp;blog=2964538&amp;post=112&amp;subd=qasimalikhawaja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://qasimalikhawaja.wordpress.com/2010/04/05/zend-erroronicles/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbffb7dd43e94a04a9edb5a39deceec7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">qasimalikhawaja</media:title>
		</media:content>
	</item>
	</channel>
</rss>
