<?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>Masdel Blog</title>
	<atom:link href="http://masdel.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://masdel.wordpress.com</link>
	<description>In a few words, explain what this blog is about.</description>
	<lastBuildDate>Sat, 31 Dec 2011 23:25:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='masdel.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Masdel Blog</title>
		<link>http://masdel.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://masdel.wordpress.com/osd.xml" title="Masdel Blog" />
	<atom:link rel='hub' href='http://masdel.wordpress.com/?pushpress=hub'/>
		<item>
		<title>2011 in review</title>
		<link>http://masdel.wordpress.com/2011/12/31/2011-in-review/</link>
		<comments>http://masdel.wordpress.com/2011/12/31/2011-in-review/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 23:25:39 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=653</guid>
		<description><![CDATA[The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog. Here&#8217;s an excerpt: The concert hall at the Syndey Opera House holds 2,700 people. This blog was viewed about 9,400 times in 2011. If it were a concert at Sydney Opera House, it would take about 3 sold-out performances for that many [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=653&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.</p>
<div style="background:url('/wp-content/mu-plugins/annual-reports/img/emailteaser.jpg') no-repeat center center;height:300px;"></div>
<p>Here&#8217;s an excerpt:</p>
<blockquote><p>The concert hall at the Syndey Opera House holds 2,700 people.  This blog was viewed about <strong>9,400</strong> times in 2011.  If it were a concert at Sydney Opera House, it would take about 3 sold-out performances for that many people to see it.</p></blockquote>
<p><a href="/2011/annual-report/">Click here to see the complete report.</a></p>
<br />Filed under: <a href='http://masdel.wordpress.com/category/fun/'>Fun</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/653/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/653/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/653/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=653&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2011/12/31/2011-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>
	</item>
		<item>
		<title>Can&#8217;t connect to local MySQL server through socket &#8216;/tmp/mysql.sock&#8217; on Zend Framework</title>
		<link>http://masdel.wordpress.com/2011/10/18/cant-connect-to-local-mysql-server-through-socket-tmpmysql-sock-on-zend-framework/</link>
		<comments>http://masdel.wordpress.com/2011/10/18/cant-connect-to-local-mysql-server-through-socket-tmpmysql-sock-on-zend-framework/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 09:09:00 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[error mysql socket]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=649</guid>
		<description><![CDATA[Error : Can&#8217;t connect to local MySQL server through socket &#8216;/tmp/mysql.sock&#8217; the solution is change the following lines into Filed under: Research<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=649&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Error :<br />
Can&#8217;t connect to local MySQL server through socket &#8216;/tmp/mysql.sock&#8217;</p>
<p>the solution is change the following lines<br />
<pre class="brush: plain;">
ubuntu@ip-10-128-138-137:~$ cat /srv/www/xxx/application/configs/application.ini | grep resources.db
resources.db.adapter         = &quot;PDO_MYSQL&quot;
resources.db.params.host     = &quot;localhost&quot;
resources.db.params.username = &quot;xxx&quot;
resources.db.params.password = &quot;xxxpass&quot;
resources.db.params.dbname   = &quot;xxxdb&quot;
resources.db.params.profiler.enabled = true
resources.db.params.profiler.class = Zend_Db_Profiler_Firebug
resources.db.params.driver_options.1002 = &quot;SET NAMES utf8&quot;
</pre><br />
into<br />
<pre class="brush: plain;">
ubuntu@ip-10-128-138-137:~$ cat /srv/www/xxx/application/configs/application.ini | grep resources.db
resources.db.adapter         = &quot;PDO_MYSQL&quot;
resources.db.params.host     = &quot;127.0.0.1&quot;
resources.db.params.username = &quot;xxx&quot;
resources.db.params.password = &quot;xxxpass&quot;
resources.db.params.dbname   = &quot;xxxdb&quot;
resources.db.params.profiler.enabled = true
resources.db.params.profiler.class = Zend_Db_Profiler_Firebug
resources.db.params.driver_options.1002 = &quot;SET NAMES utf8&quot;
</pre></p>
<br />Filed under: <a href='http://masdel.wordpress.com/category/research/'>Research</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/649/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=649&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2011/10/18/cant-connect-to-local-mysql-server-through-socket-tmpmysql-sock-on-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>
	</item>
		<item>
		<title>Recovering/Reseting Password PostgreSQL Server</title>
		<link>http://masdel.wordpress.com/2011/10/05/recoverreset-password-postgresql-server/</link>
		<comments>http://masdel.wordpress.com/2011/10/05/recoverreset-password-postgresql-server/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 11:16:03 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Password Reset]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">https://masdel.wordpress.com/2011/10/05/recoverreset-password-postgresql-server/</guid>
		<description><![CDATA[For those who had encountered error as below, here is how to fix it. Edit pg_hba.conf and change the following line into Restart the postgreSQL service Reset your postgres password by executing Edit pg_hba.conf and change the following line into As before, restart the service Finally, check your new passwd Posted with WordPress for BlackBerry. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=627&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For those who had encountered error as below,<br />
<pre class="brush: cpp;">
ubuntu@ip-10-128-73-74:~$ psql -U postgres -h localhost
Password for user postgres:
psql: FATAL:  password authentication failed for user &amp;quot;postgres&amp;quot;
FATAL:  password authentication failed for user &amp;quot;postgres&amp;quot;
</pre><br />
here is how to fix it.</p>
<ol>
<li> Edit pg_hba.conf and change the following line<br />
<pre class="brush: cpp;">
ubuntu@ip-10-128-73-74:~$ sudo nano /etc/postgresql/9.0/main/pg_hba.conf
# old
local   all         postgres                         ident
</pre><br />
into<br />
<pre class="brush: cpp;">
# new
local   all         postgres                         trust
</pre>
</li>
<li>
Restart the postgreSQL service<br />
<pre class="brush: cpp;">ubuntu@ip-10-128-73-74:~$ sudo service postgresql restart</pre>
</li>
<li>
Reset your postgres password by executing<br />
<pre class="brush: cpp;">
ubuntu@ip-10-128-73-74:~$ psql -U postgres -d template1 -c alter user postgres with password 'yournewpasswd';
psql: warning: extra command-line argument &amp;quot;user&amp;quot; ignored
psql: warning: extra command-line argument &amp;quot;postgres&amp;quot; ignored
psql: warning: extra command-line argument &amp;quot;with&amp;quot; ignored
psql: warning: extra command-line argument &amp;quot;password&amp;quot; ignored
psql: warning: extra command-line argument &amp;quot;yournewpasswd&amp;quot; ignored
ERROR:  syntax error at end of input
LINE 1: alter
</pre>
</li>
<li>
<p><pre class="brush: cpp;">
ubuntu@ip-10-128-73-74:~$ psql -U postgres -d template1 -c &amp;quot;alter user postgres with password 'yournewpasswd'&amp;quot;;
ALTER ROLE
</pre>
</li>
<li>
Edit pg_hba.conf and change the following line<br />
<pre class="brush: cpp;">
ubuntu@ip-10-128-73-74:~$ sudo nano /etc/postgresql/9.0/main/pg_hba.conf
# old
local   all         postgres                         trust
</pre><br />
into<br />
<pre class="brush: cpp;">
# new
local   all         postgres                         ident
</pre>
</li>
<li>
As before, restart the service<br />
<pre class="brush: cpp;">ubuntu@ip-10-128-73-74:~$ sudo service postgresql restart</pre>
</li>
<li>
Finally, check your new passwd<br />
<pre class="brush: cpp;">
ubuntu@ip-10-128-73-74:~$ psql -U postgres -h localhost
Password for user postgres:
psql (9.0.4)
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Type &amp;quot;help&amp;quot; for help.

postgres=# \q
ubuntu@ip-10-128-73-74:~$
</pre>
</li>
</ol>
<p>Posted with WordPress for BlackBerry.</p>
<br />Filed under: <a href='http://masdel.wordpress.com/category/tutorial/'>Tutorial</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/627/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/627/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/627/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=627&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2011/10/05/recoverreset-password-postgresql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>
	</item>
		<item>
		<title>Psychology test</title>
		<link>http://masdel.wordpress.com/2011/04/23/psychology-test/</link>
		<comments>http://masdel.wordpress.com/2011/04/23/psychology-test/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 23:32:52 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=618</guid>
		<description><![CDATA[here are my full results after taking this quiz Your view on yourself: You are intelligent, honest and sweet. You are friendly to everybody and don&#8217;t like conflict. Because you&#8217;re so cheerful and fun people are naturally attracted to you and like to talk to you. The type of girlfriend/boyfriend you are looking for: You [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=618&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>here are my full results after taking <a href="http://goo.gl/Ewgrx" title="Personality Tests" target="_blank">this</a> quiz</p>
<p><strong>Your view on yourself:</strong><br />
You are intelligent, honest and sweet. You are friendly to everybody and don&#8217;t like conflict. Because you&#8217;re so cheerful and fun people are naturally attracted to you and like to talk to you.</p>
<p><strong>The type of girlfriend/boyfriend you are looking for:</strong></p>
<p>You are a true romantic. When you are in love, you will do anything and everything to keep your love true.</p>
<p><span id="more-618"></span></p>
<p><strong>Your readiness to commit to a relationship:</strong></p>
<p>You are ready to commit as soon as you meet the right person. And you believe you will pretty much know as soon as you might that person.</p>
<p><strong>The seriousness of your love:</strong></p>
<p>Your have very sensible tactics when approaching the opposite sex. In many ways people find your straightforwardness attractive, so you will find yourself with plenty of dates.</p>
<p><strong>Your views on education:</strong></p>
<p>Education is less important than the real world out there, away from the classroom. Deep inside you want to start working, earning money and living on your own.</p>
<p><strong>The right job for you:</strong></p>
<p>You&#8217;re a practical person and will choose a secure job with a steady income. Knowing what you like to do is important. Find a regular job doing just that and you&#8217;ll be set for life.</p>
<p><strong>How do you view success:</strong></p>
<p>You are afraid of failure and scared to have a go at the career you would like to have in case you don&#8217;t succeed. Don&#8217;t give up when you haven&#8217;t yet even started! Be courageous.</p>
<p><strong>What are you most afraid of:</strong></p>
<p>You are afraid of things that you cannot control. Sometimes you show your anger to cover up how you feel.</p>
<p><strong>Who is your true self:</strong></p>
<p>You are mature, reasonable, honest and give good advice. People ask for your comments on all sorts of different issues. Sometimes you might find yourself in a dilemma when trapped with a problem, which your heart rather than your head needs to solve.</p>
<br />Filed under: <a href='http://masdel.wordpress.com/category/fun/'>Fun</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/618/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/618/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=618&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2011/04/23/psychology-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>
	</item>
		<item>
		<title>Toolbox .net Code Converter</title>
		<link>http://masdel.wordpress.com/2010/12/09/toolbox-net-code-converter/</link>
		<comments>http://masdel.wordpress.com/2010/12/09/toolbox-net-code-converter/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 07:24:07 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[.NET converter]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=600</guid>
		<description><![CDATA[Convert C# to VB.NET Support .NET 3.5 syntax, http://www.developerfusion.com/tools/convert/csharp-to-vb/ Filed under: Programming, Research<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=600&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Convert C# to VB.NET</p>
<p>Support .NET 3.5 syntax, <a href="http://www.developerfusion.com/tools/convert/csharp-to-vb/">http://www.developerfusion.com/tools/convert/csharp-to-vb/</a></p>
<br />Filed under: <a href='http://masdel.wordpress.com/category/programming/'>Programming</a>, <a href='http://masdel.wordpress.com/category/research/'>Research</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/600/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/600/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/600/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=600&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2010/12/09/toolbox-net-code-converter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>
	</item>
		<item>
		<title>Using NURBS library in Matlab</title>
		<link>http://masdel.wordpress.com/2010/11/15/using-nurbs-library-in-matlab/</link>
		<comments>http://masdel.wordpress.com/2010/11/15/using-nurbs-library-in-matlab/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 09:35:30 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[NURBS matlab]]></category>
		<category><![CDATA[NURBS surface]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=553</guid>
		<description><![CDATA[Get the NURBS library from here Extract the files to your hardisk, for example, C:\Matlab So, your NURBS lib folder will be on C:\Matlab\nurbs-1.3.1 folder, Create new m-file, TestNURBSlib.m, the control points data are taken from An Introduction to NURBS: With Historical Perspective book, pp. 215 Here is the control points data : Control Points [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=553&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ol>
<li>Get the NURBS library from <a href="http://octave.sourceforge.net/nurbs/index.html">here</a></li>
<li>Extract the files to your hardisk, for example, C:\Matlab</li>
<li>So, your NURBS lib folder will be on C:\Matlab\nurbs-1.3.1 folder,</li>
<li>Create new m-file, TestNURBSlib.m, the control points data are taken from <a href="http://www.amazon.com/Introduction-NURBS-Historical-Perspective-Kaufmann/dp/1558606696">An Introduction to NURBS: With Historical Perspective</a> book, pp. 215<br />
<span id="more-553"></span></p>
<p>Here is the control points data : </p>
<table style="width:248pt;border-collapse:collapse;" border="0" cellpadding="0" cellspacing="0" width="364">
<tr>
<th>Control Points</th>
<th>X</th>
<th>Y</th>
<th>Z</th>
<th>w</th>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B1,1</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B1,2</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B1,3</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B1,4</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B1,5</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B2,1</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B2,2</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">25</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B2,3</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B2,4</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B2,5</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B3,1</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B3,2</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">25</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B3,3</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B3,4</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">25</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B3,5</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B4,1</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B4,2</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">25</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B4,3</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">150</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B4,5</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B4,4</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">25</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">&nbsp;</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B5,1</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B5,2</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">-50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B5,3</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B5,4</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">50</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
<tr>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">B5,5</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">100</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">0</td>
<td style="width:41pt;height:10.5pt;border:.5pt solid windowtext;">1</td>
</tr>
</table>
<p>NOTE: I was modified B2,4 [-50 50 25] into B2,4 [-50 50 100]
</li>
<li>Arrange the control points data into a matrix in the form as shown below,<br />
<pre class="brush: matlabkey;">
pnts(:,:,1st row Control Point ) = [ B1,1-x B1,2-x B1,3-x B1,4-x B1,5-x;
    B1,1-y B1,2-y B1,3-y B1,4-y B1,5-y;
    B1,1-z B1,2-z B1,3-z B1,4-z B1,5-z;
    B1,1-w B1,2-w B1,3-w B1,4-w B1,5-w;
pnts(:,:,2nd row Control Point ) = [B2,1-x B2,2-x B2,3-x B2,4-x B2,5-x;
    B2,1-y B2,2-y B2,3-y B2,4-y B2,5-y;
    B2,1-z B2,2-z B2,3-z B2,4-z B2,5-z;
    B2,1-w B2,2-w B2,3-w B2,4-w B2,5-w;
</pre>
</li>
<li>The complete source code :<br />
<pre class="brush: matlabkey;">
clear all;
clc;

addpath nurbs-1.3.1/nurbs/inst -BEGIN;

pnts = zeros(4,5,5);
pnts(:,:,1) = [ -100 -100 -100 -100 -100;
    -100  -50 0 50 100;
    0 0 0 0 0;
    1 1 1 1 1];
pnts(:,:,2) = [ -50 -50 -50 -50 -50; % b2,4
    -100 -50 0 50 100;
    0 25 50 100 0;
    1 1 1 1 1];

pnts(:,:,3) = [0 0 0 0 0;
    -100 -50 0 50 100;
    0 25 50 25 0;
    1 1 1 1 1]; 
    
pnts(:,:,4) = [50 50 50 50 50;
    -100 -50 0 50 100;
    0 25 150 25 0;
    1 1 1 1 1];
    
pnts(:,:,5) = [ 100 100 100 100 100;
    -100 -50 0 50 100;
    0 0 0 0 0;
    1 1 1 1 1];

 knots{1} = [0 0 0 1/3 2/3 1 1 1];
 knots{2} = [0 0 0 1/3 2/3 1 1 1];

 srf = nrbmak(pnts,knots);
 nrbplot(srf,[20 20]);hold on;
 title('NURBS surface');
 
 % create plot for the control points
 for i = 1:5
        % U direction
        plot3([pnts(1,1,i) pnts(1,2,i) pnts(1,3,i) pnts(1,4,i) pnts(1,5,i)],[pnts(2,1,i) pnts(2,2,i) pnts(2,3,i) pnts(2,4,i) pnts(2,5,i)],[pnts(3,1,i) pnts(3,2,i) pnts(3,3,i) pnts(3,4,i) pnts(3,5,i)],'b.-');
        % V direction
        plot3([pnts(1,i,1) pnts(1,i,2) pnts(1,i,3) pnts(1,i,4) pnts(1,i,5)],[pnts(2,i,1) pnts(2,i,2) pnts(2,i,3) pnts(2,i,4) pnts(2,i,5)],[pnts(3,i,1) pnts(3,i,2) pnts(3,i,3) pnts(3,i,4) pnts(3,i,5)],'r.-');
 end
 
 axis([-100 100 -100 100 0 200])
 
 hold off;
</pre>
</li>
<p>Here is the resulting NURBS surface<br />
<div id="attachment_585" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/11/nurbs1.png"><img src="http://masdel.files.wordpress.com/2010/11/nurbs1.png?w=300&#038;h=264" alt="NURBS Surface" title="NURBS Surface" width="300" height="264" class="size-medium wp-image-585" /></a><p class="wp-caption-text">NURBS Surface</p></div></p>
<p>NOTE : For NURBS surface that has control point weight (w != 1 and w &gt; 0), The corresponding control point must be multiplied by the weight, For example, the following control points,<br />
<pre class="brush: matlabkey;">
pnts = zeros(4,5,5);
pnts(:,:,1) = [ -100 -100 -100 -100 -100;
    -100  -50 0 50 100;
    0 0 0 0 0;
    1 1 1 1 1];
pnts(:,:,2) = [ -50 -50 -50 -50 -50; % b2,4
    -100 -50 0 50 100;
    0 25 50 100 0;
    1 1 1 1 1];

pnts(:,:,3) = [0 0 0 0 0;
    -100 -50 0 50 100;
    0 25 50 25 0;
    1 1 1 1 1]; 

% change the B4,3 weight into 30
pnts(:,:,4) = [50 50 30*50 50 50;
    -100 -50 30*0 50 100;
    0 25 30*150 25 0;
    1 1 30 1 1];
    
pnts(:,:,5) = [ 100 100 100 100 100;
    -100 -50 0 50 100;
    0 0 0 0 0;
    1 1 1 1 1];
</pre><br />
will construct the following NURBS surface,<br />
<div id="attachment_586" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/11/nurbs2.png"><img src="http://masdel.files.wordpress.com/2010/11/nurbs2.png?w=300&#038;h=264" alt="NURBS Surface" title="NURBS Surface" width="300" height="264" class="size-medium wp-image-586" /></a><p class="wp-caption-text">NURBS Surface</p></div></p>
<p>Happy NURBS-ing <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  </p>
</ol>
<br />Filed under: <a href='http://masdel.wordpress.com/category/programming/'>Programming</a>, <a href='http://masdel.wordpress.com/category/research/'>Research</a>, <a href='http://masdel.wordpress.com/category/tutorial/'>Tutorial</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/553/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=553&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2010/11/15/using-nurbs-library-in-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/11/nurbs1.png?w=300" medium="image">
			<media:title type="html">NURBS Surface</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/11/nurbs2.png?w=300" medium="image">
			<media:title type="html">NURBS Surface</media:title>
		</media:content>
	</item>
		<item>
		<title>The side story of &#8220;Three questions about God&#8221;</title>
		<link>http://masdel.wordpress.com/2010/11/13/the-side-story-of-three-questions-about-god/</link>
		<comments>http://masdel.wordpress.com/2010/11/13/the-side-story-of-three-questions-about-god/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 15:17:09 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=537</guid>
		<description><![CDATA[Once upon a time there was a wise traveled with his pupil. In the middle of the way, his pupil asked, &#8220;Teacher, I was wondering, could you show me the existence of God?, what is the destiny?, and why a devil punished in the hell, as far as I know, they are made from a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=537&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Once upon a time there was a wise traveled with his pupil. In the middle of the way, his pupil asked, </p>
<blockquote><p>&#8220;Teacher, I was wondering, could you show me the existence of God?, what is the destiny?, and why a devil punished in the hell, as far as I know, they are made from a fire, so they will be happy being placed in where they belong&#8221;</p></blockquote>
<p>Then the wise man slapped his pupil and said, </p>
<blockquote><p>&#8220;That&#8217;s all the answers of your questions.&#8221;</p></blockquote>
<blockquote><p>&#8220;Huh, how come?&#8221;, He replied.</p></blockquote>
<p>Then the wise continued with his explanation, </p>
<blockquote><p>&#8220;OK, here, answer for the first question, you feel hurt when being slapped, but, did you see the pain?. Sometimes we can&#8217;t see everything but at least we can still feel it. For example, the electricity, electromagnetic waves, smell, etc, as well as God, we can not see Him. But, we can feel it&#8221;</p></blockquote>
<blockquote><p> &#8220;The second answer, Did you dreaming about this slap?, Did you knew before?. That&#8217;s why called the destiny&#8221;.</p></blockquote>
<blockquote><p>
&#8220;The third answer, my hand is made from a skin as well as your cheek. But, when I slapping you, you feel hurt, right?&#8221;.</p></blockquote>
<p>Finally, they continued their way, and the student thought all the words on his mind while bear the pain, hehehehe <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://masdel.wordpress.com/category/fun/'>Fun</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/537/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/537/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/537/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=537&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2010/11/13/the-side-story-of-three-questions-about-god/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>
	</item>
		<item>
		<title>A story of &#8220;Proof that God exists&#8221;</title>
		<link>http://masdel.wordpress.com/2010/11/13/a-story-of-proof-that-god-exists/</link>
		<comments>http://masdel.wordpress.com/2010/11/13/a-story-of-proof-that-god-exists/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 14:22:52 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=520</guid>
		<description><![CDATA[This story is probably only a myth, but it may help us to think that God does exist. let&#8217;s start the story. Once upon a time there was a man who famous due to his smartness and wisdom throughout the country. One time, there was someone who wanted to test his intelligence and discretion. Then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=520&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This story is probably only a myth, but it may help us to think that God does exist. let&#8217;s start the story.</p>
<p>Once upon a time there was a man who famous  due to his smartness and wisdom throughout the country. One time, there was someone who wanted to test his intelligence and discretion. Then he sent a challenge to the wise to prove that God exists. At the time and place that has been agreed, the wise man has not appeared yet. It made the challenger to be happy and excited because felt that he was the winner. A few moments later, the wise men came and apologized to the challenger. He said,</p>
<blockquote><p>I&#8217;m sorry to come late, I had trouble when comes to this place, a river overflows due to flooding. I was confused how to cross it. But, at the same time, a floating wooden was divided by itself and build a boat for me</p></blockquote>
<p>Suddenly, All the audience and the challenger laugh while hearing the impossible story from the wise. Then the challenger said,</p>
<blockquote><p>&#8220;hahahahah, how could a wood suddenly become a boat!. It is impossible !!!&#8221;</p></blockquote>
<p>A smile seen on the wise face and said,</p>
<blockquote><p>&#8220;Likewise with the universe, how is possible that this complex universe can exist by itself and well-ordered without collision between the planets, if there is boat so does who made it as well as with the universe.&#8221;</p></blockquote>
<p>The challenger was surprised and embarrassed.</p>
<blockquote><p>&#8220;OK, if God exists, show Him, I&#8217;m not see Him, I want to see the Him&#8221;, said the challenger.
</p></blockquote>
<p>Then the wise man slapped the challenger.</p>
<blockquote><p>&#8220;why did you slapped me, its hurt!&#8221;, ask the challenger to the wise.</p></blockquote>
<blockquote><p>&#8220;Did it hurt?, Where is pain I&#8217;m not see it, show me the pain??, did all see the pain ???&#8221;</p></blockquote>
<blockquote><p>&#8220;Noooooo!!!&#8221;,  said all the audience there.</p></blockquote>
<p>Since the challenger has been embarrassed twice, So, he returned to his home. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://masdel.wordpress.com/category/fun/'>Fun</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/520/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/520/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=520&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2010/11/13/a-story-of-proof-that-god-exists/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>
	</item>
		<item>
		<title>Alhamdulillah Ya Allah</title>
		<link>http://masdel.wordpress.com/2010/10/23/alhamdulillah-ya-allah/</link>
		<comments>http://masdel.wordpress.com/2010/10/23/alhamdulillah-ya-allah/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 10:08:46 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Islam]]></category>
		<category><![CDATA[Gerot]]></category>
		<category><![CDATA[mensyukuri nikmat]]></category>
		<category><![CDATA[nikmat]]></category>
		<category><![CDATA[Stress]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=502</guid>
		<description><![CDATA[Bersyukur kadangkala memang luput dari perhatian kita padahal tersebut mudah untuk dilakukan. Kalau susah untuk dilakukan dengan perbuatan, setidaknya kita dapat mensyukuri nikmat yang ada dengan melalui perkataan. Apa susahnya mensyukuri nikmat yang ada hanya bermodalkan dengan lidah dan mulut kita. Masalah sebenarnya ada pada diri kita sendiri, seringkali kita merasa tidak adanya nikmat disekitar [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=502&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><div class="wp-caption aligncenter" style="width: 255px"><img alt="." src="http://ecpo.blogdetik.com/files/2009/07/gmt3.jpg" title="." width="245" height="344" /><p class="wp-caption-text">.</p></div><br />
Bersyukur kadangkala memang luput dari perhatian kita padahal tersebut mudah untuk dilakukan. Kalau susah untuk dilakukan dengan perbuatan, setidaknya kita dapat mensyukuri nikmat yang ada dengan melalui perkataan. Apa susahnya mensyukuri nikmat yang ada hanya bermodalkan dengan lidah dan mulut kita. Masalah sebenarnya ada pada diri kita sendiri, seringkali kita merasa tidak adanya nikmat disekitar kita. Nikmat itu tidak selalu berbentuk barang dan keinginan kita, seperti:</p>
<ol>
<li> Nikmat hidup (bayangkan orang yang sudah meninggal, sudah putus amalannya kecuali tiga perkara sementara telah habis kesempatannya untuk bertobat),</li>
<li> Nikmat muda (bayangkan kalau sudah tua, susah pergi kmana2, tenaga sudah berkurang, penglihatan, pendengarang, daya ingat berkurang seiring dengan bertambahnya usia)</li>
<li>Nikmat sehat (bayangkan orang yang sedang sakit, misal flu yang selalu harus bersin yang tentunya mengganggu aktivitas kita),</li>
<li>Nikmat mendapat anak (bayangkan orang yang ngga bisa punya anak, harus kesana kemari mencari solusinya dan tentu akan melibatkan banyak uang keluar, saya suka ngga habis pikir bagaimana bisa seorang anak dibuang di got, di tempat sampah, padahal anak inilah (jika sholeh/sholehah) yang akan mendoakan kita sehingga memperingan dosa kita kelak di hari kiamat)</li>
<li> Nikmat hidup damai, tentram (bayangkan klo kita lagi perang, Ntah apa yang dipikiran mereka, Kalau tentang perbedaan suku, pendapat, tempat tinggal, negara, agama, etc., masih lebih banyak persaaman dr mereka semisal, sama2 tinggal d bumi, sama2 makan minum, sama2 manusia, Coba klo mereka lebih memikirkan persaamaan daripada perbedaan &#8230;),</li>
<li>Nikmat lapang (bayangkan klo lagi keburu2 pasti ga enak)</li>
<li>Nikmat kaya (bayangkan klo kita lagi miskin, susah makan apalagi bayar zakat, mumpung kaya perbayak zakat, shodaqoh, amal jariyah)</li>
<li>Nikmat kentut (bayangkan orang yang ngga bisa kentut dan harus operasi jutaan rupiah hanya untuk bisa kentut),</li>
<li>Tapi tentu nikmat yang paling tinggi adalah nikmat mengagungkan dan berada hidup kekal di surga-Nya</li>
</ol>
<p>Di dalam surat <a href="http://id.wikisource.org/wiki/Al-Qur%27an/Ar-Rahman">Ar-Rahman</a> (Yang Maha Pemurah) stated,</p>
<p style="text-align:center;">&#8220;Maka nikmat Tuhan kamu yang manakah yang kamu dustakan?&#8221; (Q.S. <a href="http://id.wikisource.org/wiki/Al-Qur%27an/Ar-Rahman">Ar-Rahman</a>).</p>
<p>Ayat ini diulang sebanyak 30X dalam Al-Quran. Sudah banyak artikel tentang mensyukuri nikmat di internet ini, tinggal kita mau atau tidak untuk melakukannya dalam kehidupan kita sehari-hari.</p>
<p>So, as conclusion, <strong>jangan menyesali apa yang tidak kita punyai, tapi syukurilah apa yang kita dapatkan</strong>. Kecuali untuk beberapa hal yang memang pantas untuk kita dapatkan kita harus berusaha untuk mendapatkannya <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Reference for image : <a href="http://ecpo.blogdetik.com/2009/07/23/gmt/">http://ecpo.blogdetik.com/2009/07/23/gmt/</a></p>
<br />Filed under: <a href='http://masdel.wordpress.com/category/fun/'>Fun</a>, <a href='http://masdel.wordpress.com/category/islam/'>Islam</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=502&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2010/10/23/alhamdulillah-ya-allah/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>

		<media:content url="http://ecpo.blogdetik.com/files/2009/07/gmt3.jpg" medium="image">
			<media:title type="html">.</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing GLUI using CodeBlocks on windows</title>
		<link>http://masdel.wordpress.com/2010/10/21/installing-glui-using-codeblocks-on-windows/</link>
		<comments>http://masdel.wordpress.com/2010/10/21/installing-glui-using-codeblocks-on-windows/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 18:30:29 +0000</pubDate>
		<dc:creator>masdel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Code::Block]]></category>
		<category><![CDATA[GLUI]]></category>
		<category><![CDATA[GLUT]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://masdel.wordpress.com/?p=435</guid>
		<description><![CDATA[Here is another way to installing GLUI on windows. Before going to install the glui, please ensure that the glut is installed properly. Download glui library from http://glui.sourceforge.net/ in the files section u will find the latest release version of glui. Extract the zip file somewhere in ur disk, Open Code::Blocks, Click File -&#62; Import [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=435&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is another way to installing GLUI on windows. Before going to install the glui, please ensure that the glut is installed properly.</p>
<ol>
<li>Download glui library from <a href="http://glui.sourceforge.net/">http://glui.sourceforge.net/</a> in the <a href="http://sourceforge.net/projects/glui/files/">files</a> section u will find the latest release version of glui.</li>
<li>Extract the zip file somewhere in ur disk, Open Code::Blocks, Click File -&gt; Import Projects -&gt; MS Visual Studio Solution ..
<p><div id="attachment_437" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/import_project.png"><img class="size-medium wp-image-437" title="Importing the VS GLUI Project" src="http://masdel.files.wordpress.com/2010/10/import_project.png?w=300&#038;h=225" alt="Importing the VS GLUI Project" width="300" height="225" /></a><p class="wp-caption-text">Importing the VS GLUI Project</p></div></li>
<li>Then open the glui-2.36 directory (i use glui-2.36 version) under src directory u will find msvc directory, then open glui.sln file. Next, Click yes to convert the VS solution into Code::Block projects (All)
<p><div id="attachment_438" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/import_project2.png"><img class="size-medium wp-image-438" title="Confirmation box " src="http://masdel.files.wordpress.com/2010/10/import_project2.png?w=300&#038;h=225" alt="Confirmation box" width="300" height="225" /></a><p class="wp-caption-text">Confirmation box</p></div></li>
<p><span id="more-435"></span></p>
<li>Right click on _glui library project and select Activate project then build the library (the glui library will be build the static library, if u prefer with dynamic library than choose _gluidlllibrary)
<div id="attachment_439" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/import_project3.png"><img class="size-medium wp-image-439" title="Activating the _gluilibrary project" src="http://masdel.files.wordpress.com/2010/10/import_project3.png?w=300&#038;h=225" alt="Activating the _gluilibrary project" width="300" height="225" /></a><p class="wp-caption-text">Activating the _gluilibrary project</p></div>
<p><div id="attachment_440" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/compiling.png"><img class="size-medium wp-image-440" title="Compiling the glui library" src="http://masdel.files.wordpress.com/2010/10/compiling.png?w=300&#038;h=225" alt="Compiling the glui library" width="300" height="225" /></a><p class="wp-caption-text">Compiling the glui library</p></div></li>
<li>After building the library, the lib file (libglui32.a) will be stored in the msvc\lib directory</li>
<li>Put the libglui32.a file into <code>C:\Program Files\CodeBlocks\MinGW\lib</code> directory</li>
<li>while glui.h file into <code>C:\Program Files\CodeBlocks\MinGW\include\GL</code> directory</li>
<li>Now try to compile glui example file which provided within the GLUI main project</li>
<li>Activate the example 2 by right clicking on the projects and select Activate project, then try to compile the project.
<div id="attachment_441" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/activating_example_2.png"><img class="size-medium wp-image-441" title="Activating Example 2 Project" src="http://masdel.files.wordpress.com/2010/10/activating_example_2.png?w=300&#038;h=225" alt="Activating Example 2 Project" width="300" height="225" /></a><p class="wp-caption-text">Activating Example 2 Project</p></div>
<div id="attachment_442" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/compiling_example_2.png"><img class="size-medium wp-image-442" title="Compiling Example 2 Project" src="http://masdel.files.wordpress.com/2010/10/compiling_example_2.png?w=300&#038;h=225" alt="Compiling Example 2 Project" width="300" height="225" /></a><p class="wp-caption-text">Compiling Example 2 Project</p></div>
<p>If there are some errors occurred during compilation, i.e,</p>
<p><pre class="brush: cpp;">
Release\example\example2.o:example2.cpp:(.text+0x107): undefined reference to `__glutInitWithExit'
Release\example\example2.o:example2.cpp:(.text+0x113): undefined reference to `glutInitDisplayMode'
Release\example\example2.o:example2.cpp:(.text+0x127): undefined reference to `glutInitWindowPosition'
Release\example\example2.o:example2.cpp:(.text+0x13b): undefined reference to `glutInitWindowSize'
Release\example\example2.o:example2.cpp:(.text+0x14f): undefined reference to `__glutCreateWindowWithExit'
Release\example\example2.o:example2.cpp:(.text+0x160): undefined reference to `glutDisplayFunc'
Release\example\example2.o:example2.cpp:(.text+0x16c): undefined reference to `glutReshapeFunc'
Release\example\example2.o:example2.cpp:(.text+0x178): undefined reference to `glutKeyboardFunc'
Release\example\example2.o:example2.cpp:(.text+0x184): undefined reference to `glutMotionFunc'
Release\example\example2.o:example2.cpp:(.text+0x190): undefined reference to `glutMouseFunc'
Release\example\example2.o:example2.cpp:(.text+0x1d0): undefined reference to `_imp__glEnable'
Release\example\example2.o:example2.cpp:(.text+0x200): undefined reference to `_imp__glLightfv'
Release\example\example2.o:example2.cpp:(.text+0x274): undefined reference to `GLUI_Master'
Release\example\example2.o:example2.cpp:(.text+0x279): undefined reference to `GLUI_Master_Object::create_glui(char const*, long, int, int)'
Release\example\example2.o:example2.cpp:(.text+0x2ad): undefined reference to `GLUI_StaticText::GLUI_StaticText(GLUI_Node*, char const*)'
Release\example\example2.o:example2.cpp:(.text+0x2e1): undefined reference to `GLUI_Separator::GLUI_Separator(GLUI_Node*)'
Release\example\example2.o:example2.cpp:(.text+0x33d): undefined reference to `GLUI_Checkbox::GLUI_Checkbox(GLUI_Node*, char const*, int*, int, GLUI_CB)'
Release\example\example2.o:example2.cpp:(.text+0x39e): undefined reference to `GLUI_Spinner::GLUI_Spinner(GLUI_Node*, char const*, int*, int, GLUI_CB)'
Release\example\example2.o:example2.cpp:(.text+0x3cf): undefined reference to `GLUI_Spinner::set_int_limits(int, int, int)'
Release\example\example2.o:example2.cpp:(.text+0x41f): undefined reference to `GLUI_EditText::GLUI_EditText(GLUI_Node*, char const*, std::string&amp;, int, GLUI_CB)'
Release\example\example2.o:example2.cpp:(.text+0x468): undefined reference to `GLUI_Panel::GLUI_Panel(GLUI_Node*, char const*, int)'
Release\example\example2.o:example2.cpp:(.text+0x4bc): undefined reference to `GLUI_RadioGroup::GLUI_RadioGroup(GLUI_Node*, int*, int, GLUI_CB)'
Release\example\example2.o:example2.cpp:(.text+0x502): undefined reference to `GLUI_RadioButton::GLUI_RadioButton(GLUI_RadioGroup*, char const*)'
Release\example\example2.o:example2.cpp:(.text+0x53f): undefined reference to `GLUI_RadioButton::GLUI_RadioButton(GLUI_RadioGroup*, char const*)'
Release\example\example2.o:example2.cpp:(.text+0x57c): undefined reference to `GLUI_RadioButton::GLUI_RadioButton(GLUI_RadioGroup*, char const*)'
Release\example\example2.o:example2.cpp:(.text+0x5d0): undefined reference to `GLUI_Button::GLUI_Button(GLUI_Node*, char const*, int, GLUI_CB)'
Release\example\example2.o:example2.cpp:(.text+0x5ed): undefined reference to `GLUI::set_main_gfx_window(int)'
Release\example\example2.o:example2.cpp:(.text+0x5fc): undefined reference to `GLUI_Master'
Release\example\example2.o:example2.cpp:(.text+0x601): undefined reference to `GLUI_Master_Object::set_glutIdleFunc(void (*)())'
Release\example\example2.o:example2.cpp:(.text+0x606): undefined reference to `glutMainLoop'
Release\example\example2.o:example2.cpp:(.text+0x710): undefined reference to `_imp__glViewport'
Release\example\example2.o:example2.cpp:(.text+0x79b): undefined reference to `GLUI_Master'
Release\example\example2.o:example2.cpp:(.text+0x7a0): undefined reference to `GLUI_Master_Object::sync_live_all()'
Release\example\example2.o:example2.cpp:(.text+0x7d1): undefined reference to `GLUI_Master'
Release\example\example2.o:example2.cpp:(.text+0x7d6): undefined reference to `GLUI_Master_Object::sync_live_all()'
Release\example\example2.o:example2.cpp:(.text+0x8ca): undefined reference to `_imp__glClearColor'
Release\example\example2.o:example2.cpp:(.text+0x8d7): undefined reference to `_imp__glClear'
Release\example\example2.o:example2.cpp:(.text+0x8e4): undefined reference to `_imp__glMatrixMode'
Release\example\example2.o:example2.cpp:(.text+0x8ec): undefined reference to `_imp__glLoadIdentity'
Release\example\example2.o:example2.cpp:(.text+0x945): undefined reference to `_imp__glFrustum'
Release\example\example2.o:example2.cpp:(.text+0x96d): undefined reference to `_imp__glTranslatef'
Release\example\example2.o:example2.cpp:(.text+0x993): undefined reference to `_imp__glRotatef'
Release\example\example2.o:example2.cpp:(.text+0x9ef): undefined reference to `glutWireSphere'
Release\example\example2.o:example2.cpp:(.text+0xa13): undefined reference to `_imp__glDisable'
Release\example\example2.o:example2.cpp:(.text+0xa63): undefined reference to `_imp__gluOrtho2D'
Release\example\example2.o:example2.cpp:(.text+0xa8b): undefined reference to `_imp__glColor3ub'
Release\example\example2.o:example2.cpp:(.text+0xaa0): undefined reference to `_imp__glRasterPos2i'
Release\example\example2.o:example2.cpp:(.text+0xae0): undefined reference to `glutBitmapCharacter'
Release\example\example2.o:example2.cpp:(.text+0xafb): undefined reference to `_imp__glEnable'
Release\example\example2.o:example2.cpp:(.text+0xb29): undefined reference to `glutSolidSphere'
Process terminated with status 1 (0 minutes, 0 seconds)
50 errors, 0 warnings
</pre></p>
<p>then, the glui lib must be rebuilt</li>
<li>Reactivate the _gluilibrary project and open glui.h within the project (there are 2 glui.h inside the project and C:\Program Files\CodeBlocks\MinGW\include\GL directory)</li>
<li>Edit the glui.h and insert<br />
<pre class="brush: cpp;">
#include &lt;windows.h&gt; ;
</pre></p>
<p>before #include &lt;cstdlib&gt; line.</p>
<p>Recompiling the _gluilibrary project</p>
<div id="attachment_443" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/rebuilding_glui_lib.png"><img class="size-medium wp-image-443" title="Rebuild the _gluilibrary project" src="http://masdel.files.wordpress.com/2010/10/rebuilding_glui_lib.png?w=300&#038;h=225" alt="Rebuild the _gluilibrary project" width="300" height="225" /></a><p class="wp-caption-text">Rebuild the _gluilibrary project</p></div>
<p><div id="attachment_444" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/recompiling_glui_lib.png"><img class="size-medium wp-image-444" title="Recompiling" src="http://masdel.files.wordpress.com/2010/10/recompiling_glui_lib.png?w=300&#038;h=225" alt="Recompiling" width="300" height="225" /></a><p class="wp-caption-text">Recompiling</p></div></li>
<li>Don&#8217;t forget to copy the new glui.h file into C:\Program Files\CodeBlocks\MinGW\include\GL</li>
<li>Reactive the example 2 project, then click Project -&gt; Build Options &#8230;
<p><div id="attachment_445" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/example2_build_option.png"><img class="size-medium wp-image-445" title="Example 2 project option" src="http://masdel.files.wordpress.com/2010/10/example2_build_option.png?w=300&#038;h=225" alt="Example 2 project option" width="300" height="225" /></a><p class="wp-caption-text">Example 2 project option</p></div></li>
<li>On the top left of the dialog window, ensure that Release Win32 is selected. Then, click Link Settings (1) -&gt; Add -&gt; On Add library dialog window click [...] -&gt; Select No (2).
<div id="attachment_447" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/example2_build_option3.png"><img class="size-medium wp-image-447" title="Add glui lib into example 2 project" src="http://masdel.files.wordpress.com/2010/10/example2_build_option3.png?w=300&#038;h=208" alt="Add glui lib into example 2 project" width="300" height="208" /></a><p class="wp-caption-text">Add glui lib into example 2 project</p></div>
<p><div id="attachment_448" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/example2_build_option4.png"><img class="size-medium wp-image-448" title="Adding glui library" src="http://masdel.files.wordpress.com/2010/10/example2_build_option4.png?w=300&#038;h=209" alt="Adding glui library" width="300" height="209" /></a><p class="wp-caption-text">Adding glui library</p></div></li>
<li>Move the glui library to the top of the list by clicking arrow button at the right of the list
<p><div id="attachment_449" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/example2_build_option5.png"><img class="size-medium wp-image-449" title="Put the glui library on the top of the list" src="http://masdel.files.wordpress.com/2010/10/example2_build_option5.png?w=300&#038;h=208" alt="Put the glui library on the top of the list" width="300" height="208" /></a><p class="wp-caption-text">Put the glui library on the top of the list</p></div></li>
<li>Build and run the Example 2 project
<p><div id="attachment_451" class="wp-caption aligncenter" style="width: 310px"><a href="http://masdel.files.wordpress.com/2010/10/final.png"><img class="size-medium wp-image-451" title="Final Result" src="http://masdel.files.wordpress.com/2010/10/final.png?w=300&#038;h=159" alt="Final Result" width="300" height="159" /></a><p class="wp-caption-text">Final Result</p></div></li>
</ol>
<br />Filed under: <a href='http://masdel.wordpress.com/category/programming/'>Programming</a>, <a href='http://masdel.wordpress.com/category/research/'>Research</a>, <a href='http://masdel.wordpress.com/category/tutorial/'>Tutorial</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/masdel.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/masdel.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/masdel.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/masdel.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/masdel.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/masdel.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/masdel.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/masdel.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/masdel.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/masdel.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/masdel.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/masdel.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/masdel.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/masdel.wordpress.com/435/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=masdel.wordpress.com&amp;blog=3575668&amp;post=435&amp;subd=masdel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://masdel.wordpress.com/2010/10/21/installing-glui-using-codeblocks-on-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ea0ed6332eee5c7f3807ab2ee499a826?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">masdel</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/import_project.png?w=300" medium="image">
			<media:title type="html">Importing the VS GLUI Project</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/import_project2.png?w=300" medium="image">
			<media:title type="html">Confirmation box </media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/import_project3.png?w=300" medium="image">
			<media:title type="html">Activating the _gluilibrary project</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/compiling.png?w=300" medium="image">
			<media:title type="html">Compiling the glui library</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/activating_example_2.png?w=300" medium="image">
			<media:title type="html">Activating Example 2 Project</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/compiling_example_2.png?w=300" medium="image">
			<media:title type="html">Compiling Example 2 Project</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/rebuilding_glui_lib.png?w=300" medium="image">
			<media:title type="html">Rebuild the _gluilibrary project</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/recompiling_glui_lib.png?w=300" medium="image">
			<media:title type="html">Recompiling</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/example2_build_option.png?w=300" medium="image">
			<media:title type="html">Example 2 project option</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/example2_build_option3.png?w=300" medium="image">
			<media:title type="html">Add glui lib into example 2 project</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/example2_build_option4.png?w=300" medium="image">
			<media:title type="html">Adding glui library</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/example2_build_option5.png?w=300" medium="image">
			<media:title type="html">Put the glui library on the top of the list</media:title>
		</media:content>

		<media:content url="http://masdel.files.wordpress.com/2010/10/final.png?w=300" medium="image">
			<media:title type="html">Final Result</media:title>
		</media:content>
	</item>
	</channel>
</rss>
