<?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>ModeWeb Blog</title>
	<atom:link href="http://www.modeweb.co.uk/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.modeweb.co.uk/blog</link>
	<description>Web Development Tech Blog</description>
	<lastBuildDate>Sun, 25 Dec 2011 22:05:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySQL Count Rows For Pagination</title>
		<link>http://www.modeweb.co.uk/blog/2011/12/mysql-count-rows-for-pagination/</link>
		<comments>http://www.modeweb.co.uk/blog/2011/12/mysql-count-rows-for-pagination/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 21:36:46 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.modeweb.co.uk/blog/2011/12/mysql-count-rows-for-pagination/</guid>
		<description><![CDATA[The following SQL snippet shows a neat way to do queries when implementing paged results.
I have tested the snippet on MySQL 5 only.

SELECT SQL_COUNT ROWS *, tableName.id, tableName.someCol
FROM tableName
LIMIT 0,25;



SELECT SELECT FOUND_ROWS();

For example, say the above table tableName has a total of 100 rows, running the above queries one after another would first return a [...]]]></description>
			<content:encoded><![CDATA[<p>The following SQL snippet shows a neat way to do queries when implementing paged results.</p>
<p>I have tested the snippet on MySQL 5 only.</p>
<pre>
SELECT SQL_COUNT ROWS *, tableName.id, tableName.someCol
FROM tableName
LIMIT 0,25;
</pre>
<p><span id="more-147"></span></p>
<pre>
SELECT SELECT FOUND_ROWS();
</pre>
<p>For example, say the above table <code>tableName</code> has a total of 100 rows, running the above queries one after another would first return a result set of 25 rows, then the second query would return 100, the total number of rows.</p>
<p>It may be interesting also to see if there is a performance difference between a   3 or a 2 query approach, as the MySQL manual only shows running the <code>SQL_COUNT_ROWS *</code> statement on it&#8217;s own, unlike with columns as I have done here.</p>
<p>My hunch is that 2 queries would be faster but maybe not for tables with millions of rows?</p>
<p>
<a href="http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_found-rows">http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_found-rows</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.modeweb.co.uk/blog/2011/12/mysql-count-rows-for-pagination/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Boolean Rules</title>
		<link>http://www.modeweb.co.uk/blog/2011/12/php-boolean-rules/</link>
		<comments>http://www.modeweb.co.uk/blog/2011/12/php-boolean-rules/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 19:46:03 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.modeweb.co.uk/blog/?p=93</guid>
		<description><![CDATA[When converting to boolean, the following values are considered FALSE:

the boolean FALSE itself
the integer 0 (zero)
the float 0.0 (zero)
the empty string, and the string &#8220;0&#8243;
an array with zero elements
an object with zero member variables (PHP 4 only)
the special type NULL (including unset variables)
SimpleXML objects created from empty tags

Every other value is considered TRUE (including any [...]]]></description>
			<content:encoded><![CDATA[<p>When converting to boolean, the following values are considered FALSE:</p>
<ul>
<li>the boolean FALSE itself</li>
<li>the integer 0 (zero)</li>
<li>the float 0.0 (zero)</li>
<li>the empty string, and the string &#8220;0&#8243;</li>
<li>an array with zero elements</li>
<li>an object with zero member variables (PHP 4 only)</li>
<li>the special type NULL (including unset variables)</li>
<li>SimpleXML objects created from empty tags</li>
</ul>
<p>Every other value is considered TRUE (including any resource).</p>
<p><a href="http://php.net/manual/en/language.types.boolean.php">More information here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.modeweb.co.uk/blog/2011/12/php-boolean-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ext Js Get Selected ComboBox Value</title>
		<link>http://www.modeweb.co.uk/blog/2011/12/ext-js-get-selected-combobox-value/</link>
		<comments>http://www.modeweb.co.uk/blog/2011/12/ext-js-get-selected-combobox-value/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 01:21:09 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Ext JS]]></category>

		<guid isPermaLink="false">http://www.modeweb.co.uk/blog/?p=61</guid>
		<description><![CDATA[Small code snippet illustrating getting the selected value from an Ext Js ComboBox.
This example has been tested with Ext Js 4
var combo = Ext.create('Ext.form.field.ComboBox', {
&#160;&#160;...
&#160;&#160;listeners: {
&#160;&#160;&#160;'select':function(selected){ alert(selected.value); }
&#160;&#160;}
&#160;&#160;...
});

More information on ComboBox over at Sencha Web Site
]]></description>
			<content:encoded><![CDATA[<p>Small code snippet illustrating getting the selected value from an Ext Js ComboBox.</p>
<p>This example has been tested with Ext Js 4</p>
<pre>var combo = Ext.create('Ext.form.field.ComboBox', {
&nbsp;&nbsp;...
&nbsp;&nbsp;listeners: {
&nbsp;&nbsp;&nbsp;'select':function(selected){ alert(selected.value); }
&nbsp;&nbsp;}
&nbsp;&nbsp;...
});
</pre>
<p><a href="http://www.sencha.com/learn/combobox-faq/" target="_blank">More information on ComboBox over at Sencha Web Site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.modeweb.co.uk/blog/2011/12/ext-js-get-selected-combobox-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Node cannot be inserted at the specified point in the hierarchy</title>
		<link>http://www.modeweb.co.uk/blog/2011/12/node-cannot-be-inserted-at-the-specified-point-in-the-hierarchy/</link>
		<comments>http://www.modeweb.co.uk/blog/2011/12/node-cannot-be-inserted-at-the-specified-point-in-the-hierarchy/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 20:35:32 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[Ext JS]]></category>

		<guid isPermaLink="false">http://www.modeweb.co.uk/blog/?p=49</guid>
		<description><![CDATA[If you get the following error when developing with Ext JS 4:
&#8220;Node cannot be inserted at the specified point in the hierarchy&#8221;
Make sure your Panel IDs are unique.
In my case, I had 2 form panels both with the same ID that I was trying to render. 
]]></description>
			<content:encoded><![CDATA[<p>If you get the following error when developing with Ext JS 4:</p>
<p>&#8220;Node cannot be inserted at the specified point in the hierarchy&#8221;</p>
<p><strong>Make sure your Panel IDs are unique.</strong></p>
<p>In my case, I had 2 form panels both with the same ID that I was trying to render. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.modeweb.co.uk/blog/2011/12/node-cannot-be-inserted-at-the-specified-point-in-the-hierarchy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Humans.txt? Interesting</title>
		<link>http://www.modeweb.co.uk/blog/2011/11/humans-txt-interesting/</link>
		<comments>http://www.modeweb.co.uk/blog/2011/11/humans-txt-interesting/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 15:10:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.modeweb.co.uk/blog/?p=44</guid>
		<description><![CDATA[http://humanstxt.org/
An alternative to robots.txt&#8230;
]]></description>
			<content:encoded><![CDATA[<p>http://humanstxt.org/</p>
<p>An alternative to robots.txt&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.modeweb.co.uk/blog/2011/11/humans-txt-interesting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

