<?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>Blog for web development &#187; Labs</title>
	<atom:link href="http://nik.chankov.net/category/labs/feed/" rel="self" type="application/rss+xml" />
	<link>http://nik.chankov.net</link>
	<description>Technical weblog for articles and titorials related to web development.</description>
	<lastBuildDate>Sat, 27 Feb 2010 21:46:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problem with mysql_real_escape_string when Sanitize your data.</title>
		<link>http://nik.chankov.net/2010/02/28/problem-with-mysql_real_escape_string-when-sanitize-your-data/</link>
		<comments>http://nik.chankov.net/2010/02/28/problem-with-mysql_real_escape_string-when-sanitize-your-data/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 21:46:28 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[sanitize]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=1084</guid>
		<description><![CDATA[When building applications is always smart to check and clean the user input. This is a must when you building a website or public application.
I create always an instance of Sanitize class in my AppController and then using it in all of my controllers like this

&#60;?php
uses&#40;'Sanitize'&#41;;
class AppController extends Controller &#123;
&#160; &#160; function beforeFilter&#40;&#41;&#123;
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2010/02/28/problem-with-mysql_real_escape_string-when-sanitize-your-data/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Detecting if the cookies are enabled with PHP</title>
		<link>http://nik.chankov.net/2010/01/16/detecting-if-the-cookies-are-enabled-with-php/</link>
		<comments>http://nik.chankov.net/2010/01/16/detecting-if-the-cookies-are-enabled-with-php/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 14:03:41 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Cookies]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=1073</guid>
		<description><![CDATA[For my current project I need a detection if the cookies are enabled or not in the user&#8217;s browser.
The easiest way to do this is by using this code:
&#60;?php
setcookie&#40;'test', 1, time&#40;&#41;+3600&#41;;
if&#40;!isset&#40;$_GET&#91;'cookies'&#93;&#41;&#41;&#123;
&#160; &#160; header&#40;'Location:/info.php?cookies=true'&#41;;
&#125;
if&#40;count&#40;$_COOKIE&#41; &#62; 0&#41;&#123;
&#160; &#160; echo &#34;Cookies are yummy!&#34;;
&#125; else &#123;
&#160; &#160; echo &#34;You didn't bring any cookies here. We are hungry!&#34;;
&#125;
?&#62;
The CakePHP way [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2010/01/16/detecting-if-the-cookies-are-enabled-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to use aggregation SQL functions with CakePHP</title>
		<link>http://nik.chankov.net/2009/09/10/how-to-use-aggregation-sql-functions-with-cakephp/</link>
		<comments>http://nik.chankov.net/2009/09/10/how-to-use-aggregation-sql-functions-with-cakephp/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 18:34:46 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=953</guid>
		<description><![CDATA[Have you ever wondering how to find MAX, MIN or AVG of a database table column in CakePHP way? Well I haven&#8217;t since yesterday. The solution is quite simple and obvious.
Lets say you want to show the average views per post (in the example we have the views field in every post).
The SQL should be [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/09/10/how-to-use-aggregation-sql-functions-with-cakephp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linxspy.com &#8211; track your links</title>
		<link>http://nik.chankov.net/2009/07/17/linxspy-com-track-your-links/</link>
		<comments>http://nik.chankov.net/2009/07/17/linxspy-com-track-your-links/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 20:41:16 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[link exchange]]></category>
		<category><![CDATA[linxspy]]></category>
		<category><![CDATA[partner]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=912</guid>
		<description><![CDATA[Today I want to present you a small service which I wrote for a week /including the design/.  
I&#8217;ve wrote it, because few times I&#8217;ve exchanged some links with strangers and few weeks after this, my link was disappeared from their sites while their was on mine. It is a bit unfair isn&#8217;t it? [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/07/17/linxspy-com-track-your-links/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CakePHP ajaxed pagination and sort</title>
		<link>http://nik.chankov.net/2009/05/16/cakephp-ajaxed-pagination-and-sort/</link>
		<comments>http://nik.chankov.net/2009/05/16/cakephp-ajaxed-pagination-and-sort/#comments</comments>
		<pubDate>Sat, 16 May 2009 20:55:45 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Pagination]]></category>
		<category><![CDATA[Sort]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=884</guid>
		<description><![CDATA[Here I will describe how I did an Ajaxed pagination for one of my projects using jQuery and Livequery Plugin. Currently I am working on a huge project which, hopefully, will feed me with some ideas for blog posts and this is one of them  .  So:
1. Loading the javascript libs
Loading the jQuery [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/05/16/cakephp-ajaxed-pagination-and-sort/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Passing variables to all Models from the Controller &#8211; strict MVC way</title>
		<link>http://nik.chankov.net/2009/04/21/passing-variables-to-all-models-from-the-controller-strict-mvc-way/</link>
		<comments>http://nik.chankov.net/2009/04/21/passing-variables-to-all-models-from-the-controller-strict-mvc-way/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 18:49:20 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Behaviour]]></category>
		<category><![CDATA[Soft delete]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=860</guid>
		<description><![CDATA[It&#8217;s really easy to find inspiration when you developing on CakePHP. For the current project I need to create global (for all models) behavior which stores creator and modifier as well as deleter and deleted (for soft-delete).
What are the requirements
1. For every table (or at least the most of them) there are fields 6 fields: [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2009/04/21/passing-variables-to-all-models-from-the-controller-strict-mvc-way/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Autoload your javascript and css in CakePHP</title>
		<link>http://nik.chankov.net/2008/12/20/autoload-your-javascript-and-css-in-cakephp/</link>
		<comments>http://nik.chankov.net/2008/12/20/autoload-your-javascript-and-css-in-cakephp/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 20:16:34 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Autoload]]></category>
		<category><![CDATA[Helper]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=655</guid>
		<description><![CDATA[Have you ever wanted to have all your css or javascripts files loaded automatically once they are on place under /webroot/js and webroot/css folders? Well this is the solution.
What is all about
I&#8217;ve build a quick helper which will include all files under the js/ and css/ directories. So once the javascripts and css are there, [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2008/12/20/autoload-your-javascript-and-css-in-cakephp/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Careful with JavaScript includes</title>
		<link>http://nik.chankov.net/2008/12/11/careful-with-javascript-includes/</link>
		<comments>http://nik.chankov.net/2008/12/11/careful-with-javascript-includes/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 09:00:55 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=638</guid>
		<description><![CDATA[Ok, this is not a code snippet article. It&#8217;s just an experience which you probably already met, but it was nightmare to find and it took me 1/2 a day to fix this &#8220;stupid&#8221; bug.
So what is the case?
Working on a project including some advanced JavaScript and Ajax techniques my coworker Milen noticed that the [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2008/12/11/careful-with-javascript-includes/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>My first Wordpress plugin</title>
		<link>http://nik.chankov.net/2008/11/28/my-first-wordpress-plugin/</link>
		<comments>http://nik.chankov.net/2008/11/28/my-first-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 16:33:43 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[Autocomplete]]></category>
		<category><![CDATA[Autocompleter]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=630</guid>
		<description><![CDATA[Hey,
I am very proud to present you, my first plugin for Wordpress platform &#8211; Autocompleter.
The plugin adding autocomplete functionality for the search input field of your blog. The values are the tags and categories existing in the blog and this way you will help your visitors to find easily the proper information in your blog.
My [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2008/11/28/my-first-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Fixing Dead Centre approach with jQuery</title>
		<link>http://nik.chankov.net/2008/10/17/using-dead-centre-template/</link>
		<comments>http://nik.chankov.net/2008/10/17/using-dead-centre-template/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 20:10:56 +0000</pubDate>
		<dc:creator>Nik Chankov</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Dead Centre]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[lib]]></category>

		<guid isPermaLink="false">http://nik.chankov.net/?p=168</guid>
		<description><![CDATA[I was worked on a centred project design of a website. When I met such requirement I&#8217;ve always used Dead Centre approach.
Unfortunately I&#8217;ve noticed that when the content is larger than the screen the top-left corner is not visible. In that current project the logo of the site was exactly on that place, so it&#8217;s [...]]]></description>
		<wfw:commentRss>http://nik.chankov.net/2008/10/17/using-dead-centre-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
