<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Klevo blog</title>
	<link>http://www.klevo.sk</link>
	<description>Freelance web developer</description>
	<pubDate>Tue, 21 Jul 2009 09:29:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>I am still alive</title>
		<link>http://www.klevo.sk/site/i-am-still-alive/</link>
		<comments>http://www.klevo.sk/site/i-am-still-alive/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 09:26:38 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/site/i-am-still-alive/</guid>
		<description><![CDATA[I can&#8217;t believe the last post here is from May 2008. That&#8217;s quite a while.
So what have I been doing all the time? First off I got my first open source project going - Wildflower. It&#8217;s my vision of what a web CMS should look like, although that vision has and is changing along the [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t believe the last post here is from May 2008. That&#8217;s quite a while.</p>
<p>So what have I been doing all the time? First off I got my first open source project going - <a href="http://wf.klevo.sk" title="Wildflower - A CakePHP CMS">Wildflower</a>. It&#8217;s my vision of what a web CMS should look like, although that vision has and is changing along the way. I am really happy how it turned out, especially the responses from the community. People build sites with it and I really enjoy comments saying that it&#8217;s the most rapid to develop with CMS.</p>
<p>Of course, I&#8217;ve been busy with client work. Done some nice projects like <a href="http://www.aclevertwist.com/">Clever Twist</a>, <a href="http://sunmaidsite.com/">SunMaid Site</a>, <a href="http://picturewindow.tv/">Picture Window Productions</a>. All powered by Wildflower. I&#8217;ve also fucked some things up and learned how to really disappoint a client. These are as worthy lessons as the successes in my book.</p>
<p>That&#8217;s it for now, time to cook some launch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/site/i-am-still-alive/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Zend PDT on 64bit (x64) Linux systems how-to</title>
		<link>http://www.klevo.sk/misc/zend-pdt-on-64bit-x64-linux-systems-how-to/</link>
		<comments>http://www.klevo.sk/misc/zend-pdt-on-64bit-x64-linux-systems-how-to/#comments</comments>
		<pubDate>Tue, 27 May 2008 08:17:31 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[Miscellanous]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/misc/zend-pdt-on-64bit-x64-linux-systems-how-to/</guid>
		<description><![CDATA[I am amazed with Hardy Herdon. It&#8217;s the best OS I&#8217;ve ever used. The only thing that was bugging me is that I was not able to install x64 version of Zend PDT. In my opinion it&#8217;s the best free PHP IDE around. The solution is very easy trough.

Download Eclipse IDE for Java EE Developers [...]]]></description>
			<content:encoded><![CDATA[<p>I am amazed with <a href="http://www.ubuntu.com/">Hardy Herdon</a>. It&#8217;s the best OS I&#8217;ve ever used. The only thing that was bugging me is that I was not able to install x64 version of <a href="http://www.zend.com/en/community/pdt">Zend PDT</a>. In my opinion it&#8217;s the best free PHP IDE around. The solution is very easy trough.</p>
<ol>
<li>Download <strong>Eclipse IDE for Java EE Developers</strong> from <a href="http://www.eclipse.org/downloads/">Eclipse downloads</a>. It includes all the plugins PDT needs. You&#8217;ll be missing some with the vanilla Eclipse.</li>
<li>Run it, and go to <em>Help -&gt; Software Updates -&gt; Find and Install&#8230;</em> Click <em>Next</em> and add a <em>new remote site</em>. Name: PDT, URL:  http://downloads.zend.com/pdt</li>
<li>Thick the new remote site and click Finish. When asked to choose which plugins to install, be sure to deselect the debugger. It&#8217;s not available for 64bit systems as far as I know and you&#8217;ll get an error proceeding with it.</li>
<li>When you finish the process and restart Eclipse you&#8217;ve got it working.</li>
</ol>
<p>This guide assumes you have 64bit Java working on your system. On Ubuntu it&#8217;s just a matter of installing a package in Synaptic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/misc/zend-pdt-on-64bit-x64-linux-systems-how-to/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CakePHP and some web hosts</title>
		<link>http://www.klevo.sk/cakephp/cakephp-and-some-web-hosts/</link>
		<comments>http://www.klevo.sk/cakephp/cakephp-and-some-web-hosts/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 08:00:04 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/cakephp/cakephp-and-some-web-hosts/</guid>
		<description><![CDATA[CakePHP is quite a mature framework. Yet I often run into troubles with some more exotic hosting companies.
Yesterday I was deploying a site hosted at 1 &#38; 1 Internet Ltd. For a few hours I was trying everything but still I got the same 500 internal error. Finally I traced the problem to mod_rewrite. It [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cakephp.org">CakePHP</a> is quite a mature framework. Yet I often run into troubles with some more exotic hosting companies.</p>
<p>Yesterday I was deploying a site hosted at <a href="http://1and1.co.uk">1 &amp; 1 Internet Ltd</a>. For a few hours I was trying everything but still I got the same 500 internal error. Finally I traced the problem to mod_rewrite. It turned out that I need to add <em>RewriteBase</em> to <strong>all</strong> Cake&#8217;s .htaccess files. So if you&#8217;re deploying your lovely new site to 1 &amp; 1 your root .htaccess file might look like this:<br />
<code><br />
# Turn on PHP 5<br />
AddType x-mapp-php5 .php<br />
RewriteEngine on<br />
RewriteBase /<br />
RewriteRule    ^$ app/webroot/    [L]<br />
RewriteRule    (.*) app/webroot/$1 [L]</code></p>
<h3>mysqli_connect and socket support</h3>
<p>Some web hosts use sockets for MySQL connection. Socket is the 6th parameter in <a href="http://us.php.net/mysqli_connect">mysqli_connect</a> (or mysql_connect). Cake does not know about this 6th parameter. I <a href="http://trac.cakephp.org">submitted a ticked</a> some time ago, but it was closed and the change not implemented.</p>
<p>The solution is however very simple. Depending on what driver you use, edit file <em>dbo_mysqli.php</em> or (dbo_mysql) in <em>cake/libs/model/datasources/dbo/</em> and on line 94 (CakePHP 1.2 rev 6311) add the 6th parameter to the <em>mysqli_connect</em> function. Don&#8217;t forget to add the default socket value (I use <em>null</em>) to the <em>$_baseConfig </em>private variable of the <em>DboMysqli</em> class you&#8217;re just editing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/cakephp/cakephp-and-some-web-hosts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>JavaScript&#8217;s setTimeout and how to use it with your methods</title>
		<link>http://www.klevo.sk/javascript/javascripts-settimeout-and-how-to-use-it-with-your-methods/</link>
		<comments>http://www.klevo.sk/javascript/javascripts-settimeout-and-how-to-use-it-with-your-methods/#comments</comments>
		<pubDate>Thu, 14 Dec 2006 20:50:12 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/javascript/javascripts-settimeout-and-how-to-use-it-with-your-methods/</guid>
		<description><![CDATA[Update: My solution does not work in IE. Look at this article for comprehensive info.
While working on Chatcreator&#8217;s Chatbox I run into problems with JavaScript&#8217;s setTimeout function. I would like to write down what I learned. It may save you some time, next time you&#8217;ll need to use this function.
Shortly about setTimeout
setTimeout is a simple [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: My solution does not work in IE. Look <a href="http://alexle.net/archives/169">at this article</a> for comprehensive info.</p>
<p>While working on Chatcreator&#8217;s Chatbox I run into problems with JavaScript&#8217;s setTimeout function. I would like to write down what I learned. It may save you some time, next time you&#8217;ll need to use this function.</p>
<h3>Shortly about setTimeout</h3>
<p>setTimeout is a simple JavaScript function used to repeatedly call some function after a specified amount of time. It takes two required parameters and an unspecified number of optional ones. Like this:</p>
<p><code>setTimeout(functionToCall, time, param1, param2, ....);</code><em>functionToCall</em> is the name of the function which will be called after <em>time</em> millisecond. You either use reference like in the example above or a string representing a call to the function:</p>
<p><code>setTimeout('functionToCall()', time, ...)</code>The optional parameters can be used to pass any number of parameters to our <em>functionToCall</em>.</p>
<h3>Where&#8217;s the catch?</h3>
<p>Everything works as expected until you try to call a method inside your &#8216;class&#8217; (there are no real classes in JavaScript). Something like this won&#8217;t work:</p>
<p><code>setTimeout(this.methodToCall, time);</code>Passing a string representation instead of reference doesn&#8217;t work either.</p>
<h3>The solution</h3>
<p>I found the solution after a while searching in <a href="http://www.google.com/codesearch">Google Code Search</a>. The above example needs to be rewritten like this:</p>
<p><code>setTimeout(function(thisObj) { thisObj.methodToCall(); }, time, this);</code>Here we are passing reference to our class as an optional parameter of the <em>setTimeout</em> function. In the called function we catch it and suddenly we can use it to call our method. I have no idea why such a simple thing needs to be so complicated but it only demonstrates that you need to learn a few tricks when you want to do real OOP in JavaScript.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/javascript/javascripts-settimeout-and-how-to-use-it-with-your-methods/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Update</title>
		<link>http://www.klevo.sk/misc/update/</link>
		<comments>http://www.klevo.sk/misc/update/#comments</comments>
		<pubDate>Fri, 03 Nov 2006 09:56:34 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[Miscellanous]]></category>

		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/misc/update/</guid>
		<description><![CDATA[When you leave your blog not-so-very-updated for some time you&#8217;ll start to notice some bad things. Traffic slowly declines and the more you don&#8217;t post the lazier you are to write something new. But I don&#8217;t want to talk about that.
I made quite a big decision lately – I left the college (willingly). My main [...]]]></description>
			<content:encoded><![CDATA[<p>When you leave your blog not-so-very-updated for some time you&#8217;ll start to notice some bad things. Traffic slowly declines and the more you don&#8217;t post the lazier you are to write something new. But I don&#8217;t want to talk about that.</p>
<p>I made quite a big decision lately – I left the college (willingly). My main reason was that I was, with time, more and more interested and occupied by my freelance career. It escalated to such a point that I had to make a decision. Stay in the school or left and fully concentrate on my business. I chose the later. There was no reason for me to stay – I was simply bored in school. There was very little useful knowledge that I was gaining there. Our programming classes, the only ones that I enjoyed at least a bit, became a joke in the 3rd semester. But I don&#8217;t regret my time spent there. I met a lot of great people and learned something too.</p>
<p>I am quite excited. Finally I can concentrate on things that I really enjoy doing. I am confident that this is the right way for me to go, but, well, time will tell.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/misc/update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CakePHP and WebBaker</title>
		<link>http://www.klevo.sk/php/cakephp-and-webbaker/</link>
		<comments>http://www.klevo.sk/php/cakephp-and-webbaker/#comments</comments>
		<pubDate>Thu, 28 Sep 2006 07:35:59 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[CakePHP]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/misc/cakephp-and-webbaker/</guid>
		<description><![CDATA[Recently I started using this wonderful PHP framework called CakePHP. It really moves the whole web development process to another level. It has got the MVC pattern, great community, good documentation, lots of people writing about it and there is the WebBaker. WebBaker is a PHP script that let’s you easily create all the files [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I started using this wonderful PHP framework called <a href="http://www.cakephp.org/">CakePHP</a>. It really moves the whole web development process to another level. It has got the MVC pattern, great community, good documentation, lots of people writing about it and there is the <a href="http://nio.infor96.com/webbaker/">WebBaker</a>. WebBaker is a PHP script that let’s you easily create all the files you need for your MVC pattern (model, controller, views). This saves you a lot of precious minutes.</p>
<p><a rel="lightbox" title="WebBaker in action!" href="http://www.klevo.sk/uploads/webbaker.gif"><img alt="Webbaker in action" id="image46" src="http://www.klevo.sk/uploads/webbaker.thumbnail.gif" /></a> The CakePHP and WebBaker combination is deadly. You can have a functional element in your site like in 1 minute. All you need to do is create a table in the database and use WebBaker to generate appropriate files. At this point when you have written exactly 0 lines of code you have a fully functional interface where you can list, view, edit, add and delete items from database. This is possible due to the excellent <a href="http://wiki.cakephp.org/tutorials:scaffolding_a_blog">scaffold functionality</a> build in Cake. Then you can start writing your own code and smoothly replace the scaffolds. Try it, you’ll never want to go back.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/php/cakephp-and-webbaker/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Trying out Ubuntu</title>
		<link>http://www.klevo.sk/misc/trying-out-ubuntu/</link>
		<comments>http://www.klevo.sk/misc/trying-out-ubuntu/#comments</comments>
		<pubDate>Tue, 19 Sep 2006 20:14:51 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[Miscellanous]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/misc/trying-out-ubuntu/</guid>
		<description><![CDATA[I am happily moved to my new home for more then two weeks now. I was both lazy and occupied to write something. But right now I have a good reason. I bought a new hard drive and guess what? I installed Ubuntu on it to dual boot with Windows. It was not that new [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span lang="EN-US">I am happily moved to my new home for more then two weeks now. I was both lazy and occupied to write something. But right now I have a good reason. I bought a new hard drive and guess what? I installed <a href="http://www.ubuntu.com/">Ubuntu</a> on it to dual boot with Windows. It was not that new to me, because I was playing with Ubuntu before but that changed when I installed <a href="http://en.wikipedia.org/wiki/Xgl">XGL</a> and <a href="http://en.wikipedia.org/wiki/Compiz">Compiz</a>. I was simply amazed. In the area of 3D accelerated user interface Compiz can not be compared to XP not even Vista. Take a look at <a href="http://digg.com/linux_unix/XGL_Compiz_Video">this video</a> but you really have to experience it first hand to see the potential. One thing however still keeps me from using Ubuntu for my everyday work. Font displaying. Clear Type is so much better that everything that can be set up in Ubuntu (yes, I tried <a href="http://ubuntuforums.org/showthread.php?t=20976">various guides</a> how to make this better). This really is important to me because texts are the thing I look most at when behind a computer and they have to be as smooth as possible. So I’ll probably stay with Windows for some more time, but I feel it won’t be for long.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/misc/trying-out-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Moving to a new flat</title>
		<link>http://www.klevo.sk/misc/moving-to-a-new-flat/</link>
		<comments>http://www.klevo.sk/misc/moving-to-a-new-flat/#comments</comments>
		<pubDate>Mon, 04 Sep 2006 20:41:58 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[Miscellanous]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/misc/moving-to-a-new-flat/</guid>
		<description><![CDATA[The summer holidays officially ended for me. Tomorrow I am moving to a new flat in Bratislava where I study. The school is starting around the 18th of September but there are some things that needs to be done there before. I will be offline for a few days, until my provider connects me. This [...]]]></description>
			<content:encoded><![CDATA[<p>The summer holidays officially ended for me. Tomorrow I am moving to a new flat in <a href="http://www.bratislava.sk/en/">Bratislava</a> where I study. The school is starting around the 18th of September but there are some things that needs to be done there before. I will be offline for a <em>few days</em>, until my provider connects me. This will be terrible but I survived two weeks on vacation during the holidays without the net so I know how it is like <img src='http://www.klevo.sk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I have some articles started and I hope I’ll finish them during this time. Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/misc/moving-to-a-new-flat/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Breaking the 200+ unique visitors a day!</title>
		<link>http://www.klevo.sk/site/breaking-the-200-unique-visitors-a-day/</link>
		<comments>http://www.klevo.sk/site/breaking-the-200-unique-visitors-a-day/#comments</comments>
		<pubDate>Thu, 31 Aug 2006 14:04:58 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/misc/breaking-the-200-unique-visitors-a-day/</guid>
		<description><![CDATA[ On Wednesday I had 233 unique visitors! It’s a great feeling. That’s the best number I have got in my short blogging career so far. It’s nothing breathtaking but it really motivates me to write more quality content. Not that the CSS Debugging Tips (posting this on dzone caused it) was some masterpiece, but [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="233 unique visitors" id="image40" src="http://www.klevo.sk/uploads/233-unique.png" /> On Wednesday I had 233 unique visitors! It’s a great feeling. That’s the best number I have got in my short blogging career so far. It’s nothing breathtaking but it really motivates me to write more quality content. Not that the <a href="http://www.klevo.sk/html-css/css-debugging-tips/">CSS Debugging Tips</a> (posting this on <a href="http://www.dzone.com/rsslinks/css_debugging_tips.html">dzone</a> caused it) was some masterpiece, but there are surely people that profit from reading it. So thanks everybody and off I go to write something worthy <img src='http://www.klevo.sk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/site/breaking-the-200-unique-visitors-a-day/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Books I read recently</title>
		<link>http://www.klevo.sk/misc/books-i-read-recently/</link>
		<comments>http://www.klevo.sk/misc/books-i-read-recently/#comments</comments>
		<pubDate>Wed, 30 Aug 2006 10:21:13 +0000</pubDate>
		<dc:creator>klevo</dc:creator>
		
		<category><![CDATA[Miscellanous]]></category>

		<guid isPermaLink="false">http://www.klevo.sk/misc/books-i-read-recently/</guid>
		<description><![CDATA[I would like to share some great books I have read recently or I am reading right now. If you have something to do with the subjects mentioned here I definitely recommend these.
PHP 5 Power Programming
 You think you know PHP? Maybe after reading this book you’ll change your mind. This is an extensive journey [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to share some great books I have read recently or I am reading right now. If you have something to do with the subjects mentioned here I definitely recommend these.</p>
<h3>PHP 5 Power Programming</h3>
<p><a href="http://www.phptr.com/bookstore/product.asp?isbn=013147149X&#038;rl=1"><img id="image36" alt="PHP 5 Power Programming" src="http://www.klevo.sk/uploads/php5-power-programming.thumbnail.jpeg" /></a> You think you know PHP? Maybe after reading this book you’ll change your mind. This is an extensive journey trough PHP 5 written by the people who know it best. There are a lot of useful code examples and the whole thing is quite amusing to read. The book <a href="http://andigutmans.blogspot.com/2006/08/php-5-power-programming-passes-1.html">passes 1 Million downloads</a> so far and they estimate that 1 in 5 PHP developers have this book. Not convinced yet?</p>
<h3>Code Complete (second edition)</h3>
<p><a href="http://www.cc2e.com/"><img alt="Code Complete" id="image38" src="http://www.klevo.sk/uploads/cc2e.thumbnail.gif" /></a> Everyone who ever touched some production code should have this one. This book covers everything from application design to naming conventions. <cite>Every page offers pragmatic insight gained through years of effective coding experience and continues to be the principal handbook of software construction success for its practitioners. Project leaders should read this book cover to cover, and then purchase a copy for each of their direct reports.</cite> You probably have at least heard of it. This is a must.</p>
<h3>The Zen of CSS Design</h3>
<p><a href="http://www.peachpit.com/bookstore/product.asp?isbn=0321303474&#038;rl=1"><img alt="Zen of CSS Design" id="image39" src="http://www.klevo.sk/uploads/zen-of-css-design.thumbnail.jpeg" /></a> Another bestseller. For everyone who does web design. The last chapter really nails it. The CSS development of 5 designs from <a href="http://www.csszengarden.com/">CSS Zen Garden</a> is explained here step by step. I learned a lot from this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klevo.sk/misc/books-i-read-recently/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
