<?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>Mario Awad &#187; Quick tips</title>
	<atom:link href="http://www.marioawad.com/category/quick-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marioawad.com</link>
	<description>On Software and Web Development</description>
	<lastBuildDate>Fri, 06 Nov 2009 07:32:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Changing the default Look and Feel of NetBeans</title>
		<link>http://www.marioawad.com/2009/10/25/changing-the-default-look-and-feel-of-netbeans/</link>
		<comments>http://www.marioawad.com/2009/10/25/changing-the-default-look-and-feel-of-netbeans/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 14:27:45 +0000</pubDate>
		<dc:creator>Mario Awad</dc:creator>
				<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[Software development]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[netbeans]]></category>

		<guid isPermaLink="false">http://www.marioawad.com/?p=131</guid>
		<description><![CDATA[Why change the default Look and Feel?
Aesthetics apart, every developer should change the default Look and Feel of NetBeans. Why? because it has an annoying bug. Here&#8217;s what happens: you&#8217;re pumping code in the NetBeans code editor like crazy. You need to switch to another window for a quick copy / paste from your eternal [...]]]></description>
			<content:encoded><![CDATA[<h2>Why change the default Look and Feel?</h2>
<p>Aesthetics apart, every developer should change the default Look and Feel of NetBeans. Why? because it has an annoying bug. Here&#8217;s what happens: you&#8217;re pumping code in the NetBeans code editor like crazy. You need to switch to another window for a quick copy / paste from your eternal library of super code. You press ALT + TAB, you go to your other window, you press CTRL + C, you press ALT + TAB, you&#8217;re in NetBeans again getting ready to kick your paste operation using CTRL + V&#8230; but&#8230; but&#8230; you&#8217;re no longer editing the code!!! You&#8217;re now navigating the menu!!! ANNOYING!!! SHOW STOPPER!!!</p>
<p>Luckily, it turns out this is a bug in the Windows Look and Feel of Java (Which NetBeans uses by default). Time to change it of course. Read on.</p>
<p>Note: I&#8217;m running NetBeans IDE 6.7.1 under Windows XP SP3 / Java SDK 1.6. If you have a different version, this bug might not manifest (Lucky you!!!).</p>
<h2>8 Steps to change the default NetBeans Look and Feel</h2>
<ol>
<li>Download the three .nbm files from <a href="http://kenai.com/projects/nbsubstance/downloads/directory/updates">NetBeans substance look and feel plugin</a></li>
<li>Open NetBeans. Go to Tools -&gt; Plugins -&gt; Downloaded</li>
<li>Click on Add Plugins and add the three downloaded .nbm files (You have to add them one by one)</li>
<li>Make sure the three files are selected, click Install, and follow through</li>
<li>Restart NetBeans</li>
<li>Go to Tools -&gt; Options -&gt; Miscellaneous -&gt; Look and Feel</li>
<li>Choose your preferred Look and Feel and Restart NetBeans again</li>
<li>Enjoy <img src='http://www.marioawad.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
<h2>References</h2>
<p>ALT + TAB switching to/from netbeans on Windows<br />
<a href="http://forums.netbeans.org/topic5465.html">http://forums.netbeans.org/topic5465.html</a></p>
<p>NetBeans substance look and feel plugin (Project&#8217;s home page)<br />
<a href="http://kenai.com/projects/nbsubstance/pages/Home">http://kenai.com/projects/nbsubstance/pages/Home</a><a href="http://forums.netbeans.org/topic5465.html"></a></p>
<p>NetBeans IDE &#8211; Look and Feel<br />
<a href="http://netbeanside61.blogspot.com/2008/05/netbeans-ide-look-and-feel.html">http://netbeanside61.blogspot.com/2008/05/netbeans-ide-look-and-feel.html</a></p>
<p>JTattoo<br />
<a href="http://www.jtattoo.net">http://www.jtattoo.net</a></p>
<p>20+ Free Look and Feel Libraries for Java Swing<br />
<a href="http://javabyexample.wisdomplug.com/component/content/article/37-core-java/65-20-free-look-and-feel-libraries-for-java-swings.html">http://javabyexample.wisdomplug.com/component/content/article/37-core-java/65-20-free-look-and-feel-libraries-for-java-swings.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.marioawad.com/2009/10/25/changing-the-default-look-and-feel-of-netbeans/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Capture the output of var_dump in a string</title>
		<link>http://www.marioawad.com/2009/07/11/capture-the-output-of-var_dump-in-a-string/</link>
		<comments>http://www.marioawad.com/2009/07/11/capture-the-output-of-var_dump-in-a-string/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 11:43:15 +0000</pubDate>
		<dc:creator>Mario Awad</dc:creator>
				<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.marioawad.com/?p=199</guid>
		<description><![CDATA[Introduction
You are programming in PHP and you have an array variable that you&#8217;d like to explore at different execution paths. Of course, the best way is to use a PHP debugger like xdebug or Zend Debugger, but, what happens when you&#8217;re too lazy to install a debugger? What happens when you don&#8217;t want or can&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>You are programming in PHP and you have an array variable that you&#8217;d like to explore at different execution paths. Of course, the best way is to use a PHP debugger like <a href="http://xdebug.org">xdebug</a> or <a href="http://www.zend.com/en/community/pdt">Zend Debugger</a>, but, what happens when you&#8217;re too lazy to install a debugger? What happens when you don&#8217;t want or can&#8217;t install a debugger and you just need to check the content of that array by dumping it in your log file? Well, you might think you&#8217;re stuck, but, read on&#8230;</p>
<h2>What is var_dump?</h2>
<p>The <a href="http://www.php.net/var_dump">var_dump manual page</a> states that var_dump displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.</p>
<p>The problem is that var_dump outputs its result directly to the browser, how can you capture its output in a string variable? read on&#8230;</p>
<h2>Using output control functions for the solution</h2>
<p>Output control functions can be used to capture and redirect the standard output. For more details, read the <a href="http://www.php.net/manual/en/ref.outcontrol.php">PHP manual on output control functions</a>, of course.</p>
<p>Here&#8217;s the solution:</p>
<pre class="brush: php;">
function varDumpToString ($var)
{
    ob_start();
    var_dump($var);
    $result = ob_get_clean();
    return $result;
}
//
//Example usage:
//    $data = array('first', 'second', 'third');
//    $result = varDumpToString($data);
//
</pre>
<p>All you have to do now is call the varDumpToString function. Happy coding <img src='http://www.marioawad.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.marioawad.com/2009/07/11/capture-the-output-of-var_dump-in-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Gmail&#8217;s spam count</title>
		<link>http://www.marioawad.com/2009/06/18/hide-gmail-spam-count/</link>
		<comments>http://www.marioawad.com/2009/06/18/hide-gmail-spam-count/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 17:34:28 +0000</pubDate>
		<dc:creator>Mario Awad</dc:creator>
				<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.marioawad.com/?p=144</guid>
		<description><![CDATA[Does the spam count in Gmail bother you? It certainly does.
Are you too lazy to delete your spam messages every few minutes? Of course you are.
Would you like to preserve your spam messages just in case they might contain a legitimate email? Of course you would love to.
You hate using third party tools such as [...]]]></description>
			<content:encoded><![CDATA[<p>Does the spam count in Gmail bother you? It certainly does.</p>
<p>Are you too lazy to delete your spam messages every few minutes? Of course you are.</p>
<p>Would you like to preserve your spam messages just in case they might contain a legitimate email? Of course you would love to.</p>
<p>You hate using third party tools such as <a href="https://addons.mozilla.org/en-US/firefox/addon/748">Greasemonkey</a> scripts to accomplish this very simple task? Of course you do.</p>
<p>Well, you&#8217;re in luck. I found this <a href="http://lifehacker.com/software/gmail/get-rid-of-gmails-unread-spam-count-323944.php">quick tip at Lifehacker</a> and thought it&#8217;s too good not to be shared. The idea is to create a filter telling Gmail that all incoming spam messages should be marked as read. Of course, Gmail will keep spam messages for 30 days, giving you enough time to rescue legitimate email when you get that angry call from a customer or friend (Ummm&#8230; euhh&#8230; why didn&#8217;t you reply to my email yet!!!).</p>
<p style="text-align: center;"><img class="size-full wp-image-188 aligncenter" title="Gmail Spam Filter Creation Screenshot" src="http://www.marioawad.com/wp-content/uploads/2009/06/gmail-spam-filter-creation.png" alt="Gmail Spam Filter Creation Screenshot" width="450" height="150" /></p>
<p>What you have to do is create a new filter, add &#8220;in:spam&#8221; in the &#8220;Has the words&#8221; field, click next, ignore the warning given by Gmail (because, well, contrary to what they say, it works!!!), choose &#8220;Mark as read&#8221;, and click create filter.</p>
<p>Simple, efficient, and clean. Enjoy <img src='http://www.marioawad.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.marioawad.com/2009/06/18/hide-gmail-spam-count/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
