<?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>cawanpink.net</title>
	<atom:link href="http://cawanpink.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://cawanpink.net</link>
	<description>i dislike capital letters. i abuse ctrl-c and ctrl v</description>
	<lastBuildDate>Sat, 21 Aug 2010 10:06:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Thinking of changing the blog template</title>
		<link>http://cawanpink.net/2010/08/thinking-of-changing-the-blog-template/</link>
		<comments>http://cawanpink.net/2010/08/thinking-of-changing-the-blog-template/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 10:06:49 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[lament]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[sucks]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[urgh!]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2229</guid>
		<description><![CDATA[Well coz it&#8217;s been a while since I really blog these days. This is especially due to the existence of Facebook and Identica/Twitter. I used to blog alot but now any personal post I no longer post it here, only in Facebook. What to do with this blog? It&#8217;s like a place where I throw [...]]]></description>
			<content:encoded><![CDATA[<p>Well coz it&#8217;s been a while since I really blog these days. This is especially due to the existence of Facebook and Identica/Twitter. I used to blog alot but now any personal post I no longer post it here, only in Facebook. What to do with this blog? It&#8217;s like a place where I throw code snippets stuff now and then, which primarily is for me, to grab later on.</p>
<p>Twitter is much faster to post, as I don&#8217;t have to put in so much thought to express myself. It&#8217;s so much easier to post short notices and pics these days using Twitter. Writing these 2 paragraphs is not easy, I really have to think to compose the words! The days when they are very fluid are over now. I&#8217;m getting old.</p>
<p>You know, one other thing that&#8217;s been keeping me real slow in updating the blog is I kinda have this feeling that I don&#8217;t have the freedom to write as much as in the old days. Maybe because I&#8217;m well aware of the audience of this blog now or maybe I don&#8217;t have to ramble on as much anymore. See, old age catching up. Arrghh!!</p>
]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/08/thinking-of-changing-the-blog-template/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>git git git!</title>
		<link>http://cawanpink.net/2010/08/git-git-git/</link>
		<comments>http://cawanpink.net/2010/08/git-git-git/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 16:50:46 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2219</guid>
		<description><![CDATA[Create repo

mkdir mygit
cd mygit
git init
git add .
git commit -m 'initial commit'

Checkout repo

cd mygit
git clone url myrepo

Create branch

git branch -a 
git checkout -b branchtoworkon origin/existingbranch

or

git checkout existingbranch
git branch branchtoworkon
git checkout branchtoworkon

Push branch

git push origin branchtoworkon

Create tag

git tag -l
git tag 1.0

Push tag

git push origin 1.0

Delete branch/tag

git tag -d 1.0
git branch -d branchtoworkon
git push origin :branchtoworkon

]]></description>
			<content:encoded><![CDATA[<h4>Create repo</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> mygit
<span style="color: #7a0874; font-weight: bold;">cd</span> mygit
git init
git add .
git commit <span style="color: #660033;">-m</span> <span style="color: #ff0000;">'initial commit'</span></pre></div></div>

<h4>Checkout repo</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> mygit
git clone url myrepo</pre></div></div>

<h4>Create branch</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git branch <span style="color: #660033;">-a</span> 
git checkout <span style="color: #660033;">-b</span> branchtoworkon origin<span style="color: #000000; font-weight: bold;">/</span>existingbranch</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git checkout existingbranch
git branch branchtoworkon
git checkout branchtoworkon</pre></div></div>

<h4>Push branch</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git push origin branchtoworkon</pre></div></div>

<h4>Create tag</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git tag <span style="color: #660033;">-l</span>
git tag <span style="color: #000000;">1.0</span></pre></div></div>

<h4>Push tag</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git push origin <span style="color: #000000;">1.0</span></pre></div></div>

<h4>Delete branch/tag</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git tag <span style="color: #660033;">-d</span> <span style="color: #000000;">1.0</span>
git branch <span style="color: #660033;">-d</span> branchtoworkon
git push origin :branchtoworkon</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/08/git-git-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KDE desktop &#8211; ick!</title>
		<link>http://cawanpink.net/2010/08/kde-desktop-ick/</link>
		<comments>http://cawanpink.net/2010/08/kde-desktop-ick/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 15:19:57 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[lament]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2217</guid>
		<description><![CDATA[I hate it. No matter how much I tried to get used to it, it&#8217;s just not working for me. It installed a horde of these K apps that I don&#8217;t really like. This is the last time I ever will try KDE. LXDE is better, maybe Fluxbox even better who knows. I&#8217;m going to [...]]]></description>
			<content:encoded><![CDATA[<p>I hate it. No matter how much I tried to get used to it, it&#8217;s just not working for me. It installed a horde of these K apps that I don&#8217;t really like. This is the last time I ever will try KDE. LXDE is better, maybe Fluxbox even better who knows. I&#8217;m going to try that one after this.</p>
]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/08/kde-desktop-ick/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Now that it&#8217;s semester break again &#8211; my attention turns to books</title>
		<link>http://cawanpink.net/2010/07/now-that-its-semester-break-again-my-attention-turns-to-books/</link>
		<comments>http://cawanpink.net/2010/07/now-that-its-semester-break-again-my-attention-turns-to-books/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 13:44:30 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[bookcrossing]]></category>
		<category><![CDATA[excited]]></category>
		<category><![CDATA[reading]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2213</guid>
		<description><![CDATA[Empress Orchid arrived at the most appropriate time. Perfect! By the way, I can&#8217;t believe I didn&#8217;t buy a single book in 2009. What a hectic life I had.
I bought The Lovely Bone earlier this year coz I&#8217;ve been hearing people raved and raved about how good it was. It&#8217;s an old book but good [...]]]></description>
			<content:encoded><![CDATA[<p>Empress Orchid arrived at the most appropriate time. Perfect! By the way, I can&#8217;t believe I didn&#8217;t buy a single book in 2009. What a hectic life I had.</p>
<div id="attachment_2214" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2214" title="The Lovely Bones &amp; Empress Orchid" src="http://cawanpink.net/wordpress/wp-content/uploads/2010/07/DSC_0553-300x200.jpg" alt="Look at how battered they are (the red one has been passed around for 4 years!)" width="300" height="200" /><p class="wp-caption-text">Look at how battered they are (the red one has been passed around for 4 years!)</p></div>
<div id="attachment_2215" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2215" title="Bookcrossing.com" src="http://cawanpink.net/wordpress/wp-content/uploads/2010/07/DSC_0557-300x200.jpg" alt="This one has been to UK, US, Bosnia, Finland, Canada and now it's in Malaysia!" width="300" height="200" /><p class="wp-caption-text">This one has been to UK, US, Bosnia, Finland, Canada and now it&#39;s in Malaysia!</p></div>
<p>I bought The Lovely Bone earlier this year coz I&#8217;ve been hearing people raved and raved about how good it was. It&#8217;s an old book but good ones should have the same effect the very first time you read it. I&#8217;m losing touch with my inner nerdness &#8211; heh! I used ti visit bookstore often and I used to know what books were good and came well recommended. And mind you I don&#8217;t read chicklit except for Cecilia Ahern&#8217;s masterpieces ok.</p>
<p>I bet you don&#8217;t know what chicklit is. It&#8217;s short for chicks&#8217; literature. Books that fall into that category include the Shopaholic series, Devil Wears Prada, Bridget Jones Diary (yes people those are books before they are moviezzz). They&#8217;re usually very light read, useful when you&#8217;re in stress and need a quick pages of relief during lunch breaks. But I don&#8217;t do that. It&#8217;s just what I imagine the books for. I couldn&#8217;t get myself to finish one of those (except for Ms. Ahern&#8217;s) at any given time. And I won&#8217;t buy any chicklits anymore, not ever (except for Ms. Ahern&#8217;s).</p>
<p>I&#8217;m kind of an old soul. I think that&#8217;s why I don&#8217;t get chicklits. People are mystified why I like History channel so much. Or Discovery or NG, you get the idea. I don&#8217;t watch Astro Ria that much, I think it&#8217;s purely entertainment, not much substance there. But I don&#8217;t watch much news channel either, as I don&#8217;t like war and politics. Music wise, I like standards. Yes I do think it&#8217;s odd but I like those, especially the lyrics in those times. See? Old soul <img src='http://cawanpink.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Been such a looooooooooooooong time since I updated my blog. This felt good.</p>
]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/07/now-that-its-semester-break-again-my-attention-turns-to-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bzr curl connection error when accessing using HTTPS</title>
		<link>http://cawanpink.net/2010/06/bzr-curl-connection-error-when-accessing-using-https/</link>
		<comments>http://cawanpink.net/2010/06/bzr-curl-connection-error-when-accessing-using-https/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:36:24 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[bzr]]></category>
		<category><![CDATA[mymeeting]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2210</guid>
		<description><![CDATA[Note to self:
If using bzr to checkout svn repo and it spits out bzr: ERROR: Connection error: curl connection error, use https+urllib instead of only https. Refer http://doc.bazaar.canonical.com/bzr.dev/en/user-guide/http_smart_server.html
]]></description>
			<content:encoded><![CDATA[<p>Note to self:</p>
<p>If using bzr to checkout svn repo and it spits out bzr: ERROR: Connection error: curl connection error, use https+urllib instead of only https. Refer <a href="http://doc.bazaar.canonical.com/bzr.dev/en/user-guide/http_smart_server.html">http://doc.bazaar.canonical.com/bzr.dev/en/user-guide/http_smart_server.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/06/bzr-curl-connection-error-when-accessing-using-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Load model dynamically in CakePHP</title>
		<link>http://cawanpink.net/2010/04/load-model-dynamically-in-cakephp/</link>
		<comments>http://cawanpink.net/2010/04/load-model-dynamically-in-cakephp/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 07:12:54 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[cakephp]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2202</guid>
		<description><![CDATA[Sometimes I may need a model that&#8217;s only going to be used in an action, not the whole controller to lighten the load. Or in that rare occasion when I have to load a model that&#8217;s not what the controller meant to work with.
I&#8217;ve used this for quite a while now, based on discussion in [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I may need a model that&#8217;s only going to be used in an action, not the whole controller to lighten the load. Or in that rare occasion when I have to load a model that&#8217;s not what the controller meant to work with.</p>
<p>I&#8217;ve used this for quite a while now, based on discussion in <a href="http://groups.google.com/group/cake-php/browse_thread/thread/137c57b4eb010317">CakePHP mailing list here</a>.</p>
<p>1. Controller::loadModel(&#8217;yourmodel&#8217;); (preferred)</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// in app/controllers/car_controllers.php</span>
Controller<span style="color: #339933;">::</span><span style="color: #004000;">loadModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Book'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Book</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: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// the object initiated and added as a property to the controller, persistModel is enabled</span></pre></div></div>

<p>or<br />
2. ClassRegistry::init(&#8217;yourmodel&#8217;);</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// in app/controllers/car_controllers.php</span>
<span style="color: #000088;">$book</span> <span style="color: #339933;">=</span> ClassRegistry<span style="color: #339933;">::</span><span style="color: #004000;">init</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Book'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// returns the object</span>
<span style="color: #000088;">$book</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: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/04/load-model-dynamically-in-cakephp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A couple observation on people &amp; the elevator</title>
		<link>http://cawanpink.net/2010/03/a-couple-observation-on-people-the-elevator/</link>
		<comments>http://cawanpink.net/2010/03/a-couple-observation-on-people-the-elevator/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 02:46:36 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[attitude]]></category>
		<category><![CDATA[putrajaya]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2196</guid>
		<description><![CDATA[I use elevator to get to work and to get to home. So I spend time in elevators everyday for at least 4 times, no matter how brief it is, there&#8217;s plenty to see and comment.
Observation 1 &#8211; People are selfish (or probably just ignorant), they don&#8217;t hold the doors for others
This happened alot at [...]]]></description>
			<content:encoded><![CDATA[<p>I use elevator to get to work and to get to home. So I spend time in elevators everyday for at least 4 times, no matter how brief it is, there&#8217;s plenty to see and comment.</p>
<h3>Observation 1 &#8211; People are selfish (or probably just ignorant), they don&#8217;t hold the doors for others</h3>
<p>This happened alot at home. It&#8217;s general rule of thumb, if you&#8217;re the first one to get in the elevators, be considerate enough to hold the doors for others who&#8217;s coming after you lah! Most of the time I saw them just go in and right away stood at the very back and just stood there. In over 2 years I&#8217;ve been living here I can count how many times people held the door &#8211; it&#8217;s no more than 10.</p>
<p>99.99% of the apartment&#8217;s residence are malays. Is this a racial issue? Or is this about being in Putrajaya? In the city where people are more of a mixed race, I encountered better attitude. Whether they know you or not, they hold the doors for you, even more if you&#8217;re a lady. Because this doesn&#8217;t happen in the office. I&#8217;m not so sure about offices in Putrajaya &#8211; is it the same?? Or does this just happen at my apartment? </p>
<p>Guys, be a gentleman. Ladies, show them we have heart by doing so we kick ass.</p>
<h3>Observation 2 &#8211; We are lazy, we live in first floor we still need to take the elevator</h3>
<p>Use the stairs lah! Get some workout. In a country where people are not very health conscious and think gyms are for the rich and for people who have so much time on their hands, taking the stairs is good for you. Unless you have groceries or screaming kids or riding the elevator alone, consider getting some exercise. </p>
<p>I think this happens everywhere here. We are all lazy.</p>
]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/03/a-couple-observation-on-people-the-elevator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom filter query in symfony 1.4</title>
		<link>http://cawanpink.net/2010/03/custom-filter-query-in-symfony-1-4/</link>
		<comments>http://cawanpink.net/2010/03/custom-filter-query-in-symfony-1-4/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 21:01:51 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2187</guid>
		<description><![CDATA[This cracked my head in this wee hour. Thankfully I got it working.

# add the custom field in myapp/modules/client/config/generator.yml
filter:
  display: [ existing_fields, paid_up_cap_more]
  fields: 
    paid_up_cap_more: { label: Paid up capital (RM) - more than }


// in lib/filter/doctrine
class CrmClientFormFilter extends BaseCrmClientFormFilter
&#123;
  public function configure&#40;&#41; &#123;
    $this-&#62;widgetSchema&#91;'paid_up_cap_more'&#93; [...]]]></description>
			<content:encoded><![CDATA[<p>This cracked my head in this wee hour. Thankfully I got it working.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># add the custom field in myapp/modules/client/config/generator.yml
filter:
  display: [ existing_fields, paid_up_cap_more]
  fields: 
    paid_up_cap_more: { label: Paid up capital (RM) - more than }</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// in lib/filter/doctrine</span>
<span style="color: #000000; font-weight: bold;">class</span> CrmClientFormFilter <span style="color: #000000; font-weight: bold;">extends</span> BaseCrmClientFormFilter
<span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> configure<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">widgetSchema</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'paid_up_cap_more'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span>  <span style="color: #000000; font-weight: bold;">new</span> sfWidgetFormInput<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">validatorSchema</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'paid_up_cap_more'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span>  sfValidatorPass<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'required'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</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: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getFields<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$fields</span> <span style="color: #339933;">=</span> parent<span style="color: #339933;">::</span><span style="color: #004000;">getFields</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$fields</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'paid_up_cap_more'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'paid_up_cap_more'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$fields</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// must be in this format addXXXXXColumnQuery</span>
  protected <span style="color: #000000; font-weight: bold;">function</span> addPaidUpCapMoreColumnQuery<span style="color: #009900;">&#40;</span><span style="color: #000088;">$q</span><span style="color: #339933;">,</span> <span style="color: #000088;">$element</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
         <span style="color: #000088;">$q</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">andWhere</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'paid_up_capital &gt;= ?'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #b1b100;">return</span> <span style="color: #000088;">$q</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/03/custom-filter-query-in-symfony-1-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>virtualenv</title>
		<link>http://cawanpink.net/2010/03/virtualenv/</link>
		<comments>http://cawanpink.net/2010/03/virtualenv/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 02:24:37 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2179</guid>
		<description><![CDATA[I kept getting back to virtualenv and every time I would totally forget how to go about it and had to start googling. Every time. Frustrating. This is usually when Plone is involved. 
So.

$ sudo apt-get install python-virtualenv
$ virtualenv -p /usr/bin/python2.4 /home/cawanpink/python2.4
$ source /home/cawanpink/python2.4/bin/activate
(python2.4)$ deactivate

That&#8217;s

install
create the Python 2.4 virtual environment
activate the environment
to get out of [...]]]></description>
			<content:encoded><![CDATA[<p>I kept getting back to virtualenv and every time I would totally forget how to go about it and had to start googling. Every time. Frustrating. This is usually when Plone is involved. </p>
<p>So.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ sudo apt-get install python-virtualenv
$ virtualenv -p /usr/bin/python2.4 /home/cawanpink/python2.4
$ source /home/cawanpink/python2.4/bin/activate
(python2.4)$ deactivate</pre></div></div>

<p>That&#8217;s
<ul>
<li>install</li>
<li>create the Python 2.4 virtual environment</li>
<li>activate the environment</li>
<li>to get out of the environment</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/03/virtualenv/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cheap cheap</title>
		<link>http://cawanpink.net/2010/02/cheap-cheap/</link>
		<comments>http://cawanpink.net/2010/02/cheap-cheap/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 19:21:57 +0000</pubDate>
		<dc:creator>cawanpink</dc:creator>
				<category><![CDATA[bookcrossing]]></category>
		<category><![CDATA[reading]]></category>

		<guid isPermaLink="false">http://cawanpink.net/?p=2171</guid>
		<description><![CDATA[After sooo many moons, I got this book.
I have quite a long list of books to read but have been resisting the urge to buy any coz I know they&#8217;ll end up on the shelf collecting dust. I like going to bookstores. I love looking at the bestsellers and new arrivals. Books price here is [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2172" class="wp-caption alignleft" style="width: 250px"><img class="size-medium wp-image-2172  " title="The Last Empress book" src="http://cawanpink.net/wordpress/wp-content/uploads/2010/02/DSC_0126-300x291.jpg" alt="RM19.90 only! Where else, MPH Alamanda Putrajaya where the shelves for English fictions are the same size with their Malay counterparts." width="240" height="233" /><p class="wp-caption-text">RM19.90 only! Where else, MPH Alamanda Putrajaya where the shelves for English fictions are the same size with their Malay counterparts.</p></div>
<p>After sooo many moons, I got this book.</p>
<p>I have quite a long list of books to read but have been resisting the urge to buy any coz I know they&#8217;ll end up on the shelf collecting dust. I like going to bookstores. I love looking at the bestsellers and new arrivals. Books price here is considerably expensive for me. Average for those 300-pagish is around RM40 where in US it&#8217;s only USD3.99. What a world would it be if they cost RM3.99 too here. Hmmpphh you wish!</p>
<p>I miss the feeling after reading a good book. I have no idea yet when to start reading this one, I bought it coz I&#8217;ve read Empress Orchid by the same author, and I liked it, and RM19.90 is cheap.</p>
]]></content:encoded>
			<wfw:commentRss>http://cawanpink.net/2010/02/cheap-cheap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
