<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code@HexFlux &#187; general</title>
	<atom:link href="http://code.hexflux.com/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.hexflux.com</link>
	<description>yet another web application developer using cakephp &#124;&#124; django</description>
	<lastBuildDate>Thu, 01 Apr 2010 10:43:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Coding in an illusion of choice</title>
		<link>http://code.hexflux.com/2009/07/coding-in-an-illusion-of-choice/</link>
		<comments>http://code.hexflux.com/2009/07/coding-in-an-illusion-of-choice/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 08:02:09 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=94</guid>
		<description><![CDATA[How to code the illusion of choice in cakephp]]></description>
			<content:encoded><![CDATA[<p>I found this in a code written by a newbie. I thought it would be a good example about giving people false choices.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$complaint</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Complaint'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'status'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'accepted'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
        by <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$complaint</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AssignedTo'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$complaint</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Complaint'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'status'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'decline'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
        by <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$complaint</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AssignedTo'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$complaint</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Complaint'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'status'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'updated'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
        by <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$complaint</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AssignedTo'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$complaint</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Complaint'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'status'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'closed'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
        by <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$complaint</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AssignedTo'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
        <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Funny but nearly gave me a heart attack.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2009/07/coding-in-an-illusion-of-choice/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Post-Lamp2Win</title>
		<link>http://code.hexflux.com/2009/06/post-lamp2win/</link>
		<comments>http://code.hexflux.com/2009/06/post-lamp2win/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 06:20:15 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[lamp2win]]></category>
		<category><![CDATA[textpattern]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=71</guid>
		<description><![CDATA[I lost at lamp2win and proud of it.]]></description>
			<content:encoded><![CDATA[<p>Okay I lost!</p>
<p>But it was worth losing. There were really good people there.</p>
<p>I was assigned to TextPattern cms and the code structure was pretty easy to understand. They didn&#8217;t have (yet) any db abstraction and looking at the code didn&#8217;t feel like doing any until later. The unstable code in subversion seems to point out that they want to provide this. Or&#8230; it could be just to support some mysql forks.</p>
<p>So I started with putting in the DB layer from their newer version into the stable one. Then after several mishaps later, I had a broken MSSQL support and basically gave up after, in my opinion, lobotomising good code. So in the end I lost.</p>
<p>It was good fun. Quite a while since I had to juggle stuffs in my life and this is good practice. </p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2009/06/post-lamp2win/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lamp2Win</title>
		<link>http://code.hexflux.com/2009/05/lamp2win/</link>
		<comments>http://code.hexflux.com/2009/05/lamp2win/#comments</comments>
		<pubDate>Tue, 05 May 2009 09:50:16 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[kamikaze]]></category>
		<category><![CDATA[lamp2win]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=68</guid>
		<description><![CDATA[Sometimes I&#8217;m not sure what I&#8217;m doing and I have to tell you that this is one of them. I registered for the Lamp2Win contest to extend a selected application into a php/IIS/MSSQL environment. I&#8217;ve never done IIS. I don&#8217;t know anything about MSSQL. Luckily I have some experience in php. I&#8217;m counting on that [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.lamp2win.com/"><img src="http://www.lamp2win.com/images/125x125.jpg" alt="lamp2win.com" /></a></p>
<p>Sometimes I&#8217;m not sure what I&#8217;m doing and I have to tell you that this is one of them. I registered for the Lamp2Win contest to extend a selected application into a php/IIS/MSSQL environment. I&#8217;ve never done IIS. I don&#8217;t know anything about MSSQL. Luckily I have some experience in php.</p>
<p>I&#8217;m counting on that to help me get through.</p>
<p>Gee&#8230; the acronym is WIMP (<strong>W</strong>indows <strong>I</strong>IS <strong>M</strong>SSQL <strong>P</strong>HP).</p>
<p>After registration I noticed that people will vote for their favourite and this will be 40% mark. Darn. I&#8217;m not exactly Mr Popular material.</p>
<p>Oh well, maybe I&#8217;ll get new friends around the community of whatever application they&#8217;ll assign me to.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2009/05/lamp2win/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Back To Ubuntu</title>
		<link>http://code.hexflux.com/2009/05/back-to-ubuntu/</link>
		<comments>http://code.hexflux.com/2009/05/back-to-ubuntu/#comments</comments>
		<pubDate>Fri, 01 May 2009 01:57:10 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[compaq nw9440]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[tecra s2]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=65</guid>
		<description><![CDATA[A month ago I had a laptop failure that, cool enough, resulted in me having a better laptop. I love my company and my company loves the programmer. hehe. So from a Toshiba Tecra S2 (that occasionally wouldn&#8217;t even start sometimes. Possible fix below) to a Compaq nw9440. Sweet. Since I have to setup a [...]]]></description>
			<content:encoded><![CDATA[<p>A month ago I had a laptop failure that, cool enough, resulted in me having a better laptop. I love my company and my company loves the programmer. hehe.</p>
<p>So from a Toshiba Tecra S2 (that occasionally wouldn&#8217;t even start sometimes. Possible fix below) to a Compaq nw9440. Sweet.</p>
<p>Since I have to setup a new OS anyway, I decided to give Fedora 10 a try since my first Linux experience back in 2001 was on a Red Hat. At first Fedora 10 was cool. It starts up nicely, didn&#8217;t like how they did the gdm login though. There was a minor update manager upgrade hiccup at first but I got that fixed by changing the repositories (I think).</p>
<p>After a month of use, Ubuntu 9.04 was released and I guess I&#8217;m just a Ubuntu fan. So I downloaded Ubuntu, installed it last night and left the laptop on for the updates, extra application installation and copying my old home directory to this new one.</p>
<p>In the morning, I have a fresh Ubuntu 9.04 ready for <del datetime="2009-05-01T01:48:19+00:00">playfulity</del> productivity.</p>
<p>And then for some reason I couldn&#8217;t update/install because the repository http://my.archive.ubuntu.com keeps on timing out. So I edited the source.list file to get the files from archive.ubuntu.com, reload the package manager and that managed to get it working.</p>
<p>Anyway, I guess I&#8217;m close to getting development environment up and running again. Just needs to load up xampp (love you guys because all I need to do is copy over the lampp folder to my new /opt/ ).</p>
<p>//Toshiba Tecra s2 possible no-start fix. Possibly could ruin your life forever too so beware!<br />
1. Try taking out the battery and just use the power supply.<br />
2. Syukri of QIPMC mentioned that he opened up his machine and found that the screw near the keyboard or heatsink was loose. Tightening that up seems to make the problem go away.<br />
3. Go change the motherboard. This was what I did twice.<br />
//endOfToshiba Tecra s2 possible no-start fix.</p>
<p>So let see what happens after a month of using Ubuntu. <img src='http://code.hexflux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2009/05/back-to-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launching the Prayers For Forgiveness Blogger Widget!</title>
		<link>http://code.hexflux.com/2008/10/launching-the-prayers-of-forgiveness-widgetbeta/</link>
		<comments>http://code.hexflux.com/2008/10/launching-the-prayers-of-forgiveness-widgetbeta/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 07:32:31 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[blogger widget]]></category>
		<category><![CDATA[forgiveness]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=51</guid>
		<description><![CDATA[You can get it here. Blessed with this idea after Ramadhan but hope everybody, and myself, find it especially useful for the next Ramadhan. This blogger widget randomly displays one prayer (english translation) from the seventy prayers written down by Hasan Al-Basri, a respected scholar born in 21 AH and brought up in the house [...]]]></description>
			<content:encoded><![CDATA[<p>You can get it <a href='http://forgiveness.hexflux.com'>here</a>.</p>
<p>Blessed with this idea after Ramadhan but hope everybody, and myself, find it especially useful for the next Ramadhan. </p>
<p>This blogger widget randomly displays one prayer (english translation) from the seventy prayers written down by Hasan Al-Basri, a respected scholar born in 21 AH and brought up in the house of Umm Salama (ra).</p>
<p>You can order the book at amazon. It&#8217;s right over <a href="http://www.amazon.com/Prayers-Forgiveness-Hasan-Basri/dp/0972835814/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1224835170&#038;sr=8-1">here</a>. Highly recommended!</p>
<p>As of writting, there&#8217;s about 5 prayers in the database. I&#8217;ll fill it up soonest. <img src='http://code.hexflux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . (Update: All done.)</p>
<p>regards.</p>
<p>/** Update **/<br />
I guess this stuff is done! Works fine so far.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2008/10/launching-the-prayers-of-forgiveness-widgetbeta/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hello World</title>
		<link>http://code.hexflux.com/2008/07/hello-world/</link>
		<comments>http://code.hexflux.com/2008/07/hello-world/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 01:51:14 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[intro]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=1</guid>
		<description><![CDATA[tutorial membina aplikasi menggunakan cakephp atau php]]></description>
			<content:encoded><![CDATA[<p>Akan dibuat tutorial-tutorial berkenaan coding untuk web application. Kebanyakan tutorial ini akan menggunakan PHP, javascript dan mungkin juga sedikit sebanyak bahasa lain seperti python.</p>
<p>Mungkin juga menumpu kepada penggunaan cakephp sebagai framework pilihan.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2008/07/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
