<?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>The Blog Etcetera</title>
	<atom:link href="http://www.blogetcetera.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogetcetera.com</link>
	<description>I blog about the other things...</description>
	<lastBuildDate>Fri, 20 Apr 2012 08:52:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Afghan War: A popularity contest for Western Leaders</title>
		<link>http://www.blogetcetera.com/2012/afghan-war-popularity-contest-western-leaders/</link>
		<comments>http://www.blogetcetera.com/2012/afghan-war-popularity-contest-western-leaders/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 06:30:39 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Afghanistan]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Afghan]]></category>
		<category><![CDATA[Afghan war]]></category>
		<category><![CDATA[Afghans]]></category>
		<category><![CDATA[Australia]]></category>
		<category><![CDATA[Julia Gillard]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=329</guid>
		<description><![CDATA[From when NATO invaded Afghanistan under the guise of fighting terrorism, the poverty-stricken country has served as an election-winning tool for leaders of the involved countries. Every time election gets closer, the leaders of these countries make an announcement that could potentially win them votes. Julia Gillard’s announcement of Australian troops withdrawal is nothing but <a href='http://www.blogetcetera.com/2012/afghan-war-popularity-contest-western-leaders/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 412px"><img title="Afghan War" src="http://buzzom.com/wp-content/uploads/2010/07/us_afghan_war.jpg" alt="Afghan War" width="402" height="276" /><p class="wp-caption-text">Afghan War</p></div>
<p>From when NATO invaded Afghanistan under the guise of fighting terrorism, the poverty-stricken country has served as an election-winning tool for leaders of the involved countries. Every time election gets closer, the leaders of these countries make an announcement that could potentially win them votes.</p>
<p>Julia Gillard’s announcement of Australian troops withdrawal is nothing but a means for Labour to try and gain some popularity as they have been doing not all that good in the polls. This might just work for them as noted 64% of Australians are in favour of pull-out.</p>
<p>Every time the government is in trouble, they talk about the “War on Terror” to take people’s attention away from their national screw-ups and to try to stay as the favoured party around the time of the election. It is not surprising that withdrawal might start just before next federal election.</p>
<div class="mceTemp"></div>
<p>Obviously, both Obama and Gillard will spin the achievements as victory, but they know and everyone else knows that this illegal war and occupation will end as badly as it started.</p>
<p>Afghan conflict is complicated, obviously, NATO has not figured it out. Sooner or later they all will leave, shamelessly and all they have is nothing to show apart from a claim that they supposedly killed Osama and dropped his body in the sea and neutralized terrorist threat that supposedly existed in Afghanistan. And of course no one will ask them about the innocent lives lost and destructions they brought upon people of Afghanistan.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2012/afghan-war-popularity-contest-western-leaders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Code Formatting Tools in Notepad++</title>
		<link>http://www.blogetcetera.com/2012/adding-code-formatting-tools-notepad/</link>
		<comments>http://www.blogetcetera.com/2012/adding-code-formatting-tools-notepad/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 02:19:09 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Notepad++]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Astyle]]></category>
		<category><![CDATA[code formatter]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[notepad++]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[source formatter]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=304</guid>
		<description><![CDATA[I am a big fan of beautiful code, not only in terms of quality of programming but also formatting the code nicely so that it is easy on eyes. If you are using a full-blown IDE, they come with their own formatting facility, but if you are using a multipurpose editor such as Notepad++, then <a href='http://www.blogetcetera.com/2012/adding-code-formatting-tools-notepad/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I am a big fan of beautiful code, not only in terms of quality of programming but also formatting the code nicely so that it is easy on eyes.</p>
<p>If you are using a full-blown IDE, they come with their own formatting facility, but if you are using a multipurpose editor such as Notepad++, then you may have to use a plugin to format your code. There are many 3rd party programs that can be used with Notepad++ that will help you format your source code without going through a lot of effort.</p>
<p>I use different tools for different languages. I use PerlTidy for formatting my Perl code, and AStyle for certain other languages. Here are the steps taken to add AStyle to Notepad++. Please check the <a title="AStyle" href="http://astyle.sourceforge.net/">AStyle website</a> for further information on AStyle and its options.</p>
<p>First you need to make sure you have NppExec plugin added to your Notepad++ by going to Plugin menu.</p>
<div id="attachment_305" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn1.png"><img class="size-medium wp-image-305" title="NppExec Menu" src="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn1-300x285.png" alt="NppExec Menu" width="300" height="285" /></a><p class="wp-caption-text">NppExec Menu</p></div>
<p>Download AStyle. The zip archive includes all the source and an  executable. You can simple copy the executable to a suitable location (For this demo, I am copying it to H:\tools\AStyle.exe. Or you can recompile from the source.</p>
<p>Go to NppExec under Plugin menu and click on Execute or hit F6. You will get the Execute dialogue box.</p>
<div id="attachment_306" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn2.png"><img class="size-medium wp-image-306" title="Execute Dialogue Box" src="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn2-300x150.png" alt="Execute Dialogue Box" width="300" height="150" /></a><p class="wp-caption-text">Execute Dialogue Box</p></div>
<p>Select &#8221; from the dropdown box if it is not already selected.</p>
<p>Type in the following commands in the window:</p>
<p style="padding-left: 30px;"><code>h:\tools\AStyle --style=allman "$(FULL_CURRENT_PATH)"<br />
npp_open $(FULL_CURRENT_PATH)</code></p>
<p>The first line, formats the code and saves the file. The view doesn&#8217;t get refreshed, so we need to reload the file from disk, and npp_open does that in the above. <em>Note that I am using AStyle with &#8211;style=allman flag which uses broken brackets.</em></p>
<p>Hit the save button and it will ask you for a name, just type an appropriate name and hit OK to run.</p>
<div id="attachment_307" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn3.png"><img class="size-medium wp-image-307" title="Execute AStyle" src="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn3-300x150.png" alt="Execute AStyle" width="300" height="150" /></a><p class="wp-caption-text">Execute AStyle</p></div>
<p>You could stop right there and every time you need to run the command, just go to Plugins -&gt; NppExec -&gt; Execute&#8230; But let&#8217;s go one step further.</p>
<p>Under Plugins, go to NppExec and click on Advanced Options.</p>
<div id="attachment_308" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn4.png"><img class="size-medium wp-image-308" title="NppExec Advanced Options" src="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn4-300x285.png" alt="NppExec Advanced Options" width="300" height="285" /></a><p class="wp-caption-text">NppExec Advanced Options</p></div>
<p>Select &#8220;Run AStyle&#8221; from the Associated Script drop down menu and then hit the &#8220;Add/Modify&#8221; button. Make sure the &#8220;Place to the Macros Submenu&#8221; is ticked.</p>
<p>This will add a new option in Macro Menu.</p>
<p>&nbsp;</p>
<div id="attachment_309" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn5.png"><img class="size-medium wp-image-309" title="Notepad++ Macro Menu" src="http://www.blogetcetera.com/wp-content/uploads/2012/04/scrn5-300x214.png" alt="" width="300" height="214" /></a><p class="wp-caption-text">Notepad++ Macro Menu</p></div>
<p>That is it. Hope you have found this short tutorial useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2012/adding-code-formatting-tools-notepad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Afghanistan: The blame game</title>
		<link>http://www.blogetcetera.com/2012/afghanistan-blame/</link>
		<comments>http://www.blogetcetera.com/2012/afghanistan-blame/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 13:09:39 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Afghanistan]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Afghan]]></category>
		<category><![CDATA[Afghan war]]></category>
		<category><![CDATA[Afghans]]></category>
		<category><![CDATA[poverty]]></category>
		<category><![CDATA[War]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=281</guid>
		<description><![CDATA[It is very rare for a country to get involved so deep in the affairs of another country without an ulterior motive. If NATO countries are fighting in Afghanistan, they are doing it only for their own sake. They are not the least bit interested in what happens to Afghans and Afghanistan. If in the <a href='http://www.blogetcetera.com/2012/afghanistan-blame/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 310px"><img src="http://th01.deviantart.com/fs7/300W/f/2006/347/4/8/Self_destructive_by_Ivefeldt.jpg" alt="" width="300" height="365" /><p class="wp-caption-text">از ماست که بر ماست - It is from us which is upon us</p></div>
<p>It is very rare for a country to get involved so deep in the affairs of another country without an ulterior motive. If NATO countries are fighting in Afghanistan, they are doing it only for their own sake. They are not the least bit interested in what happens to Afghans and Afghanistan. If in the process of their work, some Afghans benefit, they claim the credit but they don&#8217;t really give a fig either way.</p>
<p>Let&#8217;s face it, Pakistani government is not our best friend either. Fair enough, they let refugees in their country during the years of Soviet invasion and Afghans are still living there as refugees in somewhat peace of mind, but their intention is clear. They only want a government in Afghanistan that is more than just friendly neighbour. The same goes for Iran and even India.</p>
<p>Consequently, whenever there is a discussion about Afghanistan among Afghans, there is hardly a time when some outsider is not blamed for the miseries Afghanistan has faced and still facing. Some blame America, some blame Pakistan, some other blame Iran, and some blame all of them. While there is no doubt all these countries played us over the years, what people forget is a great deal of blame falls on us too. A puppeteer without his puppets is nobody. His art can only exist if he has puppets.</p>
<p>There is a saying in Dari, &#8220;Az maast ke bar maast&#8221; which translates to &#8220;It is from us that is upon us.&#8221; Certainly external forces have been a big factor in the destruction of Afghanistan, but we as Afghans have done enough to 1. Directly by following their order, 2. Indirectly by creating unfortunate situations to benefit them. We have been more than accommodating to their demands for a few dollars.</p>
<p>If we keep a balanced view, we should notice that we share enough responsibility in making Afghanistan what it is now; either as a proxy for outsiders or for our very personal advantages. Next time when you get into a discussion about who is to blame for the bad fortune of Afghanistan, do not forget to mention &#8220;Afghans&#8221; along with other candidates.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2012/afghanistan-blame/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Muslims&#8217; Obsession with Christmas</title>
		<link>http://www.blogetcetera.com/2011/muslims-obsession-with-christmas/</link>
		<comments>http://www.blogetcetera.com/2011/muslims-obsession-with-christmas/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 01:39:14 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Afghans in West]]></category>
		<category><![CDATA[Islam]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Christmas]]></category>
		<category><![CDATA[Muslims and Christmas]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=267</guid>
		<description><![CDATA[Every year close to Christmas you would see forums, blogs, chat rooms full of Muslims talking about how Christmas has nothing to do with Jesus and Christians are wrong to celebrate it, and how it is not mentioned in the Bible. It is one thing to tell your fellow Muslims not to celebrate Christmas and <a href='http://www.blogetcetera.com/2011/muslims-obsession-with-christmas/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 310px"><img title="Muslims and Christmas" src="http://www.missionislam.com/comprel/comprelimages/christmas.jpg" alt="Muslims and Christmas" width="300" height="293" /><p class="wp-caption-text">Muslims and Christmas</p></div>
<p>Every year close to Christmas you would see forums, blogs, chat rooms full of Muslims talking about how Christmas has nothing to do with Jesus and Christians are wrong to celebrate it, and how it is not mentioned in the Bible.</p>
<p>It is one thing to tell your fellow Muslims not to celebrate Christmas and not to say “Merry Christmas”, but to keep talking about how wrong of the Christians to celebrate this is just ridiculous. Even a Da’wah TV program called “The Deen Show” had an <a href="http://www.youtube.com/watch?v=MzFv_TdFvzM">interview</a> with some scholar about the fact that Santa is not in the Bible.</p>
<p>Obviously we cannot get our priorities right. There are far more pressing issues that we Muslims face as a community and on individual levels. Our people are starving, war is destroying our homes, corruption is ruining our countries, yet as soon as Christmas or Easter is close, the same war against Christmas beings.</p>
<p>I frequent a forum that most of the members are Muslim. Every year there are new threads about all or some of the issues such as putting decorative lights up in Christmas, Saying Merry Christmas to Christians, Christmas is pagan holiday, Santa is a marketing scheme, Valentine’s day is Haram, Easter is not Christian in origin and the list goes on.</p>
<p>I am not sure I understand this obsession, but I am certain there are more important things in life. I thought here I’d give a list of activities in no particular order to delve into, instead of wasting your time offending Christians on their festive day:</p>
<ol start="1">
<li>Volunteer to clean your local Masjid</li>
<li>Memorize some verses of Qur’an</li>
<li>Pray Nawafil</li>
<li>Organise a social Halal event for Muslims</li>
<li>Plant a tree</li>
<li>Collect donation for the needy</li>
<li>Prepare meal for homeless</li>
<li>Volunteer at a shelter</li>
<li><a href="http://www.mercymissionworld.org/australia/our-programs/daar-aasya/">Register for foster parenting</a> (You will be amazed how many Muslim kids need foster parenting)</li>
<li>Take your parents out for dinner</li>
<li>Go to <a class="zem_slink" title="YouTube" href="http://www.youtube.com/" rel="homepage">YouTube</a> and listen to a lecture</li>
<li>Update your blog</li>
<li>Donate to a charity organisation of your choice</li>
<li>Tutor your younger siblings</li>
<li>Read a story to little kids</li>
<li>Prepare a meal for your family</li>
<li>Recite longer Surrahs in your prayer</li>
<li>Pick up your phone and call a friend that you haven’t spoken for a while</li>
<li>Visit your grand parents</li>
<li>Visit <a title="The Blog Etcetera" href="http://www.blogetcetera.com">the Blog Etcetera</a> and leave a comment or two.</li>
</ol>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2011/muslims-obsession-with-christmas/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How Long is too Long in one Job</title>
		<link>http://www.blogetcetera.com/2011/how-long-is-too-long-in-one-job/</link>
		<comments>http://www.blogetcetera.com/2011/how-long-is-too-long-in-one-job/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 12:39:11 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Work and Life]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Career development]]></category>
		<category><![CDATA[Employment]]></category>
		<category><![CDATA[Information technology]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=176</guid>
		<description><![CDATA[I had a discussion with a friend the other day about career development, capacity building and whether staying in one company specially in the same or similar capacity for too long makes one  unemployable and how long is too long for an IT professional to stay in one job. I read somewhere that regardless of <a href='http://www.blogetcetera.com/2011/how-long-is-too-long-in-one-job/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I had a discussion with a friend the other day about career development, capacity building and whether staying in one company specially in the same or similar capacity for too long makes one  unemployable and how long is too long for an IT professional to stay in one job.</p>
<p>I read somewhere that regardless of the industry if you are in an organisation for 3 &#8211; 5 years without being promoted, then it is time to move on. This fits my situation because I have been with my current employer for over 5 years now. Although it is a good company, people are nice and work conditions are great, it seems I have reached my limit in terms of learning and expanding my skills.  Not only that, due to the nature of our company, there is no position for me to ascend to. The only thing I can become is a senior developer, then a more senior developer and so on. Of course I can rely on my yearly review and expect some praise and some raise, but that will not keep anyone going on.</p>
<p>The other issue is  that the main technology we use is propitiatory and we are in a <a class="zem_slink" title="Vertical market" href="http://en.wikipedia.org/wiki/Vertical_market" rel="wikipedia">vertical market</a> that has a fairly limited application. This in itself puts a limit in the on-job training and capacity building.</p>
<p>I have been keeping an open eye and looking into my options. IT job market is good at the moment and based on my skills, I can land on a job easily. However, I have been slacking and not getting the courage to leave my comfort zone. The options are there, the opportunities are there. I should be able to take the risk that the conditions in the next job may not be as good, people may not be as nice, and hours inconvenient, but as long as there is opportunity for career development and the pay is reasonably higher, I should not hesitate to take on the next opportunity.</p>
<p>Based on my experience, an IT professional should try to move on after maximum of 4 years in one place. This helps in career development and exposing oneself to different technologies and markets. Of  course unless you work for an organisation that is extremely dynamic and cater for different domains. <em>I should listen to my own advice.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2011/how-long-is-too-long-in-one-job/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PCL &#8211; Centring Variable-width Text</title>
		<link>http://www.blogetcetera.com/2011/pcl-centring-variable-width-text/</link>
		<comments>http://www.blogetcetera.com/2011/pcl-centring-variable-width-text/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 06:39:53 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[PCL]]></category>
		<category><![CDATA[PCL5]]></category>
		<category><![CDATA[Printer]]></category>
		<category><![CDATA[Printer Command Language]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=221</guid>
		<description><![CDATA[If you ever had to deal with PCL you would know that there is no command to centre the text. There are some printers that support HPGL command embedded in the PCL file, but not all. If we are printing a predefined text, we know the measurements and would set absolute positioning. But if we are dealing with <a href='http://www.blogetcetera.com/2011/pcl-centring-variable-width-text/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>If you ever had to deal with <a title="Printer Command Language" href="http://en.wikipedia.org/wiki/Printer_Command_Language" target="_blank">PCL</a> you would know that there is no command to centre the text. There are some printers that support HPGL command embedded in the PCL file, but not all. If we are printing a predefined text, we know the measurements and would set absolute positioning. But if we are dealing with data generated from a data source, then how can we centre the text? One way to do it is to know the width of every character in every font-family and when printing, calculate the width of the text in whatever unit we are using and then position the text accordingly. The other way is to write an email to your manager and tell them that unless they move to PostScript, there is no way you can centre the text correctly.</p>
<p>But if you really want to do it without having to dramatically change your code or moving away from PCL, there is a trick that you might or might not have figured it out or heard of it.</p>
<p>The trick is to print transparent text upside down in half the point size from the centre of the page. What you will print next will start exactly from where the last one ended. Now, change rotation back to normal, and print your text in regular size in black. This will work very well.</p>
<ol>
<li>Choose transparent color <strong><span style="color: #800000;">[ESC]*vo1T</span></strong></li>
<li>Rotate 180 degrees <strong><span style="color: #800000;">[ESC]&amp;a180P</span></strong></li>
<li>Drop the font size by half (assume your normal text size is 12) <strong><span style="color: #800000;">[ESC](s1p6v0s0b5T</span></strong></li>
<li>Print your text</li>
<li>Choose black color <strong><span style="color: #800000;">[ESC]*v1oT</span></strong></li>
<li>Change rotation back to normal <strong><span style="color: #800000;">[ESC]&amp;a0P</span></strong></li>
<li>Choose the normal font size <strong><span style="color: #800000;">[ESC](s1p12v0s0b5T</span></strong></li>
<li>Print your text.</li>
</ol>
<p><em>Note: Please refer to your printer manual for specific PCL commands, such as font sequence.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2011/pcl-centring-variable-width-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl &#8211; Split: What about the last empty piece?</title>
		<link>http://www.blogetcetera.com/2011/perl-split-what-about-the-last-empty-piece/</link>
		<comments>http://www.blogetcetera.com/2011/perl-split-what-about-the-last-empty-piece/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 15:49:26 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Perl split]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=181</guid>
		<description><![CDATA[I am working on a data matching project. One organisation provides some data to match with data from another organisation. Generally the data is provided in plain text delimited by a predefined characters (eg tab). I used the split function to split the line into an array. One of the &#8220;features&#8221; of the split function <a href='http://www.blogetcetera.com/2011/perl-split-what-about-the-last-empty-piece/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 85px"><a href="http://en.wikipedia.org/wiki/File:Programming-republic-of-perl.png"><img class="zemanta-img-inserted zemanta-img-configured" title="Perl" src="http://upload.wikimedia.org/wikipedia/en/e/e0/Programming-republic-of-perl.png" alt="Perl" width="75" height="75" /></a><p class="wp-caption-text">Image via Wikipedia</p></div>
<p>I am working on a data matching project. One organisation provides some data to match with data from another organisation.</p>
<p>Generally the data is provided in plain text delimited by a predefined characters (eg tab).<br />
I used the split function to split the line into an array. One of the &#8220;features&#8221; of the split function is that if there is nothing after the last delimiter, it ignores it. So, if the record in question does not have any information in the last field, the size of the array becomes one less than the number of required fields to be matched. This caused a few issues because the program was written without keeping this in mind.</p>
<p>If you have a string like &#8220;This|is|for|test|&#8221; and you want to split it by the pipe character, then you will write the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/local/bin/perl</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Data<span style="color: #339933;">::</span><span style="color: #006600;">Dumper</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@myarray</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$string</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;This|is|for|test|&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">@myarray</span> <span style="color: #339933;">=</span> <span style="color: #000066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\|/</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066;">print</span> Dumper<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\@myarray</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Output:</p>
<pre>$VAR1 = [
          'This',
          'is',
          'for',
          'test'
        ];</pre>
<p>Well, I don&#8217;t really want that. I want the last item in the array to be an empty string. Luckily, the split function takes an optional argument that specifies the limit on number of pieces we want to split the string by. See the example below:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/local/bin/perl</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Data<span style="color: #339933;">::</span><span style="color: #006600;">Dumper</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@myarray</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$string</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;This|is|for|test|&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">@myarray</span> <span style="color: #339933;">=</span> <span style="color: #000066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\|/</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$string</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066;">print</span> Dumper<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\@myarray</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Output:</p>
<pre>$VAR1 = [
          'This',
          'is',
          'for|test|'
        ];</pre>
<p>So, if you pass 5 as the limit, you will get the following output:</p>
<pre>$VAR1 = [
          'This',
          'is',
          'for',
          'test',
          ''
        ];</pre>
<p>But what if you do not know the number of fields? Well, there are a few ways to find this out. My favorite method is to use Perl&#8217;s <a class="zem_slink" title="Regular expression" href="http://en.wikipedia.org/wiki/Regular_expression" rel="wikipedia">Regular Expression</a>&#8216;s &#8216;tr&#8217; operator to count occurrences of the delimiter. The &#8216;tr&#8217; operator or translation operator replaces occurrences of a character with another character or deletes them if the &#8216;d&#8217; modifier is used. <em>Please note that the substitute operator &#8216;s&#8217; works differently.</em></p>
<p>For example:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Replaces 'a' with 'u'</span>
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Let the cat out of the bag.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">tr/a/u/</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;1. &quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">$string</span> <span style="color: #339933;">.</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#deletes 'a'</span>
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Let the cat out of the bag.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">tr/a//d</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;2. &quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">$string</span> <span style="color: #339933;">.</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#does nothing</span>
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Let the cat out of the bag.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">tr/a//</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;3. &quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">$string</span> <span style="color: #339933;">.</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Output:</p>
<pre>1. Let the cut out of the bug.
2. Let the ct out of the bg.
3. Let the cat out of the bag.</pre>
<p>Now that I have quickly gone through tr operator, let&#8217;s get back to the point. So, the tr operator also returns a count of replacements or deletions. Let&#8217;s check the above code with slight modification:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Replace 'a' with 'u'</span>
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Let the cat out of the bag.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$count</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$string</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">tr/a/u/</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;1. &quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">$count</span><span style="color: #339933;">.</span> <span style="color: #ff0000;">&quot; occurrences of 'a' were replaced with 'u'.
.<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#delete 'a'</span>
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Let the cat out of the bag.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$count</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$string</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">tr/a//d</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;2. &quot;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">$count</span><span style="color: #339933;">.</span> <span style="color: #ff0000;">&quot;occurrences of 'a' were deleted.
 times . &quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">\n</span><span style="color: #ff0000;">&quot;;
&nbsp;
#do nothing
$string = &quot;</span>Let the cat out of the bag<span style="color: #339933;">.</span><span style="color: #ff0000;">&quot;;
$count = $string =~ tr/a//;
print &quot;</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">.</span> There are <span style="color: #ff0000;">&quot; . $count . &quot;</span> <span style="color: #ff0000;">'a'</span> in the statement<span style="color: #339933;">.</span><span style="color: #0000ff;">\n</span><span style="color: #ff0000;">&quot;;</span></pre></div></div>

<p>Output:</p>
<pre>1. 2 ccurrences of 'a' were replaced with 'u'.
2. 2 ccurrence of 'a' were deleted.
3. There are 2 'a' in the statement.</pre>
<p>Now to the original problem.<br />
Using &#8216;tr&#8217; operator you can count the number of the delimiters, pipes in this case, in the string, then split it that many times plus one, like this:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/local/bin/perl</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Data<span style="color: #339933;">::</span><span style="color: #006600;">Dumper</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@myarray</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$string</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;This|is|for|test|&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$count</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$string</span> <span style="color: #339933;">=~</span> <span style="color: #009966; font-style: italic;">tr/\|//</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">@myarray</span> <span style="color: #339933;">=</span> <span style="color: #000066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\|/</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$string</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$count</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066;">print</span> Dumper<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">\@myarray</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Output:</p>
<pre>$VAR1 = [
          'This',
          'is',
          'for',
          'test',
          ''
        ];</pre>
<p>Well, that is it folks. I hope this is of any use to you. It is my first ever tutorial, so let me know if there are any errors in my explanation or code snippets.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2011/perl-split-what-about-the-last-empty-piece/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Afghan Alpha II: Pirzads Having a Party</title>
		<link>http://www.blogetcetera.com/2011/the-afghan-alpha-ii-pirzads-having-a-party/</link>
		<comments>http://www.blogetcetera.com/2011/the-afghan-alpha-ii-pirzads-having-a-party/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 00:09:28 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Afghans in West]]></category>
		<category><![CDATA[TV]]></category>
		<category><![CDATA[Afghan]]></category>
		<category><![CDATA[Afghan in west]]></category>
		<category><![CDATA[Afghans]]></category>
		<category><![CDATA[Alphas]]></category>
		<category><![CDATA[Science fiction]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=150</guid>
		<description><![CDATA[Episode 8: A Short Time in Paradise (Plot Summary) I am still watching Alphas. Slightly losing interest, but I am still watching. I like Gary. So Rachel is going to her sister’s engagement party. She is trying to get herself a date to the party so she is not “auctioned off” to her “third cousins” <a href='http://www.blogetcetera.com/2011/the-afghan-alpha-ii-pirzads-having-a-party/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #999999;"><em><span style="color: #333333;">Episode 8: A Short Time in Paradise</span></em> (<a href="http://www.tv.com/alphas/a-short-time-in-paradise/episode/1392842/recap.html">Plot Summary</a>)</span></p>
<p>I am still watching Alphas. Slightly losing interest, but I am still watching. I like <a href="http://alphas.wikia.com/wiki/Gary_Bell" target="_blank">Gary</a>.</p>
<div class="wp-caption alignleft" style="width: 310px"><img class=" " title="Azita Ghanizada as Rachel Pirzad in Alphas" src="http://24.media.tumblr.com/tumblr_lof9j5j6ez1qz5t0to1_r1_500.png" alt="Azita Ghanizada as Rachel Pirzad in Alphas" width="300" height="408" /><p class="wp-caption-text">Azita Ghanizada as Rachel Pirzad in Alphas</p></div>
<p>So Rachel is going to her sister’s engagement party. She is trying to get herself a date to the party so she is not “auctioned off” to her “third cousins” and not having to go on “blind dates” with them.</p>
<p>Now, here is what happens to the majority of Afghan girls who turn in to their sister’s engagement party with a “date”. Well, <strong>it does not happen</strong>. It is unheard of except in very rare cases of, oh, so liberal families who probably have not much to do with the rest of Afghan community.</p>
<p>Let us say we all wake up one day it has become somewhat normal for an Afghan girl to take a white male co-worker as her “date”, she will definitely have to buy him a nice black suit and a tie that matches her top.</p>
<p>Let me also let you in on another secret about Afghans. Although marrying cousins is quite normal, not all of us marry our cousins. Surprisingly most of us in west marry from other families. Even in cases of arranged marriages, it is still outside own families. Probably mother of the guy sees a girl in a gathering. Then she calls few places to identify the girl, and then find someone who is close friend of that family and asked them if they could talk to the family and organise a visit.</p>
<p>Another thing, the girl’s family do not usually approach to a man or to his family or in Rachel’s terms “auction off” their daughter. In majority of cases, even if it is a love marriage and the two know each other, fell in love and all, when families get involved, the  man’s family would find out about the girl’s family. They then call and ask if they can visit, then they go to the girl’s house. Get to know them, talk about their son who is <em>very respectful, educated and responsible who loves his family</em>, etc. Similarly, the girl’s family would talk about <em>how many other families are interested in their daughter, who is very pretty and educated and loves her siblings</em>, etc. They never act desperate as shown in Rachel’s case.</p>
<p>Let us make one thing clear. It is not unheard of Afghan girl ending up with non-Afghan and non-Muslim guy, but generally nobody knows about such relationship until they are engaged and the guy supposedly converts to Islam and has a Muslim name. Yasin and Yousuf are in public demand. In addition, being in a premarital relationship is not something you would announce to everyone in your sister’s engagement. Therefore, when you turn up with a “date” people will talk about you. There is nothing surprising about it. You are an Afghan and supposedly a Muslim, so you should not engage in dating and whatever comes with it. Doing that and then announcing it in your sister’s engagement party is simply asking for negative attention and hurting and embarrassing your family. Unless, that is exactly your intention. Even those who date generally keep it a secret.</p>
<p>But the talk will not be “Oh I feel sorry for her mother.” or “Her poor mom.” It probably will come up, but in most cases, they will be like “Is that guy with Rachel? Oh man, he is in jeans. How embarrassing!” or comments like “Why is Rachel not wearing something fancy? After all it is her sister’s engagement.” “Is she dating an American now? What a shame!”</p>
<p>Here is another one, in an Afghan gathering the host family would try very hard not to make a scene. If Rachel tells her father that he needs to go to the doctor, the dad will probably say, “I will see”. Then Rachel will say, “Promise me you will, dad!” and then the dad will possibly get mad and without yelling, make an angry face saying, “Ok. I got it. I will. Now get out of my face with your crazy boyfriend.”</p>
<p>The rest of the Episode 8 was ok, I guess. It was those inaccuracies that got me thinking and wrote this. Perhaps, writers should do a little research before writing and making generalized statements.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2011/the-afghan-alpha-ii-pirzads-having-a-party/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Afghan Masjid &#8211; You Beauty!</title>
		<link>http://www.blogetcetera.com/2011/new-afghan-masjid-you-beauty/</link>
		<comments>http://www.blogetcetera.com/2011/new-afghan-masjid-you-beauty/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 07:55:57 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Afghans in Australia]]></category>
		<category><![CDATA[Afghans in West]]></category>
		<category><![CDATA[Islam]]></category>
		<category><![CDATA[Afghan]]></category>
		<category><![CDATA[Afghan in west]]></category>
		<category><![CDATA[Afghans]]></category>
		<category><![CDATA[Prayer]]></category>
		<category><![CDATA[Worship]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=121</guid>
		<description><![CDATA[The mosques of Allāh are only to be maintained by those who believe in Allāh and the Last Day and establish prayer and give zakāh and do not fear except Allāh, for it is expected that those will be of the [rightly] guided. &#8211;Al-Qur&#8217;an 9:18 Afghan community in Melbourne has had a Masjid problem for <a href='http://www.blogetcetera.com/2011/new-afghan-masjid-you-beauty/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>The mosques of Allāh are only to be maintained by those who believe in Allāh and the Last Day and establish prayer and give zakāh and do not fear except Allāh, for it is expected that those will be of the [rightly] guided. &#8211;Al-Qur&#8217;an 9:18</p></blockquote>
<div class="wp-caption alignleft" style="width: 445px"><img title="Afghan Masjid" src="http://lh3.googleusercontent.com/-OCDta3xNrhw/TmsBfwK0gRI/AAAAAAAABL4/-ciL2Gk3Eyc/new%252520image%252520bb%252520small.jpg" alt="Afghan Masjid" width="435" height="241" /><p class="wp-caption-text">Afghan Masjid - Green Street view, Doveton</p></div>
<p>Afghan community in Melbourne has had a Masjid problem for a while now. The masjid is small and cannot accommodate the large number of congregation on Fridays, Tarawih prayer and Eids. Also there is not enough parking spaces which causes issues when there is a Fateha (ie the gatherings of people who come to pay respect for the family of a deceased person and make Du’a for the deceased and his/her family).</p>
<p>Building a new Masjid has always been a plan. However due to different reasons it has not been achieved. Recently the Masjid committee decided it was time to get moving and purchase a plot of land in Doveton to build the much needed Masjid &amp; Community Centre. Alhamdulillah the community has pledged to help in every possible way to make this happen.</p>
<p>The task of designing the Masjid was given to my dear friend, Mr Homan Asiaee, who I must add has done a great job. The new Masjid will include a separate praying area for sisters and brothers. On the ground floor the main area will fit 650 worshipers. In the upper level, there is area for sister that will fit 250 people. There is also another small area on the ground floor for ladies. The masjid will have a lift for Muslimahs who may have problem walking up the stairs.</p>
<p>There is a multipurpose hall that can be joined with main praying area for the special congregation such as Eid prayers. The hall can accommodate up to 1000 people. The Masjid has a big car park and Inshallah the issues facing the community will no longer exist once the Masjid is built with the help of Allah (SWT) and generosity of the community members. All in all, it is a beauty!!!</p>
<p><img class="aligncenter" title="Afghan Masjid" src="https://lh5.googleusercontent.com/-KW9eUp-_75M/TmsB4MYZ5GI/AAAAAAAABMA/ZaR01s4GlVg/NEW%252520IMAGE%252520LL%252520small.jpg" alt="" width="640" height="355" /></p>
<p>&nbsp;</p>
<p>I urge you, Muslim brothers and sisters to give generously for this house of Allah to be built and increase your Hasanaat. Rasulullah (May peace and blessing be upon him) said:</p>
<blockquote><p>Whosoever builds a house (Masjid) for the pleasure of Allah, whether it be small or large, Allah builds for him a house in paradise. (at-Tirmidhi, Ibn Khuzaymah, Ibn Hibban, Abu Dawud, and Ahmad)</p></blockquote>
<p>By providing a place to pray, one receives a reward for each prayer that is made and for any wayfarer who seeks shelter inside. The rewards for the prayer are multiplied each time someone performs their prayer.  Imagine if 1000 people pray in the Masjid every day, and from each of those prayers, people who contributed in building this Masjid will reap rewards.</p>
<p>May Allah make the initiator of this project successful and reward everyone who has and will contribute to building of this beautiful house of Allah.</p>
<p>&nbsp;</p>
<p><strong>Afghan Masjid Bank Account Details:</strong><br />
Commonwealth Bank of Australia<br />
BSB: 063 427<br />
Account Number: 10079059</p>
<p>To receive Masjid SMS news please text your name to 0428 030 619</p>
<p>Online donation is not available at the moment but as soon as it is, I will update these details</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2011/new-afghan-masjid-you-beauty/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Afghanistan: No Way Ahead</title>
		<link>http://www.blogetcetera.com/2011/afghanistan-no-way-ahead/</link>
		<comments>http://www.blogetcetera.com/2011/afghanistan-no-way-ahead/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 01:39:01 +0000</pubDate>
		<dc:creator>AbuNoureen</dc:creator>
				<category><![CDATA[Afghanistan]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Afghan]]></category>
		<category><![CDATA[Afghan war]]></category>
		<category><![CDATA[Karzai]]></category>
		<category><![CDATA[War]]></category>

		<guid isPermaLink="false">http://www.blogetcetera.com/?p=108</guid>
		<description><![CDATA[First thing first, I do not like Karzai. I really don&#8217;t, but I can&#8217;t help feeling sorry for him at times. When he was offered the position of being a puppet of USA, he probably thought that he would go to Afghanistan, help NATO in capturing Osama and Mullah Omar, get some high-profile jobs and <a href='http://www.blogetcetera.com/2011/afghanistan-no-way-ahead/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_111" class="wp-caption alignleft" style="width: 310px"><a href="http://www.blogetcetera.com/wp-content/uploads/2011/08/afghan_kid.jpg"><img class="size-medium wp-image-111" title="Afghan kid" src="http://www.blogetcetera.com/wp-content/uploads/2011/08/afghan_kid-300x215.jpg" alt="AFghan kid" width="300" height="215" /></a><p class="wp-caption-text">Poor is getting poorer and rich is getting richer</p></div>
<p>First thing first, I do not like Karzai. I really don&#8217;t, but I can&#8217;t help feeling sorry for him at times. When he was offered the position of being a puppet of USA, he probably thought that he would go to Afghanistan, help NATO in capturing Osama and Mullah Omar, get some high-profile jobs and government contracts for his relatives, make some cash in the process from different sources, things will go better, US will leave and he would become the saviour of Afghans from whatever they thought they were fighting.</p>
<p>Didn&#8217;t work well for him, did it?! Well, he did most of those things, but now he is stuck in a situation that nobody likes him or trusts him. Northern alliance think he is helping Pakistan, Americans think he has a little too much sympathy for Taliban, Taliban know him as servant of America, people are sick of him because his government is very corrupt and incompetent. I would hate to be in his position right now!</p>
<p>He knows the issues and he knows that he is nobody&#8217;s favourite anymore. He tries to change things but it is too late for him. He constantly asks NATO to schedule a withdrawal of their troops, he encourages Taliban to make peace, he even once confronted his own brother about his illegal activities months before he was killed. But nothing seems to be going his way anymore. When I was in Kabul in 2002, I thought Karzai was doing some positive things and since he inherited a fairly peaceful Kabul city and surroundings, we didn&#8217;t believe American occupation would last this long.  At that time at least people in Kabul kind of liked him, because they copped it worst from Taliban&#8217;s social and recreational restrictions.</p>
<p>I am not a political analyst, but the way I see, the whole thing is one big mess. To be honest I do not see anything that is happening over there in a positive light. It is dim and grim; <a href="http://www.thenewamerican.com/usnews/foreign-policy/8694-us-afghanistan-close-to-deal-keeping-us-forces-there-through-2024"><span style="color: #800080;">US  is supposedly staying until 2024</span></a> now, which by the way indicates how badly they have failed, insurgents have changed their strategy and are doing more targeted damage now and it is very clear from the recent assassinations that they are picking up momentum, corruption is through the roof, poor is getting poorer and rich is getting richer. Well, actually the last one is true about everywhere in the world.</p>
<p>Right now, I do not believe anyone has a solution for Afghanistan. It looks like they are letting chips fall wherever they may and nobody has a sense of direction. As a matter of fact there is no destination to have a sense of direction for. Walking blind and hoping the next step is the right one, or do we even care if the next step is the right one?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogetcetera.com/2011/afghanistan-no-way-ahead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

