<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Abu-Bakr El-seddiq&#039;s  Blog</title>
	<atom:link href="http://abubakrelseddiq.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://abubakrelseddiq.wordpress.com</link>
	<description>...   Always Be The Best, Or Die Trying   ...</description>
	<lastBuildDate>Tue, 20 Oct 2009 01:26:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='abubakrelseddiq.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Abu-Bakr El-seddiq&#039;s  Blog</title>
		<link>http://abubakrelseddiq.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://abubakrelseddiq.wordpress.com/osd.xml" title="Abu-Bakr El-seddiq&#039;s  Blog" />
	<atom:link rel='hub' href='http://abubakrelseddiq.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Model &#8211; View &#8211; Controller</title>
		<link>http://abubakrelseddiq.wordpress.com/2009/10/20/model-view-controller/</link>
		<comments>http://abubakrelseddiq.wordpress.com/2009/10/20/model-view-controller/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 01:23:42 +0000</pubDate>
		<dc:creator>Abu-Bakr El-seddiq</dc:creator>
				<category><![CDATA[architectural patterns]]></category>
		<category><![CDATA[Design Patterns]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://abubakrelseddiq.wordpress.com/?p=11</guid>
		<description><![CDATA[MVC Model Domain  specific representation of the data Domain logic adds meaning to raw data When a model changes its state, it notifies its associated views so they can refresh. Model encapculate storage mechanism Models are not data access objects Model knows how to persist itself. View Renders the model into a form suitable for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abubakrelseddiq.wordpress.com&amp;blog=8559077&amp;post=11&amp;subd=abubakrelseddiq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1 style="text-align:center;"><strong><em><span style="color:#ff0000;">MVC</span></em></strong></h1>
<p><strong><em>Model</em></strong></p>
<ul>
<li>Domain  specific representation of the data</li>
<li>Domain logic adds meaning to raw data</li>
<li>When a model changes its state, it notifies its associated views so they can refresh.</li>
<li>Model encapculate storage mechanism</li>
<li>Models are not data access objects</li>
<li>Model knows how to persist itself.</li>
</ul>
<p><strong><em>View </em></strong></p>
<ul>
<li>Renders the model into a form suitable for interaction</li>
<li>a user interface element.</li>
<li>Multiple views can exist for a single model for different purposes.</li>
</ul>
<p><strong><em>Controller </em></strong></p>
<ul>
<li>Receives input and initiates a response by making calls on model objects.</li>
<li>An MVC application may be a collection of model/view/controller triplets, each responsible for a different UI element.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abubakrelseddiq.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abubakrelseddiq.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abubakrelseddiq.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abubakrelseddiq.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abubakrelseddiq.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abubakrelseddiq.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abubakrelseddiq.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abubakrelseddiq.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abubakrelseddiq.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abubakrelseddiq.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abubakrelseddiq.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abubakrelseddiq.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abubakrelseddiq.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abubakrelseddiq.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abubakrelseddiq.wordpress.com&amp;blog=8559077&amp;post=11&amp;subd=abubakrelseddiq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abubakrelseddiq.wordpress.com/2009/10/20/model-view-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eaf30e0a77340b4669d51c19edfe052f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abu-Bakr El-seddiq</media:title>
		</media:content>
	</item>
		<item>
		<title>BASICS</title>
		<link>http://abubakrelseddiq.wordpress.com/2009/07/18/basics/</link>
		<comments>http://abubakrelseddiq.wordpress.com/2009/07/18/basics/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 22:49:51 +0000</pubDate>
		<dc:creator>Abu-Bakr El-seddiq</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://abubakrelseddiq.wordpress.com/?p=6</guid>
		<description><![CDATA[#include &#60;header file &#62; a (preprocessor directive) instruction to the compiler to include another file in program code before compiling using namespace std; Says that all the program statements that follow are within the std namespace. cout&#60;&#60; endl;                                  cout&#60;&#60;&#8221;\n&#8221;; The 2 statements cause a linefeed to be inserted into the stream (ending line)but endl (unlike [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abubakrelseddiq.wordpress.com&amp;blog=8559077&amp;post=6&amp;subd=abubakrelseddiq&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>#include</strong><strong> &lt;header file &gt;</strong></p>
<p>a (preprocessor directive) instruction to the <em>compiler to include another file in program code before compiling</em></p>
<p><em> </em></p>
<p><strong>using</strong> <strong>namespace</strong> std;</p>
<p>Says that all the program statements that follow are within the <em>std</em> namespace.</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong><span style="color:#ff0000;"> cout&lt;&lt;     endl;                                      cout&lt;&lt;&#8221;\n&#8221;;</span></strong></td>
</tr>
</tbody>
</table>
<p><em>The 2 statements </em>cause a linefeed to be inserted into the stream (ending line)but endl (unlike ‘\n’) also causes the output buffer to be flushed.<strong> </strong></p>
<p><span id="more-6"></span></p>
<p>Escape Sequences</p>
<table border="1" cellspacing="0" cellpadding="0" width="77%">
<tbody>
<tr>
<td width="44%" valign="top">Escape Sequence</td>
<td width="55%" valign="top">Character</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\a</strong></p>
</td>
<td width="55%" valign="top">Bell (beep)</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\b</strong></p>
</td>
<td width="55%" valign="top">Backspace</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\f</strong></p>
</td>
<td width="55%" valign="top">Form feed</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\n</strong></p>
</td>
<td width="55%" valign="top">Newline</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\r</strong></p>
</td>
<td width="55%" valign="top">Return</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\t</strong></p>
</td>
<td width="55%" valign="top">Tab</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\\</strong></p>
</td>
<td width="55%" valign="top">Backslash</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\‘</strong></p>
</td>
<td width="55%" valign="top">Single quotation mark</td>
</tr>
<tr>
<td width="44%" valign="top">
<p align="center"><strong>\“</strong></p>
</td>
<td width="55%" valign="top">Double quotation marks</td>
</tr>
</tbody>
</table>
<p><em> </em></p>
<p><!--more--></p>
<p><em>Simple code example:</em></p>
<pre><strong>
</strong></pre>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">#include</span></strong><strong><span style="color:#ff0000;"> &lt;iostream&gt;</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">using</span></strong><strong><span style="color:#ff0000;"> namespace std;</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">int</span></strong><strong><span style="color:#ff0000;"> main()</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">   {</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">   int ftemp;  //for temperature in fahrenheit</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">   cout &lt;&lt; “Enter temperature in fahrenheit: “;</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">   cin &gt;&gt; ftemp;</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">   int ctemp = (ftemp-32) * 5 / 9;</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">   cout &lt;&lt; “Equivalent in Celsius is: “ &lt;&lt; ctemp &lt;&lt; ‘\n’;</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">   return 0;</span></strong></pre>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;"><strong><span style="color:#ff0000;">   }</span></strong></pre>
<p><!--more--></td>
</tr>
</tbody>
</table>
<p><strong>The setw Manipulator :</strong></p>
<p>changes the field width of output. The value is right-justified within the field</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong><span style="color:#ff0000;">// width1.cpp </span></strong><strong><span style="color:#ff0000;">// demonstrates need for setw manipulator</span></strong></p>
<p><strong><span style="color:#ff0000;">#include     &lt;iostream&gt;</span></strong></p>
<p><strong><span style="color:#ff0000;">using namespace std;</span></strong></p>
<p><strong><span style="color:#ff0000;">int main()</span></strong></p>
<p><strong><span style="color:#ff0000;"> {</span></strong></p>
<p><strong><span style="color:#ff0000;"> long pop1=2425785, pop2=47, pop3=9761;</span></strong></p>
<p><strong><span style="color:#ff0000;"> cout &lt;&lt;     “LOCATION “ &lt;&lt; “POP.” &lt;&lt; endl</span></strong></p>
<p><strong><span style="color:#ff0000;">&lt;&lt;     “Portcity “ &lt;&lt; pop1 &lt;&lt; endl</span></strong></p>
<p><strong><span style="color:#ff0000;">&lt;&lt;     “Hightown “ &lt;&lt; pop2 &lt;&lt; endl</span></strong></p>
<p><strong><span style="color:#ff0000;"> &lt;&lt;     “Lowville “ &lt;&lt; pop3 &lt;&lt; endl;</span></strong></p>
<p><strong><span style="color:#ff0000;"> return 0;</span></strong></p>
<p><strong><span style="color:#ff0000;"> }</span></strong></p>
<p><strong><span style="font-weight:normal;font-size:13px;line-height:19px;">Output:</span></strong></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>LOCATION POP.</strong><strong>ortcity 2425785</strong></p>
<p><strong>Hightown 47</strong></p>
<p><strong>Lowville 9761</strong></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<pre><strong><span style="color:#ff0000;">// width2.cpp</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">// demonstrates setw manipulator</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">#include &lt;iostream&gt;</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">#include &lt;iomanip&gt;     // for setw</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">using namespace std;</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;"> </span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">int main()</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">   {</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">   long pop1=2425785, pop2=47, pop3=9761;</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;"> </span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">   cout &lt;&lt; setw(8) &lt;&lt; “LOCATION” &lt;&lt; setw(12)</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">        &lt;&lt; “POPULATION” &lt;&lt; endl</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">        &lt;&lt; setw(8) &lt;&lt; “Portcity” &lt;&lt; setw(12) &lt;&lt; pop1 &lt;&lt; endl</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">        &lt;&lt; setw(8) &lt;&lt; “Hightown” &lt;&lt; setw(12) &lt;&lt; pop2 &lt;&lt; endl</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">        &lt;&lt; setw(8) &lt;&lt; “Lowville” &lt;&lt; setw(12) &lt;&lt; pop3 &lt;&lt; endl;</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">   return 0;</span></strong><span style="color:#ff0000;">
</span><strong><span style="color:#ff0000;">   }</span></strong>
<span style="font-family:Georgia;font-size:small;"><span style="line-height:19px;white-space:normal;">
</span></span>
<strong><span style="font-family:Georgia;font-weight:normal;line-height:19px;white-space:normal;font-size:13px;">Output:</span></strong></pre>
</td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<pre><strong>LOCATION  POPULATION</strong>
<strong>Portcity     2425785</strong>
<strong>Hightown          47</strong>
<strong>Lowville        9761</strong>
<span style="font-family:Georgia;font-size:small;"><span style="line-height:19px;white-space:normal;"><strong>
</strong></span></span></pre>
</td>
</tr>
</tbody>
</table>
<p style="text-align:auto;" align="center"><span style="font-size:medium;"><span style="font-size:small;"><br />
</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abubakrelseddiq.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abubakrelseddiq.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abubakrelseddiq.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abubakrelseddiq.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abubakrelseddiq.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abubakrelseddiq.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abubakrelseddiq.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abubakrelseddiq.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abubakrelseddiq.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abubakrelseddiq.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abubakrelseddiq.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abubakrelseddiq.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abubakrelseddiq.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abubakrelseddiq.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abubakrelseddiq.wordpress.com&amp;blog=8559077&amp;post=6&amp;subd=abubakrelseddiq&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abubakrelseddiq.wordpress.com/2009/07/18/basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/eaf30e0a77340b4669d51c19edfe052f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Abu-Bakr El-seddiq</media:title>
		</media:content>
	</item>
	</channel>
</rss>
