<?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</title>
	<atom:link href="http://code.hexflux.com/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>Freelancing</title>
		<link>http://code.hexflux.com/2010/04/freelancing/</link>
		<comments>http://code.hexflux.com/2010/04/freelancing/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 10:43:08 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freelancing]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/2010/04/freelancing/</guid>
		<description><![CDATA[Recently I&#8217;ve been looking to find work closer to home. I have been spending way too much time on the road and I think those time are better used for something else. Like getting a hobby. . So I told my friends and started looking. I went to 2 interview sessions but both companies end [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been looking to find work closer to home. I have been spending way too much time on the road and I think those time are better used for something else. Like getting a hobby. <img src='http://code.hexflux.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>So I told my friends and started looking. I went to 2 interview sessions but both companies end up being too far away. I had to say no because, after much consideration&#8230; the only reason I want to leave my current place is because of the distance.</p>
<p>I can&#8217;t quite go headfirst into freelancing considering I&#8217;m not yet prepared to do so. I don&#8217;t even have my own code-machine. Luckily two things came along.</p>
<p>Part time job with my friend, Nasril. And potentially a freelancing kickstart from Amir.<br />
If things go well, I get 6 months pay worth of job. I get to work from home and get to crash his partner&#8217;s office in Bangi which is close by. So that&#8217;s a pretty sweet deal.</p>
<p>With both of these support, in 6 months I would be able to get myself a machine and some extra moolah to start adventuring. It&#8217;s scary and all but hey&#8230; changes are always scary, no?</p>
<p>With these good friends, it&#8217;s less scary. I thank Allah for giving me such good friends.</p>
<p>So here&#8217;s to good friends and for less time spent on the road. <img src='http://code.hexflux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>in the meantime i better start blogging more often <img src='http://code.hexflux.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , setup a portfolio somewhere here and do more stuffs!</p>
<p>and no this is not april fool :p</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2010/04/freelancing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP Malaysia Meetup 20Ten</title>
		<link>http://code.hexflux.com/2010/03/php-malaysia-meetup-20ten/</link>
		<comments>http://code.hexflux.com/2010/03/php-malaysia-meetup-20ten/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 16:02:29 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=106</guid>
		<description><![CDATA[Peace Everyone. We&#8217;re planning a PHP Malaysian Meetup 20Ten and these are the draft for the event so far timing: around the 6th or 7th month place: MIMOS malaysia (because they are the best!) the volunteers so far: amran@sameon, me@zam3858, jasdy@aku_tak_tau the first discussion for the meetup will be when sameon is coming down to [...]]]></description>
			<content:encoded><![CDATA[<p>Peace Everyone.</p>
<p>We&#8217;re planning a PHP Malaysian Meetup 20Ten and these are the draft for the event so far<br />
 timing: around the 6th or 7th month<br />
 place: MIMOS malaysia (because they are the best!)<br />
 the volunteers so far: amran@sameon, me@zam3858, jasdy@aku_tak_tau</p>
<p>the first discussion for the meetup will be when sameon is coming down to KL. Whoever that are interested to praise us, give money, give out sweat to make this meetup a success, u can tell us that you&#8217;re interested at the forum page <a href="http://www.php.net.my/forum/php-meetup-20ten">http://www.php.net.my/forum/php-meetup-20ten</a>. tell us you&#8217;re interested and dont miss the first meeting when it happens.</p>
<p>we&#8217;re also looking for companie who wants to promote stuffs to the local developers. stuffs like coffee, soap, books or ticket to hometown for raya. Or just want to promote yourself and open up a booth there. Headhunters are welcome!</p>
<p>last but not least: anybody wanting to share knowledge&#8230; tell us what you want to talk about!</p>
<p>may this be the best meetup like ever! ishaAllah.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2010/03/php-malaysia-meetup-20ten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web App Developer Wanted &#8230; and Found!</title>
		<link>http://code.hexflux.com/2009/09/web-app-developer-wanted/</link>
		<comments>http://code.hexflux.com/2009/09/web-app-developer-wanted/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 09:35:58 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=97</guid>
		<description><![CDATA[ijam cari programmer]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve found a winner in this one. Thanks everyone who tried.</p>
<p><del datetime="2009-10-21T02:23:43+00:00">If you&#8217;re good in PHP(we&#8217;re using cakephp here) and the usual javascript (extjs and jquery is cool), send in your resume to me.</p>
<p>KIC Oil &#038; Gas is looking for someone to help build apps for internal use. this includes apps for office administrative, operations and even R&#038;D projects you might think we could use and enjoy. If you&#8217;re a junior, you&#8217;ll work under me. If you&#8217;re a super cool deathstar programmer, i&#8217;ll work under you. </p>
<p>There&#8217;s a whole bunch of stuffs we need to do here and it&#8217;s a relatively new company (but really growing. less than 20 to 400 in 5 years)</del> -edited on 21 Oct 2009.</p>
<p>Ah cancel that and just say we&#8217;re looking for new blood.</p>
<p>Right now these are the tools we use:</p>
<p>PHP (cakephp as framework)<br />
mysql database<br />
svn<br />
trac<br />
linux servers&#8230; if you&#8217;re on windows, we&#8217;ll ask you *politely* to use linux <img src='http://code.hexflux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Good stuff:<br />
 &#8211; you get to work with me.</p>
<p>Bad stuff:<br />
 &#8211; you get to work with me.</p>
<p>Extra Cocurricular activities we do and you might want to join in:<br />
 &#8211; yearly Maulid Rasul.<br />
 &#8211; support school for special kids.<br />
 &#8211; and other stuffs they didn&#8217;t bother telling me.</p>
<p>Just send in you resume/questions and whatnots to me: zam3858*gmail.com</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2009/09/web-app-developer-wanted/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>Easier Search&#124;&#124;Filtering With Controller::postConditions()</title>
		<link>http://code.hexflux.com/2009/06/easier-searchfiltering-with-controllerpostconditions/</link>
		<comments>http://code.hexflux.com/2009/06/easier-searchfiltering-with-controllerpostconditions/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 04:54:27 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[postCondition]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=80</guid>
		<description><![CDATA[Using postCondition to simplify your search or filtering feature.]]></description>
			<content:encoded><![CDATA[<p>In the old days, I remember being extra lazy when it comes to requests for filter/search functions. I would be lazier if the conditions includes lots of fields.</p>
<p>Stumbling upon postConditions, this flipped what I felt about creating a filter function.</p>
<p>So here&#8217;s what we are going to try, we&#8217;ll create a filter function for messages as example. Let&#8217;s assume you have the table, model, controller and some CRUD done and working for messages.</p>
<p>Let us begin by creating the view first since we&#8217;re getting the filter conditions from the form. It&#8217;s this file: &#8216;app/views/messages/filter_messages.ctp&#8217;.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&lt;h2&gt;Filter Messages&lt;/h2&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">create</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Message'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'action'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'filter_messages'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">input</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'message'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">input</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'from'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">end</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Submit Filter'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;hr /&gt;
&lt;h2&gt;Filter Results: &lt;/h2&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//display apa kita jumpa kat sini</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$messages</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$message</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$message</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Message'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'message'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;hr /&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Then add the filter function to the app/controllers/messages_controller.php.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> filter_messages<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">//simple initialization for the variable that'll carry the result</span>
        <span style="color: #000088;">$messages</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">//checks if we sent something to filter via the form (remember sent items go to $this-&gt;data)</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">/*
             * here comes postConditions
             * first parameter is the posted value,
             * 
             * the second parameter (array('message' =&gt; 'LIKE'))
             * tells postCondition for the fields we're looking at and what type of
             * condition we want to use for that field item. So in this case, we want to use 'LIKE' for field 'message'
             * therefore the sql generated will look similar to &quot;SELECT * FROM messages as Message WHERE Message.message LIKE '%whatever%' &quot;
             * 
             * the third parameter, will tell what is the boolean condition among each
             * condition we set for the find (you know like if we want 'message' is like 'b' AND the message came from 'dude')
             * 
             * last and quite least (heh), if we set true, only the fields we set in the second parameter will be considered. 
             * if false, any field in $this-&gt;data will be used. nifty huh.
             */</span>
            <span style="color: #000088;">$conditions</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">postConditions</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #339933;">,</span>
                                                 <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'message'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'LIKE'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                                                 <span style="color: #0000ff;">'OR'</span><span style="color: #339933;">,</span>
                                                 <span style="color: #009900; font-weight: bold;">false</span>
                                               <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">//the usual find() function.</span>
            <span style="color: #000088;">$messages</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Message</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">find</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'all'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'conditions'</span><span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$conditions</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">//sends result to the view.</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'messages'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$messages</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>That&#8217;s it!</p>
<p>An additional note: Controller::postConditions() doesn&#8217;t mean you have to use the data posted but you can also ready your own array in the usual $myarray['Model']['field1'] format and use that as parameter.</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: #000088;">$tobefiltered</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Message'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900;">&#40;</span>
                        <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                               <span style="color: #0000ff;">'message'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'this is my message'</span><span style="color: #339933;">,</span>
                               <span style="color: #0000ff;">'created'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'2009-09-09 21:09:09'</span><span style="color: #339933;">,</span>
                               <span style="color: #0000ff;">'from'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'013xxxxxxxxxx'</span>
                              <span style="color: #009900;">&#41;</span>
                       <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000088;">$condition_generated</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">postConditions</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tobefiltered</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2009/06/easier-searchfiltering-with-controllerpostconditions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Second Day On Building Drupal Module</title>
		<link>http://code.hexflux.com/2009/06/second-day-on-building-drupal-module/</link>
		<comments>http://code.hexflux.com/2009/06/second-day-on-building-drupal-module/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 03:59:36 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[qna]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=75</guid>
		<description><![CDATA[Me on drupal module development]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m learning how to build a Drupal CMS module for a website I&#8217;m partially supporting.</p>
<p>The module is simply to allow a student to send in queries to a panel of teachers. A registered student submits a question, the panel gets a notification via email that a question was submitted and then the panel would answer if they want to. Quite a simple module but since I&#8217;m just starting to do it the Drupal way, it would take more time than the usuals. </p>
<p>Maybe.</p>
<p>After a day of going through the tutorials, API and whatnot, I think I&#8217;ve got enough to get the module up and running. But patience is a virtue and over-confidence is the fall of many many men. So let&#8217;s just study more of this so that we can do this properly and avoid problems later on.</p>
<p style='font-size:smaller;'>note: Considering to just mutilate Drupal&#8217;s comment module to add in what I need.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2009/06/second-day-on-building-drupal-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Re-doing Python.Org.My</title>
		<link>http://code.hexflux.com/2009/06/re-doing-pythonorgmy/</link>
		<comments>http://code.hexflux.com/2009/06/re-doing-pythonorgmy/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 06:35:20 +0000</pubDate>
		<dc:creator>Hizam Mohd</dc:creator>
				<category><![CDATA[django]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python.org.my]]></category>

		<guid isPermaLink="false">http://code.hexflux.com/?p=73</guid>
		<description><![CDATA[OperationalError: unable to open database file <-- getting this on pinax? you're probably not using the right python version]]></description>
			<content:encoded><![CDATA[<p>The macho way of doing stuffs is by doing it all yourself.</p>
<p>The smarter way is using what people already done and make it run with your needs. So we&#8217;re trying out Pinax for python.org.my. I got it running fine on my machine but for some reason it just wouldn&#8217;t start on the server.</p>
<p>Currently python.org.my is on diamanda, a django forum (we decided to stick to django apps since it&#8217;s something we want to learn and work on) and since Pinax is also running on django, I figured it would work out of the box. Of course it would, just make sure to get the requirements right.</p>
<p>I spent half a day on the console trying to figure out why pinax was giving me  the &#8216;OperationalError: unable to open database file&#8217;. I googled and there was someone there who had the same problem but the solution they gave him doesn&#8217;t seem to work on my case.</p>
<p>Then it hit me&#8230; the server was running on python2.4.  I guess pinax wants version 2.5. That&#8217;s the only thing I can think of that is causing the problem. Lets see if I can get the server owner or Misbah to upgrade&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://code.hexflux.com/2009/06/re-doing-pythonorgmy/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>
	</channel>
</rss>
