<?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>Mahboud&#039;s</title>
	<atom:link href="http://sakr.me/feed" rel="self" type="application/rss+xml" />
	<link>http://sakr.me</link>
	<description>~ of Mahmoud Sakr, kamasheto, and everything in between.</description>
	<lastBuildDate>Tue, 08 May 2012 18:55:43 +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>Filter Google Code Commits</title>
		<link>http://sakr.me/601</link>
		<comments>http://sakr.me/601#comments</comments>
		<pubDate>Tue, 01 May 2012 13:03:23 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[code.google]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=601</guid>
		<description><![CDATA[Google code project hosting doesn&#8217;t give you an easy way to filter commits easily. In any way really. Hadeer Younis has posted a nifty script that dynamically filters them from the changes page. Being the person I am, I refactored &#8230; <a href="http://sakr.me/601">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Google code project hosting doesn&#8217;t give you an easy way to filter commits easily. In any way really. <a href="http://elleestcrimi.me/2012/04/29/how-to-filter-commit-messages-by-committer-on-code-google-com/">Hadeer Younis</a> has posted a nifty script that dynamically filters them from the changes page.</p>
<p>Being the person I am, I refactored that script for easier usage.</p>
<ul>
<li>Browse normally to the commit list page, example: http://code.google.com/p/smartsoft-12/source/list</li>
<li>Load this once:
<pre class="brush:js">
if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,h,s){s=d.createElement('script');s.type='text/javascript';s.src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';((h=document.head)||(h=document.getElementsByTagName('head'),h?h[0]:document.body)||document.documentElement).appendChild(s)})(document);
var total_commits = -1;
var results = false;
function filter_commits(regex) {
    if (total_commits == -1) {
        total_commits = $('.pagination:first').text().split('of')[1].split('Older')[0].trim()
    }
    $('div.list b:last').html('Please wait while we filter the log...');
	if (results == false)
	    $('#colcontrol').load('list?num='+total_commits+' #colcontrol', function(){
	        results = $('#resultstable>tbody').clone();
			do_filter(regex);
	    });
	else
		do_filter(regex);
}
function do_filter(regex) {
	$('#resultstable>tbody').html(results.html())
	$('#resultstable>tbody>tr + tr:visible').each(function(){
		if(!$(this).text().match(regex))
			$(this).hide()
	});
	$('div.list b:last').html('Committed changes (done filtering)');
}</pre>
</li>
<li>Run this to filter
<pre class="brush:js">// enter a regular expression to match against (username, r#, [uU]pdate issue #, etc)
filter_commits("kamasheto");
</pre>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/601/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Untitled</title>
		<link>http://sakr.me/597</link>
		<comments>http://sakr.me/597#comments</comments>
		<pubDate>Mon, 27 Feb 2012 22:52:52 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=597</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://sakr.me/597/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://sakr.me/audio/Albo.mp3" length="2754469" type="audio/mpeg" />
		</item>
		<item>
		<title>Preview Print CSS on-the-fly</title>
		<link>http://sakr.me/590</link>
		<comments>http://sakr.me/590#comments</comments>
		<pubDate>Mon, 13 Feb 2012 12:24:52 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=590</guid>
		<description><![CDATA[There are countless tools to help you with debugging CSS intended for the front-end &#8220;screen.&#8221; Inspector tools are now bundled with most modern browsers and are very powerful in terms of letting the developer manipulate the DOM in realtime. However &#8230; <a href="http://sakr.me/590">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are countless tools to help you with debugging CSS intended for the front-end &#8220;screen.&#8221; Inspector tools are now bundled with most modern browsers and are very powerful in terms of letting the developer manipulate the DOM in realtime.</p>
<p>However as soon as you try to develop UI for the printer it starts to get lame. Previewing the printer friendly version requires sometimes lots of steps and that could be quite exhausting on the long run. You could use <a href="https://addons.mozilla.org/en-US/firefox/addon/printprint-preview/">addons that attempt to make this easier,</a> but it still gets exhausting.</p>
<p>A good workaround I came across is using Javascript to dynamically remove the screen CSS and enable the print CSS instead. The underlying idea is quite simple: (jQuery)</p>
<pre class="brush:javascript">
	$('link[media="screen"]').remove()
	$('link[media="print"]').attr('media', 'screen')
</pre>
<p>You could run this code on load (<code>$(function(){ /* here */ });</code>), or trigger it on a certain event (clicking a certain test button for example.)</p>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/590/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac101 &#8212; Owning Your First Mac Pt. 2</title>
		<link>http://sakr.me/571</link>
		<comments>http://sakr.me/571#comments</comments>
		<pubDate>Mon, 23 Jan 2012 03:26:28 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[series]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=571</guid>
		<description><![CDATA[Owning your first Mac is usually a big step. Overcoming the feeling of buying perhaps the most overpriced gadget you&#8217;ve ever admired. And it probably goes on to having to live with people who, even when they decide to keep &#8230; <a href="http://sakr.me/571">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Owning your first Mac is usually a big step. Overcoming the feeling of buying perhaps the most overpriced gadget you&#8217;ve ever admired. And it probably goes on to having to live with people who, even when they decide to keep it to themselves, look at it as a rip-off because, always, there are much cheaper alternatives with perhaps even better specs!</p>
<p>All that aside, you&#8217;ve probably also spent a considerable portion of your life on a PC. You&#8217;re used to it, familiar with it, and most of all, grown attached to it.</p>
<p>Among other things, these are a few reasons of the many reasons I think people take Windows with them when they move to a Mac. They either install Windows *just in case* or have their older laptop readily available for when they (almost always) need it. This branches to two main problems: not exploring, and porting your conveniences. I&#8217;ll elaborate.</p>
<h3>Not Exploring</h3>
<p>Out of the box, a Mac is far beyond your best companion. Aside from all the apps you&#8217;ll ever need for you to dive right into work, there are probably apps that you won&#8217;t know you need until later. If you decide to assume a Mac is yet another PC and not lurk around for what&#8217;s there and what&#8217;s not, you might never know what power lies within your hands. Always look for missing items and never hesitate to Google!</p>
<h3>Porting Your Conveniences</h3>
<p>Get used to the old (could be bad) habits and using them on your Mac. For example relying on GUI for all tasks. Mac is built on unix and has the same powerful terminal you expect to find on any linux machine. This lets you do extraordinary things with a few commands. Once you&#8217;re used to the new &#8220;Mac&#8221; conveniences, you&#8217;ll realize everything could be done better. ;-)</p>
<p>Remember, treat your Mac as a new environment. Don&#8217;t use your Mac alongside a PC at least during the first few weeks of your purchase. Get used to your new gadget because it is rewarding. Happy Macing!</p>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/571/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Under The Spotlight</title>
		<link>http://sakr.me/563</link>
		<comments>http://sakr.me/563#comments</comments>
		<pubDate>Fri, 20 Jan 2012 21:50:18 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=563</guid>
		<description><![CDATA[Dear Diary, I have no interest in birthdays or celebrations of that sort. They simply have (had) very little to zero significance to me. And since I&#8217;ve always thought of myself as an awkward person (probably still the same) when &#8230; <a href="http://sakr.me/563">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Dear Diary,</p>
<p>I have no interest in birthdays or celebrations of that sort. They simply have (had) very little to zero significance to me. And since I&#8217;ve always thought of myself as an awkward person (probably still the same) when it comes to parties anyway, that made it all the lot easier. I don&#8217;t really look forward to being under the spotlight on my &#8220;special day&#8221; (still applies teehee) because of a lot of irrelevant reasons at the moment.</p>
<p>19/01/2012 marks my 25th birthday. Happily enough, 19/01/2012 also marks my 1st &#8220;surprise birthday party.&#8221; It marks the first time I was shocked to realize I&#8217;m surrounded by people that care enough to give you a special treat on your special day. People that will forever be engraved in my memory for how they made me feel on that single one day.</p>
<p>To all those that made this possible and were there, from the deepest spot of my heart, thank you. :-)</p>
<p>PS. Since I try and keep a lid on my birthday (it&#8217;s not on my Facebook and it&#8217;s not even in plain here on my website,) I spent quite some time during my shocking gaze trying to figure out how it went out. Apparently <a href="http://ahmedmotaz.com">Ahmed Motaz</a> (the extremely detail-oriented software engineer I so happen to work with) had noticed it on my CV when I applied for <a href="http://zoboon.com">Zoboon, Inc.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/563/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thesis Acknowledgements</title>
		<link>http://sakr.me/528</link>
		<comments>http://sakr.me/528#comments</comments>
		<pubDate>Thu, 20 Oct 2011 17:18:55 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[thesis]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=528</guid>
		<description><![CDATA[My sincerest gratitudes and appreciation go to my parents for their faith and unlimited support to me. I am also greatly thankful to Nourhan Labeeb, whom if it weren&#8217;t for her this thesis would have not been been possible. I &#8230; <a href="http://sakr.me/528">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>My sincerest gratitudes and appreciation go to my parents for their faith and unlimited support to me.</p>
<p>I am also greatly thankful to Nourhan Labeeb, whom if it weren&#8217;t for her this thesis would have not been been possible.</p>
<p>I also owe it to Prof. Dr. Slim Abdennhader, Eng. Marlien Edward, and DFKI for giving me the chance to work on this project.</p>
<p>I would like to acknowledge and thank my supervisor Ralf Biedert for sharing his expertise and giving me guidance whenever possible. Also, I would like to thank Thomas Kieninger and Jane Bensch for making us feel right at home during our stay abroad.</p>
<p>Finally, I would like to extend my warm gratitude to my colleagues who accompanied me, some of which had agreed to being experimented numerous times &#8212; without them it would have never been the same. I would like to specially thank Dalia Badawi, Iman Mansour, Khaled Shokry, Loai Ghoraba, Menna Amer, Mohamed Emad, Mohamed Gad, and Rana Ashraf for their humongous moral support during the tough periods of my stay.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/528/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AutoCompleteTextView Not Showing On-Screen Keyboard</title>
		<link>http://sakr.me/520</link>
		<comments>http://sakr.me/520#comments</comments>
		<pubDate>Thu, 29 Sep 2011 19:35:24 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[dev]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=520</guid>
		<description><![CDATA[Problem When attempting to write in an AutoCompleteTextView element, the on-screen keyboard doesn&#8217;t show. After changing views and going back to the Activity that had the element, the keyboard worked as intended. Environemt The on-screen keyboard worked as intended on &#8230; <a href="http://sakr.me/520">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Problem</h3>
<p>When attempting to write in an AutoCompleteTextView element, the on-screen keyboard doesn&#8217;t show. After changing views and going back to the Activity that had the element, the keyboard worked as intended. </p>
<h3>Environemt</h3>
<p>The on-screen keyboard worked as intended on the android 1.6 emulator. However on the Samsung emulator (2.2) and a Samsung device the keyboard failed to show.</p>
<h3>Solution</h3>
<p>You should not requestFocus by the autocomplete element. After removing the requestFocus the autocomplete worked with the on-screen keyboard every time it got focus.</p>
<p>Credits: <a href="http://twitter.com/dina_helal">@dina_helal</a> for reporting. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/520/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Germany &#8212; The Experience</title>
		<link>http://sakr.me/486</link>
		<comments>http://sakr.me/486#comments</comments>
		<pubDate>Thu, 18 Aug 2011 20:39:47 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[europe]]></category>
		<category><![CDATA[germany]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=486</guid>
		<description><![CDATA[Kind of ironic how everyone expects there to be an experience when you travel abroad. Why should there be &#8220;an experience&#8221;? What&#8217;s so different out there that makes it all worth the while, I wonder. In short: nothing. (I bet &#8230; <a href="http://sakr.me/486">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Kind of ironic how everyone expects there to be an experience when you travel abroad.</p>
<p>Why should there be &#8220;an experience&#8221;? What&#8217;s so different out there that makes it all worth the while, I wonder.</p>
<p>In short: nothing. (I bet a bunch of you aren&#8217;t surprised right now at me saying this, but that&#8217;s not supposed to surprise you. Read on.)</p>
<p><span id="more-486"></span>For someone that has lived all his life in the middle east, Europe in general and Germany in specific are different in almost every single aspect. People are different, language is different, system is different, culture is different, weather is different, cars are different, women are different (that had to be mentioned alone for obvious reasons), food is different. Everything is different.</p>
<p>To be honest, for some time during my six months stay here in Germany that was all I could see. Differences. And you&#8217;d think to yourself: why would I say nothing is different then?</p>
<p>Because all of a sudden, at some point also during my (long) stay, things didn&#8217;t look so different. </p>
<p>I got used to it. </p>
<p>I got used to the people. I got used to the language (sort of.) I got used to the system. I got used to the culture (sort of.) I got used to the weather. I got used to the cars. I got used to the women (not really, I couldn&#8217;t in a million years.) I got used to the food. I got used to everything.</p>
<p>And then it all made sense. Much like everything else, things are relative. It&#8217;s what you&#8217;re used to compared to what everyone around you are used to. Once you adopt, you don&#8217;t feel different anymore. Once you and them do the same things without giving it much thought, it doesn&#8217;t become a barrier.</p>
<p>All aside, I learned a few things from my stay. I&#8217;m not exactly sure if Germany or Europe were behind it (to some extent they were, you&#8217;ll see why) or was it merely me living alone that did the trick.</p>
<ul>
<li><strong>Administration Work</strong> &#8212; first day we came here we had to sign up for a bank account. We had to sign up for our apartment rent. We had to sign contracts with our company. We had to do paper work I&#8217;ve never had to go through in this detail. This has grown my tendency to walk into places and get things done.</li>
<li><strong>Traveling</strong> &#8212; it saddens me I had to know from a German colleague that Egypt has one of the best diving locations in the world &#8211; the red sea. Why can&#8217;t a bunch of friends organize a trip to somewhere at least inside their country (I was going to say  around their country) and rent a place and go for it!</li>
<li><strong>Germans are not super</strong> &#8212; Germans are human. Some are super smart, some are super dumb, some are super productive, some are super workaholics, some are super lazy, some are super friendly, some are super mean. Some are normal. Some are even sleeping under the bridge because they were too drunk to go home the previous night.</li>
<li><strong>Appreciate what you have</strong> &#8212; the hot summer days are a dream for some people. (Those that don&#8217;t mind wearing less. A whole lot less. But yeah, still, a dream for them.) Petrol costs about 8 times more.
</ul>
<p>It&#8217;s true that if you compare both systems, one might be overwhelming. But this whole relativity theory has really gave me hope about Egypt&#8217;s current situation. If a new system is implemented, a new stronger more humanly system, people will eventually get used to it. People will adopt it. Live with it. It doesn&#8217;t take long to adopt and it shouldn&#8217;t be too hard to teach people that it&#8217;s all for the greater good. I can only imagine how iconic Egypt can be if the system was upgraded. If a better standard has been set.</p>
<p>Then again.. I was talking with a German colleague again today and driving came up. I quote myself: &#8220;If I had to pick a place to drive, Egypt or Germany, I&#8217;d pick driving in Egypt. Every. Single. Time.&#8221; It&#8217;s what I love and it&#8217;s what I&#8217;ll choose. But when the decision comes for a better community and better standards for everyone, I will gladly give it up for the vast majority that hate it.</p>
<p>Most the time while I&#8217;m sitting right here in my room in front of my laptop, slightly dimmed down so my eyes won&#8217;t hurt me, I&#8217;d feel the exact same way I used to feel sitting in my room back in Egypt, in front of my laptop, slightly dimmed down so my eyes won&#8217;t hurt me. Only difference is, back home I&#8217;d be on a far more comfortable mattress and expect my mum to walk in with a bowl of fruits perfectly cut ready for me to gulp زي البغل. </p>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/486/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Setting Nameservers VS A-records</title>
		<link>http://sakr.me/472</link>
		<comments>http://sakr.me/472#comments</comments>
		<pubDate>Sat, 13 Aug 2011 09:33:50 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[dns records]]></category>
		<category><![CDATA[domain]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=472</guid>
		<description><![CDATA[If you&#8217;ve used your personal domain on Tumblr you&#8217;d know how easy it is to set it up: you create an A-record at your domain provider, in my case GoDaddy, and tell Tumblr what your domain is. That&#8217;s it. Aside &#8230; <a href="http://sakr.me/472">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve used your personal domain on Tumblr you&#8217;d know how easy it is to set it up: you create an A-record at your domain provider, in my case GoDaddy, and tell Tumblr what your domain is. That&#8217;s it.</p>
<p>Aside from being dumbly easy, this configuration has always tempted me to be a tumblr user with my domain. Reason being, I could host my email MX record configuration at GoDaddy which means I ensure a better quality or uptime for my precious email records &#8211; which in plain English means I get my emails all the time.</p>
<p>Judging by the fact I rely a whole lot on those records to receive my emails, I kinda need to make sure that&#8217;s properly handled before settling for a specific setup.</p>
<p><span id="more-472"></span>When I decided to use my personal blog (this one), I usually set my nameservers records to my host and from my own cPanel (here at FrontServers) I would setup all my other records &#8211; namely, again, my MX records which deliver my emails gracefully to Google/Gmail.</p>
<p>That&#8217;s pretty cool considering I can keep all my configuration at my host and forget about GoDaddy, but then, the problem arises when my host is down. Every time my host is down, my emails won&#8217;t arrive because they wouldn&#8217;t know where to go (or be accepted at all in case I accept emails on this host) because the actual host is down &#8212; all records are dead.</p>
<p>To solve this problem, I experimented with setting an A-record for my domain that points to this host instead of globally setting my nameservers to here. This way I can still handle my records, all of them, from my GoDaddy control panel. This way, I never have to worry about my host going down again because all my records would be safe, hopefully forever available, at GoDaddy.</p>
<p>To know your A-record point to address use a simple dns lookup on one of the nameservers your host provides you with. Assign that to a global match (@) and you&#8217;re set to go. You&#8217;re just going to have to keep in mind your subdomains in this case would not function as flawless as usual since you&#8217;d need a separate A-record for each.</p>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/472/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>لعله خيراً</title>
		<link>http://sakr.me/436</link>
		<comments>http://sakr.me/436#comments</comments>
		<pubDate>Thu, 04 Aug 2011 11:02:47 +0000</pubDate>
		<dc:creator>kamasheto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sakr.me/?p=436</guid>
		<description><![CDATA[كان لأحد الملوك وزير حكيم وكان الملك يقربه منه ويصطحبه معه في كل مكان. وكان كلما أصاب الملك ما يكدره قال له الوزير “لعله خيراً” فيهدأ الملك. وفي إحدى المرات قطع إصبع الملك فقال الوزير “لعله خيراً” فغضب الملك غضباً &#8230; <a href="http://sakr.me/436">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="text-align: right;">كان لأحد الملوك وزير حكيم وكان الملك يقربه منه ويصطحبه معه في كل مكان. وكان كلما أصاب الملك ما يكدره قال له الوزير “لعله خيراً” فيهدأ الملك. وفي إحدى المرات قطع إصبع الملك فقال الوزير “لعله خيراً” فغضب الملك غضباً شديداً وقال ما الخير في ذلك؟! وأمر بحبس الوزير …<br />
فقال الوزير الحكيم “لعله خيراً”<br />
ومكث الوزير فترة طويلة في السجن.<br />
وفي يوم خرج الملك للصيد وابتعد عن الحراس ليتعقب فريسته، فمر على قوم يعبدون صنم فقبضوا عليه ليقدموه قرباناً للصنم ولكنهم تركوه بعد أن اكتشفوا أن قربانهم إصبعه مقطوع..<br />
فانطلق الملك فرحاً بعد أن أنقذه الله من الذبح تحت قدم تمثال لا ينفع ولا يضر وأول ما أمر به فور وصوله القصر أن أمر الحراس أن يأتوا بوزيره من السجن واعتذر له عما صنعه معه وقال أنه أدرك الآن الخير في قطع إصبعه، وحمد الله تعالى على ذلك.<br />
ولكنه سأله عندما أمرت بسجنك قلت “لعله خيراً” فما الخير في ذلك؟<br />
فأجابه الوزير أنه لو لم يسجنه.. لَصاحَبَه فى الصيد فكان سيقدم قرباناً بدلاً من الملك… فكان في صنع الله كل الخير.</div>
<p><a href="http://on.fb.me/o96RVG">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sakr.me/436/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

