<?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>LogBook</title>
	<atom:link href="http://www.joyceleong.com/log/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joyceleong.com/log</link>
	<description>Just another Logbook</description>
	<lastBuildDate>Mon, 13 Feb 2012 06:34:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CodeIgniter vs Yii</title>
		<link>http://www.joyceleong.com/log/codeigniter-vs-yii-2/</link>
		<comments>http://www.joyceleong.com/log/codeigniter-vs-yii-2/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 06:33:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=561</guid>
		<description><![CDATA[After using CodeIgniter for some time, I realized the simplicity and the ease of deployment, very much pretty straightforward. The userguide itself is very much detailed and provides a great deal of examples for anyone who tries to learn the ropes of CI. Probably getting too used to coding with raw PHP and CI, in [...]]]></description>
			<content:encoded><![CDATA[<p>After using CodeIgniter for some time, I realized the simplicity and the ease of deployment, very much pretty straightforward. The userguide itself is very much detailed and provides a great deal of examples for anyone who tries to learn the ropes of CI.</p>
<p>Probably getting too used to coding with raw PHP and CI, in comparison I tend to find that Yii has a steeper learning curve. However though it does provide things like CListView, CDetailView, CGridView etc. Hence building these view types are easy and you can configure them to your needs.</p>
<p>Yii comes with scaffolding as well, your Model class builds from your database. Hence, it is important that your database schema is well designed. Another thing not to overlook is the relations, you can define the relations for easy referencing throughout your script. Controller and CRUD can be generated easily as well. You just have to customize them to suit your requirements. It does reduce your effort rewriting duplicates very much greatly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/codeigniter-vs-yii-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Quick Tip &#8211; Removing Resize Handler in Textarea</title>
		<link>http://www.joyceleong.com/log/css-quick-tip-removing-resize-handler-in-textarea/</link>
		<comments>http://www.joyceleong.com/log/css-quick-tip-removing-resize-handler-in-textarea/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 03:16:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=549</guid>
		<description><![CDATA[One of the frequent issues with textarea is the annoying resize handler that will appear in most browsers such as firefox and chrome, and in order to prevent your users from resizing the textarea, you can disable the resize handler with CSS. Here is how you can do it:]]></description>
			<content:encoded><![CDATA[<p>One of the frequent issues with textarea is the annoying resize handler that will appear in most browsers such as firefox and chrome, and in order to prevent your users from resizing the textarea, you can disable the resize handler with CSS.</p>
<p>Here is how you can do it:</p>
<pre class="brush: css; title: ; notranslate">
textarea {
resize: none;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/css-quick-tip-removing-resize-handler-in-textarea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Quick Tips &#8211; Pseudo Class</title>
		<link>http://www.joyceleong.com/log/css3-quick-tips-pseudo-class-2/</link>
		<comments>http://www.joyceleong.com/log/css3-quick-tips-pseudo-class-2/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 10:10:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=522</guid>
		<description><![CDATA[You can use pseudo class in CSS3 such as: E.g. 1- Using nth-child Main.css Basically this is saying, make every odd child will get the style of green, and every other even child will get the color of red. Screenshot for E.g. 1 E.g. 2 &#8211; Using Negation Pseudo Class Main.css Basically what this is [...]]]></description>
			<content:encoded><![CDATA[<p>You can use pseudo class in CSS3 such as:</p>
<h3>E.g. 1- Using nth-child</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Welcome to HTML5 Tuts!&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot;&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id=&quot;theparent&quot;&gt;
&lt;p class=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p class=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p class=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p class=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p class=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Main.css</p>
<pre class="brush: css; title: ; notranslate">
p:nth-child(odd) { color: green; }
p:nth-child(even) { color: red; }
</pre>
<p><em><strong>Basically this is saying, make every odd child will get the style of green, and every other even child will get the color of red.</strong></em></p>
<p>Screenshot for E.g. 1</p>
<p><img class="alignnone size-full wp-image-533" title="CSS pseudo class eg 1" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/Screen-shot-2011-12-19-at-PM-06.11.19.png" alt="" width="144" height="193" /></p>
<h3>E.g. 2 &#8211; Using Negation Pseudo Class</h3>
<pre class="brush: xml; title: ; notranslate">

&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Welcome to HTML5 Tuts!&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot;&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id=&quot;theparent&quot;&gt;
&lt;p class=&quot;childa&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p class=&quot;childb&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p class=&quot;childa&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p class=&quot;childb&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p class=&quot;childb&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Main.css</p>
<pre class="brush: css; title: ; notranslate">
* {color: blue;}
:not(.childa) {color: red;};
</pre>
<p><em><strong>Basically what this is saying is that make all items blue, and anything that is not termed as the class = childa are red, which is why the &lt;p&gt; with class = childb are all in red.</strong></em></p>
<p>Screenshot of the result for E.g. 2:</p>
<p><img title="CSS3 Pseudo Class" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/Screen-shot-2011-12-19-at-PM-05.57.48.png" alt="" width="154" height="185" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/css3-quick-tips-pseudo-class-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Quick Tip &#8211; Attribute Selector and Regex</title>
		<link>http://www.joyceleong.com/log/css3-quick-tip-attribute-selector-and-regex/</link>
		<comments>http://www.joyceleong.com/log/css3-quick-tip-attribute-selector-and-regex/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 10:00:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=539</guid>
		<description><![CDATA[Using Attribue Selector, you can set the styling based on the attributes. E.g. 1 &#8211; Using Attribute Selector Main.css Screenshot of E.g. 1: E.g. 2 &#8211; Using Regex in CSS Main.css Screenshot of E.g. 2: p[name^="child"] {color:blue;} Screenshot of E.g. 2: p[name$="child"] {color:blue;} Screenshot of E.g. 2: p[name*="child"] {color:blue;}]]></description>
			<content:encoded><![CDATA[<p>Using Attribue Selector, you can set the styling based on the attributes.</p>
<h3>E.g. 1 &#8211; Using Attribute Selector</h3>
<pre class="brush: xml; title: ; notranslate">
&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Welcome to HTML5 Tuts!&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot;&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id=&quot;theparent&quot;&gt;
&lt;p name=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p name=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p name=&quot;childname&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p name=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p name=&quot;child&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Main.css</p>
<pre class="brush: css; title: ; notranslate">
p[name=&quot;childname&quot;] {color:blue;}
</pre>
<p>Screenshot of E.g. 1:</p>
<p><img class="alignnone size-full wp-image-540" title="Screen shot 2011-12-19 at PM 06.20.23" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/Screen-shot-2011-12-19-at-PM-06.20.23.png" alt="" width="142" height="186" /></p>
<h3>E.g. 2 &#8211; Using Regex in CSS</h3>
<pre class="brush: xml; title: ; notranslate">
 &lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot;&gt;
&lt;title&gt;Welcome to HTML5 Tuts!&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot;&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id=&quot;theparent&quot;&gt;
&lt;p name=&quot;children&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p name=&quot;thechild&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;p name=&quot;mychildname&quot;&gt;This is a sentence.&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
 </pre>
<p>Main.css</p>
<pre class="brush: css; title: ; notranslate">
 p[name^=&quot;child&quot;] {color:blue;}    // beginning with
p[name$=&quot;child&quot;] {color:blue;}    // ending with
p[name*=&quot;child&quot;] {color:blue;}    // wildcard, as long as &quot;child&quot; is found
 </pre>
<p>Screenshot of E.g. 2: <strong>p[name^="child"] {color:blue;}</strong></p>
<p><img class="alignnone  wp-image-541" title="Screen shot 2011-12-19 at PM 06.26.47" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/Screen-shot-2011-12-19-at-PM-06.26.47.png" alt="" width="140" height="121" /></p>
<p>Screenshot of E.g. 2: <strong>p[name$="child"] {color:blue;}</strong></p>
<p><img class="alignnone size-full wp-image-542" title="Screen shot 2011-12-19 at PM 06.27.32" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/Screen-shot-2011-12-19-at-PM-06.27.32.png" alt="" width="138" height="130" /></p>
<p>Screenshot of E.g. 2: <strong>p[name*="child"] {color:blue;}</strong></p>
<p><img class="alignnone size-full wp-image-543" title="Screen shot 2011-12-19 at PM 06.27.51" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/Screen-shot-2011-12-19-at-PM-06.27.51.png" alt="" width="142" height="126" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/css3-quick-tip-attribute-selector-and-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saving Facebook Album Photos &#8211; PhotoGetter</title>
		<link>http://www.joyceleong.com/log/saving-facebook-album-photos-photogetter/</link>
		<comments>http://www.joyceleong.com/log/saving-facebook-album-photos-photogetter/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 05:12:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=512</guid>
		<description><![CDATA[As anyone saving and grabbing photos from their friend&#8217;s facebook photo album or from their favourite fans page photo album is really a tiring repetitive job when Facebook does not put a &#8220;Download Album&#8221; link for users to download. The way to do it is to download the individual photos within the album, one by [...]]]></description>
			<content:encoded><![CDATA[<p>As anyone saving and grabbing photos from their friend&#8217;s facebook photo album or from their favourite fans page photo album is really a tiring repetitive job when Facebook does not put a &#8220;Download Album&#8221; link for users to download. The way to do it is to download the individual photos within the album, one by one. In fact, I faced this problem, I was getting lazy after going through the download process for a few photos within an album. And what if there are a whole lot of photos inside the album, perhaps 100 or more? Pretty tiring isn&#8217;t it?</p>
<p>Hence, I have created a project with php and facebook FQL, this is an extremely basic application completed within a short time frame (within a few hours due to some researching and testing). Basically what this application will do is that you copy the album url and paste it into the textfield and off you go. The application will go and grab the photos and zip them up nicely in a downloadable zip file for you.</p>
<p>What is used in the building of this application? HTML, PHP, FQL, Facebook Developers.</p>
<p>Here are some screenshots of the application:</p>
<p>Step 1: Found an Album to Download, copy the Album URL. E.g. the one on the left with 193 photos.</p>
<p><img class="alignnone size-full wp-image-515" title="pgetter-getting album to download" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/pgetter-getting-album-to-download.png" alt="" width="560" height="307" /></p>
<p>Step 2: Paste the URL into the textbox. Click Start and wait.</p>
<p><img class="alignnone size-full wp-image-514" title="pgetter-input-url" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/pgetter-input-url.png" alt="" width="745" height="132" /></p>
<p>Step 3: Show progress and upon completion a zip file to download.</p>
<p><img class="alignnone size-full wp-image-516" title="pgetter-completed" src="http://www.joyceleong.com/log/wp-content/uploads/2011/12/pgetter-completed.png" alt="" width="829" height="371" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/saving-facebook-album-photos-photogetter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Pear Command</title>
		<link>http://www.joyceleong.com/log/setting-up-pear-command/</link>
		<comments>http://www.joyceleong.com/log/setting-up-pear-command/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 06:07:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=501</guid>
		<description><![CDATA[It came to a point that I no longer can tolerate the calling of /Application/MAMP/bin/php5.2/bin/pear to just run my pear command. Here is a quick tip to just set up your pear command, is to put it within your bash_profile, and the steps: Check the bin_dir: Vi ~/.bash_profile and include the bin_dir (basically this is [...]]]></description>
			<content:encoded><![CDATA[<p>It came to a point that I no longer can tolerate the calling of /Application/MAMP/bin/php5.2/bin/pear to just run my pear command. Here is a quick tip to just set up your pear command, is to put it within your bash_profile, and the steps:</p>
<ol>
<li>Check the bin_dir:
<pre class="brush: plain; title: ; notranslate">/Applications/MAMP/bin/php5.2/bin/pear config-show</pre>
</li>
<li>Vi ~/.bash_profile and include the bin_dir (basically this is the location of your pear binary)
<pre class="brush: plain; title: ; notranslate">export PATH=&lt;your bin dir&gt;:$PATH</pre>
<p>&nbsp;</li>
<li>Important! Close and load your terminal again, or just run
<pre class="brush: plain; title: ; notranslate">. ~/.bash_profile</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/setting-up-pear-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with Yii Part 2</title>
		<link>http://www.joyceleong.com/log/playing-with-yii-part-2/</link>
		<comments>http://www.joyceleong.com/log/playing-with-yii-part-2/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 04:34:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=488</guid>
		<description><![CDATA[I think the Yii screencasts that they have on the Yii Framework site is pretty simplistic and easy to understand. However this is just the tip of an iceberg what this beast can do, there is more to it. Hence supposedly it will be more fun to start exploration some possibilities and functions that Yii [...]]]></description>
			<content:encoded><![CDATA[<p>I think the <a href="http://www.yiiframework.com/screencasts/" target="_blank">Yii screencasts</a> that they have on the Yii Framework site is pretty simplistic and easy to understand. However this is just the tip of an iceberg what this beast can do, there is more to it. Hence supposedly it will be more fun to start exploration some possibilities and functions that Yii Framework does.</p>
<p>The first part of it is to get your framework downloaded, and getting an instance of Yii Framework running. As these basic stuffs are locatable on the Yii Screencasts, hence I&#8217;ll assume that this part of the knowledge is taken care of. I will just do a quick summary of things that I take note off from the screencasts.</p>
<h3>Creating a Hello World Application</h3>
<p>A hello world applicaiton in Yii is nothing more than a page in the application displaying this simple greeting.</p>
<ol>
<li>Use Gii to create a new controller to handle our page request</li>
<li>Alter the view file to display our friendly greeting</li>
</ol>
<h3>Understanding the Request Route</h3>
<p>http://localhost/demo/index.php?r=greeting/index</p>
<p>where  r = route, greeting = controller id, index = action id<br />
Instruct Yii to route request to Greeting Controller::actionIndex()</p>
<h3>How to Move message data back to the controller?</h3>
<ol>
<li>Create controller property to hold message data</li>
<li>Pass the data from controller to view</li>
</ol>
<h3></h3>
<h3>How to Output the message content to the view?</h3>
<ol>
<li>Set a variable $content for the view</li>
<li>$this-&gt;message for the view output</li>
</ol>
<h3></h3>
<h3>CRUD</h3>
<p>Configure our application to use a database. Create CRUD content management functionality.</p>
<p>What does CRUD stand for?</p>
<ul>
<li>(op) =&gt; (sql)</li>
<li>Create =&gt; Insert</li>
<li>Read =&gt; Select</li>
<li>Update =&gt; Update</li>
<li>Delete =&gt; Delete</li>
</ul>
<h3></h3>
<h3>Understanding the Request Route when using CRUD</h3>
<p>main application : http://localhost/demo/index.php</p>
<p>in the message controller, viewing the details of message #1, so our route is:<br />
r=message/view&amp;id=1</p>
<p>total url: http://localhost/demo/index.php?r=message/view&amp;id=1</p>
<h3></h3>
<h3>How to Alter the simple Hello World message to use content from the database?</h3>
<p>Recap:</p>
<p>&lt;?php echo &#8220;Hello World&#8221; ?&gt; &#8211; data in the view</p>
<p>&lt;?php echo $content ?&gt; &#8211; data in the controller:: push approach</p>
<p>&lt;?php echo $this-&gt;message ?&gt; &#8211; data in the controller:: pull approach</p>
<h3></h3>
<h3>Quick References:</h3>
<p>Yii Screencasts: <a href="http://www.yiiframework.com/screencasts/" target="_blank">http://www.yiiframework.com/screencasts/</a><br />
Yii Wiki: <a href="http://www.yiiframework.com/wiki/" target="_blank">http://www.yiiframework.com/wiki/</a><br />
Yii API Documentation: <a href="http://www.yiiframework.com/doc/api/1.1/Yii" target="_blank">http://www.yiiframework.com/doc/api/1.1/Yii</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/playing-with-yii-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with Yii Part 1</title>
		<link>http://www.joyceleong.com/log/playing-with-yii-part-1/</link>
		<comments>http://www.joyceleong.com/log/playing-with-yii-part-1/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 08:27:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=484</guid>
		<description><![CDATA[I am a visual learner as always, but it is tough to look for Yii video tutorials aside from those officially provided on the Yii Framework site. I tried to flip through the blog pdf tutorial, but wasn&#8217;t getting anywhere. I might try out the Yii ebooks later on. Finally getting into Yii Framework, as [...]]]></description>
			<content:encoded><![CDATA[<p>I am a visual learner as always, but it is tough to look for Yii video tutorials aside from those officially provided on the Yii Framework site. I tried to flip through the blog pdf tutorial, but wasn&#8217;t getting anywhere. I might try out the Yii ebooks later on.</p>
<p>Finally getting into Yii Framework, as I know eventually this is the way to beef up a web application in a fast and steady way. I am a hardcore old school programmer, and having to use frameworks tend to limit my thoughts somehow. Tried on codeigniter and cakephp, now moving on with Yii.</p>
<p>What I can say about Yii is simply cool, fast, and a beastly replication of redundancy, this is just a great idea to enable programmers to think more on the logical functions that the boring stuff.  Way to go man&#8230;</p>
<p>A side from the main official Yii documentation:</p>
<p><a href="http://www.yiiframework.com/" target="_blank">http://www.yiiframework.com/</a></p>
<p>A nice catch with simplistic brief about yii from Sterling Savvy:</p>
<p><a href="http://www.sterlingsavvy.com/tutorials/index.php?t=1&amp;l=1" target="_blank">http://www.sterlingsavvy.com/tutorials/index.php?t=1&amp;l=1 </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/playing-with-yii-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning a new Language or Framework</title>
		<link>http://www.joyceleong.com/log/learning-a-new-language-or-framework/</link>
		<comments>http://www.joyceleong.com/log/learning-a-new-language-or-framework/#comments</comments>
		<pubDate>Mon, 26 Sep 2011 08:15:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=481</guid>
		<description><![CDATA[Here&#8217;s a learning checklist when you try to learn a new programming language or learning how to make use of a new framework to work with. Marc Gear states some of the exercises that we should put our hands dirty at: http://onekay.com/blog/archives/35 In summary: Hello World Calculator Guestbook Parse and Paginate]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a learning checklist when you try to learn a new programming language or learning how to make use of a new framework to work with.</p>
<p>Marc Gear states some of the exercises that we should put our hands dirty at:<br />
<a href="http://onekay.com/blog/archives/35" target="_blank">http://onekay.com/blog/archives/35</a></p>
<p>In summary:</p>
<ol>
<li>Hello World</li>
<li>Calculator</li>
<li>Guestbook</li>
<li>Parse and Paginate</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/learning-a-new-language-or-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One Platform, any Stack &#8211; DotCloud</title>
		<link>http://www.joyceleong.com/log/one-platform-any-stack-dotcloud/</link>
		<comments>http://www.joyceleong.com/log/one-platform-any-stack-dotcloud/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 11:34:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.joyceleong.com/log/?p=462</guid>
		<description><![CDATA[While researching, I came across a neat and gritty solution &#8211; DotCloud.com. Basically what they do is to help you create a platform of any stack, building and deploying your stack within instance. Do away with stacking up your linux playbox, and pile up your stack cloud right away. What is DotCloud good for? It [...]]]></description>
			<content:encoded><![CDATA[<p>While researching, I came across a neat and gritty solution &#8211; <a href="http://www.dotcloud.com/" target="_blank">DotCloud.com</a>. Basically what they do is to help you create a platform of any stack, building and deploying your stack within instance. Do away with stacking up your linux playbox, and pile up your stack cloud right away.</p>
<h3>What is DotCloud good for?</h3>
<p>It definitely can do a whole lot more. The stack can support a wide range of various services, framework and databases. Hence you can mix and match whichever services based on your requirements.</p>
<p>The next kid in the block are nodej.js and mongodb. For more information on the services, check <a href="http://docs.dotcloud.com/services/roadmap/" target="_blank">http://docs.dotcloud.com/services/roadmap/</a>.</p>
<h3>Is DotCloud easy to use?</h3>
<p>You bet. Just follow the Steps below and refer to the links as stated.</p>
<h3>DotCloud Setup Steps:</h3>
<ol>
<li>Signup a DotCloud account</li>
<li>Install the CLI (Follow the steps for the various OS here: <a href="http://docs.dotcloud.com/firststeps/install/" target="_blank">http://docs.dotcloud.com/firststeps/install/</a>)</li>
<li>Look for the API Key inside the DotCloud Dashboard Setting</li>
<li>Paste and complete the CLI installation</li>
</ol>
<p></p>
<h3>DotCloud Examples:</h3>
<p>
I find the DotCloud Docs pretty clear and concise.<br />
Pushing a static html file to DotCloud &#8211; <a href="http://docs.dotcloud.com/firststeps/quickstart/" target="_blank">http://docs.dotcloud.com/firststeps/quickstart/</a><br />
Dynamic PHP with database &#8211; <a href="http://docs.dotcloud.com/firststeps/in-depth/" target="_blank">http://docs.dotcloud.com/firststeps/in-depth/</a>
</p>
<h3>DotCloud Summary:</h3>
<p>Creating the app:</p>
<pre class="brush: plain; title: ; notranslate">$ dotcloud create helloworldapp2</pre>
<p>Pushing your code:</p>
<pre class="brush: plain; title: ; notranslate">$ dotcloud push helloworldapp2 .</pre>
<p>Setting your database:</p>
<pre class="brush: plain; title: ; notranslate">$ dotcloud info helloworldapp2.db</pre>
<p>Creating database credentials and grant access:</p>
<pre class="brush: plain; title: ; notranslate">$ dotcloud run helloworldapp2.db -- mysql -u root -pOLZeLLBdKFAiI2lGqSn4</pre>
<p>Restart your app:</p>
<pre class="brush: plain; title: ; notranslate">$ dotcloud restart helloworldapp2.www</pre>
<p>Try your app:</p>
<pre class="brush: plain; title: ; notranslate">$ dotcloud url helloworldapp2</pre>
<p>Delete services:</p>
<pre class="brush: plain; title: ; notranslate">$ dotcloud destroy helloworldapp2.www</pre>
<p>Destroying whole application:</p>
<pre class="brush: plain; title: ; notranslate">$ dotcloud destroy helloworldapp2</pre>
<p>
Personally I would think it is great for a playground and experimental ground for application and projects, and creating a stack is almost instantaneous.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joyceleong.com/log/one-platform-any-stack-dotcloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

