<?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>Creo</title>
	<atom:link href="http://creolab.hr/feed/" rel="self" type="application/rss+xml" />
	<link>http://creolab.hr</link>
	<description>Portfolio and digital playground of Boris Strahija</description>
	<lastBuildDate>Fri, 11 May 2012 09:12:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta4-20766</generator>
		<item>
		<title>Switching from Coda to Sublime Text 2</title>
		<link>http://creolab.hr/2012/02/switching-from-coda-to-sublime-text-2/</link>
		<comments>http://creolab.hr/2012/02/switching-from-coda-to-sublime-text-2/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 12:04:21 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[coda]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[sublime text]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=151</guid>
		<description><![CDATA[<img width="150" height="148" src="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-25-at-00.13-150x148.png" class="attachment-thumbnail wp-post-image" alt="Switching from Coda to Sublime Text 2" title="Switching from Coda to Sublime Text 2" style="float:right;" />Recently I haven&#8217;t been to happy with my code editor, Coda. The clips (snippets) are way to limited, it&#8217;s very slow when opening larger CSS files, the Sites feature looks nice, but is also very slow when you have a whole bunch of sites in there. Don&#8217;t get me wrong, it&#8217;s a great editor, and [...]]]></description>
			<content:encoded><![CDATA[<img width="150" height="148" src="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-25-at-00.13-150x148.png" class="attachment-thumbnail wp-post-image" alt="Switching from Coda to Sublime Text 2" title="Switching from Coda to Sublime Text 2" style="float:right;" /><p>Recently I haven&#8217;t been to happy with my code editor, Coda. The clips (snippets) are way to limited, it&#8217;s very slow when opening larger CSS files, the Sites feature looks nice, but is also very slow when you have a whole bunch of sites in there. Don&#8217;t get me wrong, it&#8217;s a great editor, and it has some amazing features, but I feel it lacks where it matters most. Since I&#8217;m mainly a PHP developer, the article is written from my perspective, as I do work in PHP, HTML, CSS, LESS and JavaScript.</p>
<p>In the last 2 weeks I&#8217;ve been using mostly Sublime Text alongside Coda, because I thought this would be the best way to compare the 2 editors. I could have thrown another editor into the mix, but I don&#8217;t think any of the ones I tried don&#8217;t come close to ST2. Some editors I tried to switch to over the last couple of months are Espresso, Komodo and TextMate. So here&#8217;s a couple of word about them:</p>
<p><strong>Espresso</strong> is the closest to Coda. It does some things better, and some not, wasn&#8217;t really impressed with it.</p>
<p><strong>Komodo</strong> is an IDE (also has a free editor-only version), and it was actually pretty good, but the UI is just awful, and the setting are overwhelming.</p>
<p><strong>TextMate</strong> is a great editor, but it has some problems with speed when opening large files, and it hasn&#8217;t been updated for a long time. A public beta of TextMate 2 was released recently, but it&#8217;s still to early to tell how it&#8217;s going to stack up to Sublime Text. I actually used TM a couple of years ago, and Sublime Text feels like TextMate, but snappier and with a ton of added features. And what I miss most in TextMate is the ability to perform quick file uploads, like in Coda. Sublime Text has this through a package, but more about this below.</p>
<h2>Coda</h2>
<p>I&#8217;ve been using Coda almost exclusively for the last 2 years. I love the ability to <strong>quickly publish files to a server</strong>. I know a lot of people are against this kind of workflow, for when uploading to a test/dev server this is a real timesaver. For everything else I started using Beanstalk and their deployment system. Or sometimes a &#8220;git pull origin master&#8221; will do just fine <img src='http://creolab.hr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The built in <strong>Books tab</strong> is also very nice, but I haven&#8217;t been using that much. I find myself most of the time just googling stuff.</p>
<p>Same thing with the <strong>built in terminal</strong>, not using it at all, feels somewhat slow. TotalTerminal is a better way to go.</p>
<p>The <strong>preview tab</strong> is useless to me, I don&#8217;t remember that I used it at all. I know some people like having a preview directly in the editor, I&#8217;m just not one of them.</p>
<p>Through the years I got a nice collection of <strong>Clips</strong> setup, but they are inferior to the Snippets in Sublime Text. What I like most about the Clips is that they are extremely easy to set up and categorize, but the lack of multiple placeholders is a big disadvantage. Snippets management in Sublime Text is a little bit clumsy, since you have to edit XML files, and manually save them, and add the extension <em>.sublime-snippet</em> every time. I also wish I could add more snippets to a single XML file.</p>
<p>The <strong>settings</strong> in Coda are more user friendly, since they are like a normal settings dialog you&#8217;re used to in other apps. Sublime Text takes a different approach here, JSON files. I personally like it this way, but some users may prefer the standard settings dialog of Coda. Sublime Text is much more flexible this way in my opinion.</p>
<p>The <strong>UI</strong> in Coda is great. It&#8217;s been one of my favorite apps in terms of looks. Sublime Text doesn&#8217;t really have an UI, it gets out of the way, and focuses on the editor. One thing is bothering me though in Sublime Text, the sidebar. It&#8217;s extremely difficult to navigate through the files via the sidebar, since there are no icons. It&#8217;s all just text, so it&#8217; hard to distinguish let&#8217;s say PHP files from CSS files. This isn&#8217;t that big a disadvantage since there are other ways to finding files in projects.</p>
<p>The last one is probably the least important thing, but Coda has a beautiful dock icon, whereas Sublime Text had a horrible icon up until recently. It&#8217;s better now, but still not as elegant as Coda.</p>
<h2>Sublime Text 2</h2>
<p>There&#8217;s way to much good stuff in here to write it all down, so I&#8217;m just gonna mention my favorite features. And keep in mind that Sublime Text 2 is still in beta, but stable enough in my opinion. I didn&#8217;t experience any crashes or weird bugs until now.</p>
<h4>Speed</h4>
<p><strong></strong>It&#8217;s just amazing how fast this app is. Even with extremely big files and a bunch of packages installed, I haven&#8217;t had any problems. Everything just feels so much more responsive.</p>
<h4>Snippets and bundles</h4>
<p><strong></strong>if you used TextMate or E Text Editor you now about how snippets work. You can use TextMate bundles so that&#8217;s a big plus. To manage your snippets you have to edit XML files stored in <em>~/Library/Application Support/Sublime Text 2/Packages/User</em>. You can also create new snippets directly from Sublime Text, which present you with a template for a new snippet. You have to save the snippet XML file, and give it the extension <em>.sublime-snippet</em> which I think should be done through some kind of snippet manager like in TextMate. This would make is much more user friendly.</p>
<h4>File navigation</h4>
<p><a href="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-25-at-00.16.png"><img class="alignleft size-thumbnail wp-image-183" title="Screenshot 2012-02-25 at 00.16" src="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-25-at-00.16-150x150.png" alt="" width="150" height="150" /></a></p>
<p>As I mentioned before, the navigation in the sidebar isn&#8217;t very good because of the lack of file/folder icons. VCS indicators would also be a nice touch, but I guess that would degrade the performance, or I may be wrong. Since I didn&#8217;t like the sidebar, I had to find an alternative, and it turns out there&#8217;s the shortcut <strong>Command+P</strong> for quickly finding a file. It&#8217;s similar to Ctrl+Q in Coda, but works better and faster. You don&#8217;t even need to type in the exact name of the file, so if I want to open the file <em>_post_types.php</em> in a WordPress project I hit <strong>Command+P </strong>or <strong>Command+T</strong>, enter <strong>pty</strong>, and there it is.</p>
<h4>Method/variable navigation</h4>
<p><a href="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-25-at-00.19.png"><img class="alignright size-thumbnail wp-image-187" title="Screenshot 2012-02-25 at 00.19" src="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-25-at-00.19-150x150.png" alt="" width="150" height="150" /></a>When editing a class, I just hit <strong>Command+R</strong>, and start typing the name of the method I&#8217;m looking for. This is really useful, and I think better than Coda&#8217;s code navigator. One useful thing I noticed is that when you press Command+R, remove the @ sign, and enter the # sign, you can search through variables. I found this way of navigation is faster, but I&#8217;m still getting used to it.</p>
<h4>Publishing to server</h4>
<p><a href="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-25-at-00.11.png"><img class="alignleft size-thumbnail wp-image-175" title="Screenshot 2012-02-25 at 00.11" src="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-25-at-00.11-150x150.png" alt="" width="150" height="150" /></a>This one I used in Coda a lot when developing. Coda has the convenient shortcut <strong>Command+Alt+P</strong> to publish the selected file in the sidebar to the associated server in the project. Coda also keeps track of all the changed files so you can publish them all at once. One of my biggest concerns was if something like this was possible in Sublime Text, since it&#8217;s a real time saver. It turns out there&#8217;s a package for that called <a href="http://wbond.net/sublime_packages/sftp">Sublime SFTP</a>. It&#8217;s not free, but well worth the 16$. I didn&#8217;t like the default keyboard shortcuts so I changed them, and now I have my shortcut from Coda (<strong>Command+Alt+P</strong>) back <img src='http://creolab.hr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The SFTP package has also some nice sync features, file monitoring, and it&#8217;s really easy to setup a server, just right click on a folder and map to a remote folder. This creates a JSON file called <em>sftp-config.json</em>. Fill out the data and you&#8217;re good to go. I prefer using public/private keys for connection, since the password would be stored here as plain text. Some kind of Keychain support would be nice here.</p>
<h4>Color schemes/themes</h4>
<p><a href="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-23-at-12.53.png"><img class="alignright size-thumbnail wp-image-166" title="Screenshot 2012-02-23 at 12.53" src="http://creolab.hr/wp-content/uploads/2012/02/Screenshot-2012-02-23-at-12.53-150x150.png" alt="" width="150" height="150" /></a>In Coda I enjoyed a slightly modified <a href="https://github.com/jbergantine/Specials-Board">Special Boards</a> color scheme. Since it&#8217;s not available for TextMate/Sublime Text and I currently don&#8217;t have time to recreate it, I found the next best thing for my needs, the <a href="https://github.com/ChrisKempson/Tomorrow-Theme">Tomorrow Night</a> scheme (<a href="http://d.pr/Gbzu">preview</a>). The default Sublime Text theme is ok, but when you install <a href="https://github.com/buymeasoda/soda-theme">Soda</a> (especially the dark version) it really starts to look nice.</p>
<h4>Multiple cursors</h4>
<p><strong></strong>Now this one I like a lot. You basically put the cursor anywhere inside the code, hold <strong>Command+Alt</strong> and start clicking to put another cursor into the document. Now when you start typing, you edit the code in all the selected places. Coda had something similar with the Alt selection, but Sublime&#8217;s version is more powerful.</p>
<h4>Selecting words</h4>
<p>When you select a word in a file it&#8217;s not only highlighted in the editor but also in the minimap. Very nice.</p>
<h2>Packages</h2>
<p>I could go on but the best thing would be to try it out for yourself. I&#8217;ll probably update this post as I find new things, for now though I leave you with a list of my installed packages that I use daily:</p>
<ol>
<li><strong><a href="http://wbond.net/sublime_packages/package_control">Package Control</a></strong> &#8211; you&#8217;ll want to install this one first since it makes installing other packages really easy</li>
<li><strong><a href="https://github.com/kemayo/sublime-text-2-git">Git</a></strong> &#8211; I mostly use Git through the command line, but it&#8217;s nice to have this in the editor also</li>
<li><strong><a href="https://github.com/titoBouzout/komodo-komodin-git">SidebarGit</a></strong> &#8211; Git commands from the sidebar</li>
<li><strong><a href="https://github.com/facelessuser/BracketHighlighter">BracketHighlighter</a></strong> &#8211; highlighting your brackets in many different ways</li>
<li><strong>ColorPicker</strong> &#8211; the name says it all</li>
<li><strong><a href="https://github.com/spadgos/sublime-jsdocs">DocBlockr</a></strong> &#8211; adding comments to classes and methods</li>
<li><strong><a href="http://github.com/kemayo/sublime-text-2-goto-documentation">GotoDocumentation</a></strong> &#8211; jump to documentation for selected word</li>
<li><strong><a href="http://wbond.net/sublime_packages/sftp">SFTP</a></strong> &#8211; uploading/downloading files to remote servers</li>
<li><strong><a href="http://wbond.net/sublime_packages/alignment">Alignment</a></strong> &#8211; aligning multiline selections, like a list of variables</li>
<li><strong><a href="https://github.com/titoBouzout/SideBarEnhancements">SidebarEnhancements</a></strong> &#8211; extra functionality in your sidebar</li>
<li><strong><a href="http://github.com/Kronuz/SublimeCodeIntel">CodeIntel</a></strong> &#8211; better autocomplete</li>
<li><strong><a href="http://www.sublimetext.com/forum/viewtopic.php?f=2&amp;t=580&amp;p=10654#p10654">ZenCoding</a></strong> &#8211; I think you all know this one</li>
<li><strong><a href="http://www.sublimetext.com/forum/viewtopic.php?f=2&amp;t=580&amp;p=10654#p10654">Soda Theme</a></strong> &#8211; last but definitely not least, this one makes the entire look of the editor more enjoyable</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2012/02/switching-from-coda-to-sublime-text-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Toyota Bačić</title>
		<link>http://creolab.hr/2011/08/toyota-bacic/</link>
		<comments>http://creolab.hr/2011/08/toyota-bacic/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:34:16 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Spotlight]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[krustr]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=85</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-09-at-13.32.12-150x150.png" class="attachment-thumbnail wp-post-image" alt="Toyota Bačić" title="Toyota Bačić" style="float:right;" />Description: Web site for car dealership. Work: HTML/CSS, Krustr° Content Framework Status: online]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-09-at-13.32.12-150x150.png" class="attachment-thumbnail wp-post-image" alt="Toyota Bačić" title="Toyota Bačić" style="float:right;" /><p><strong>Description:</strong> Web site for car dealership.</p>
<p><strong>Work:</strong> HTML/CSS, Krustr° Content Framework</p>
<p><strong>Status: </strong><a title="Toyota Bačić" href="http://bacic.hr/" target="_blank">online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2011/08/toyota-bacic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mudra Kupovina</title>
		<link>http://creolab.hr/2011/07/mudra-kupovina/</link>
		<comments>http://creolab.hr/2011/07/mudra-kupovina/#comments</comments>
		<pubDate>Sun, 03 Jul 2011 21:41:14 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[krustr]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=54</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-03-at-23.39.59-150x150.png" class="attachment-thumbnail wp-post-image" alt="Mudra Kupovina" title="Mudra Kupovina" style="float:right;" />Description: Daily deal site Work: HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system Status: offline]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-03-at-23.39.59-150x150.png" class="attachment-thumbnail wp-post-image" alt="Mudra Kupovina" title="Mudra Kupovina" style="float:right;" /><p><strong>Description:</strong> Daily deal site</p>
<p><strong>Work:</strong> HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system</p>
<p><strong>Status:</strong> offline</p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2011/07/mudra-kupovina/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RedBean + CodeIgniter, Take 2</title>
		<link>http://creolab.hr/2011/02/redbean-codeigniter-take-2/</link>
		<comments>http://creolab.hr/2011/02/redbean-codeigniter-take-2/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 21:56:26 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=60</guid>
		<description><![CDATA[So I recently wanted to use the newest version of RedBean ORM (1.3beta) with the latest CodeIgniter Reactor version. The whole integration process is even simpler than before, so here goes: Download RedBean, copy &#8220;rb.php&#8221; to &#8220;application/third_party/rb&#8221; Create &#8220;application/libraries/rb.php&#8221;, and put this inside: &#60;?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Rb { function [...]]]></description>
			<content:encoded><![CDATA[<p>So I recently wanted to use the newest version of <a href="http://redbeanphp.com/" target="_blank">RedBean ORM (1.3beta)</a> with the latest <a href="https://bitbucket.org/ellislab/codeigniter-reactor" target="_blank">CodeIgniter Reactor</a> version. The whole integration process is even simpler than <a href="/2009/11/integration-of-redbean-orm-with-codeigniter/">before</a>, so here goes:</p>
<ol>
<li>Download <a href="http://redbeanphp.com/" target="_blank">RedBean</a>, copy <strong>&#8220;rb.php&#8221;</strong> to <strong>&#8220;application/third_party/rb&#8221;</strong></li>
<li>Create <strong>&#8220;application/libraries/rb.php&#8221;</strong>, and put this inside:<br />
<code>
<pre>&lt;?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Rb {
	
	function __construct() {
		// Include database configuration
		include(APPPATH.'/config/database.php');
		
		// Get Redbean
		include(APPPATH.'/third_party/rb/rb.php');
		
		// Database data
		$host = $db[$active_group]['hostname'];
		$user = $db[$active_group]['username'];
		$pass = $db[$active_group]['password'];
		$db = $db[$active_group]['database'];
		
		// Setup DB connection
		R::setup("mysql:host=$host;dbname=$db", $user, $pass);
	} //end __contruct()
} //end Rb</pre>
<p></code>
</li>
<li>Load the library like any other<br />
<code>
<pre>$this-&gt;load-&gt;library('rb');</pre>
<p></code>
</li>
<li>Do fun stuff with the <a href="http://www.redbeanphp.com/manual/" target="_blank">beans</a> in your controller:<br />
<code>
<pre>$album = R::dispense('album');
$album-&gt;title = '13 Songs';
$album-&gt;artist = 'Fugazi';
$album-&gt;year = 1990;
$album-&gt;rating = 5;
$id = R::store($album);</pre>
<p></code>
</li>
</ol>
<p>For more info and examples just go to the <a href="http://www.redbeanphp.com/manual/" target="_blank">RedBean</a> docs.</p>
<p>And yeah, <a href="http://www.dischord.com/band/fugazi" target="_blank">Fugazi</a> rocks!</p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2011/02/redbean-codeigniter-take-2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Uhvati Val</title>
		<link>http://creolab.hr/2011/02/uhvati-val/</link>
		<comments>http://creolab.hr/2011/02/uhvati-val/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 17:10:49 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Spotlight]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[krustr]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=15</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/02/Screen-Shot-2011-08-03-at-19.11.161-150x150.png" class="attachment-thumbnail wp-post-image" alt="Uhvati Val" title="Uhvati Val" style="float:right;" />Description: Daily deal site Work: HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system In collaboration with Dot Studio Status: online]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/02/Screen-Shot-2011-08-03-at-19.11.161-150x150.png" class="attachment-thumbnail wp-post-image" alt="Uhvati Val" title="Uhvati Val" style="float:right;" /><p><strong>Description:</strong> Daily deal site</p>
<p><strong>Work:</strong> HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system<br />
In collaboration with <a href="http://www.dot-studio.hr/" target="_blank">Dot Studio</a></p>
<p><strong>Status:</strong> <a href="http://www.uhvatival.hr/" target="_blank">online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2011/02/uhvati-val/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BigDeal</title>
		<link>http://creolab.hr/2010/09/bigdeal/</link>
		<comments>http://creolab.hr/2010/09/bigdeal/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 21:37:25 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Spotlight]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[krustr]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=51</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-03-at-23.37.33-150x150.png" class="attachment-thumbnail wp-post-image" alt="BigDeal" title="BigDeal" style="float:right;" />Description: The best deals in your town. Work: HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system In collaboration with Fulspectrum Status: online]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-03-at-23.37.33-150x150.png" class="attachment-thumbnail wp-post-image" alt="BigDeal" title="BigDeal" style="float:right;" /><p><strong>Description:</strong> The best deals in your town.</p>
<p><strong>Work:</strong> HTML/CSS, Krustr° Content Framework, payment gateway, newsletter system<br />
In collaboration with <a href="http://www.fulspectrum.si/" target="_blank">Fulspectrum</a></p>
<p><strong>Status:</strong> <a href="http://www.bigdeal.si/" target="_blank">online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2010/09/bigdeal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Human Rights Film Festival</title>
		<link>http://creolab.hr/2009/12/human-rights-film-festival/</link>
		<comments>http://creolab.hr/2009/12/human-rights-film-festival/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 13:41:11 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Spotlight]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=95</guid>
		<description><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-09-at-15.40.40-150x150.png" class="attachment-thumbnail wp-post-image" alt="Human Rights Film Festival" title="Human Rights Film Festival" style="float:right;" />Description: Human Rights Film Festival in Zagreb. Work: HTML/CSS, WordPress integration. In collaboration with Keith Rosson and 5L081CH.6R4PH1C5 Status: online]]></description>
			<content:encoded><![CDATA[<img width="150" height="150" src="http://creolab.hr/wp-content/uploads/2011/08/Screen-Shot-2011-08-09-at-15.40.40-150x150.png" class="attachment-thumbnail wp-post-image" alt="Human Rights Film Festival" title="Human Rights Film Festival" style="float:right;" /><p><strong>Description:</strong> Human Rights Film Festival in Zagreb.</p>
<p><strong>Work:</strong> HTML/CSS, WordPress integration.<br />
In collaboration with <a href="http://www.keithrosson.com/" target="_blank">Keith Rosson</a> and 5L081CH.6R4PH1C5</p>
<p><strong>Status:</strong> <a href="http://humanrightsfestival.org/" target="_blank">online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2009/12/human-rights-film-festival/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integration of RedBean ORM with CodeIgniter</title>
		<link>http://creolab.hr/2009/11/integration-of-redbean-orm-with-codeigniter/</link>
		<comments>http://creolab.hr/2009/11/integration-of-redbean-orm-with-codeigniter/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 21:55:04 +0000</pubDate>
		<dc:creator>Boris Strahija</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[orm]]></category>

		<guid isPermaLink="false">http://creolab.hr/?p=57</guid>
		<description><![CDATA[Updated version is up. Check it out! I still haven&#8217;t updated my work, so here&#8217;s something in the meantime. I&#8217;ve managed to successfuly integrate RedBean into the CodeIgniter PHP framework. I don&#8217;t think any additional explanation is necesary since it&#8217;s pretty simple and basic stuff. Here are the reuired steps: Download RedBean and put it [...]]]></description>
			<content:encoded><![CDATA[<h3>Updated version is up. <strong><a href="/2011/02/redbean-codeigniter-take-2/">Check it out!</a></strong></h3>
<p><del>I still haven&#8217;t updated my work, so here&#8217;s something in the meantime.</del></p>
<p><del>I&#8217;ve managed to successfuly integrate <a href="http://www.redbeanphp.com/">RedBean</a> into the <a href="http://codeigniter.com/">CodeIgniter</a> PHP framework. I don&#8217;t think any additional explanation is necesary since it&#8217;s pretty simple and basic stuff.</del></p>
<p><del>Here are the reuired steps:</del></p>
<ol>
<li>Download <a href="http://www.redbeanphp.com/">RedBean</a> and put it into /app/thirdparty/redbean/</li>
<li>Create a library (/app/libraries/redbean.php). The class shoud be called Redbean, and the __construct() function should look something like this:
<pre>$this-&gt;ci =&amp; get_instance();

// Include database configuration
include(APPPATH.'/config/database.php');

// Include required files
include(APPPATH.'/thirdparty/redbean/redbean.inc.php');

// Database data
$hostname     = $db[$active_group]['hostname'];
$username     = $db[$active_group]['username'];
$password     = $db[$active_group]['password'];
$database     = $db[$active_group]['database'];

// Create RedBean instance
$toolbox = RedBean_Setup::kickstartDev('mysql:host='.$hostname.';dbname='.$database, $username, $password);
$this-&gt;ci-&gt;rb = $toolbox-&gt;getRedBean();</pre>
</li>
<li>Your controllers can then do some fun stuff like this:
<pre>$post = $this-&gt;rb-&gt;dispense("post");
$post-&gt;title = 'My first post from CodeIgniter';
$post-&gt;body ='Lorem ipsum dolor sit amet, consectetur adipisicing elit....';
$post-&gt;created = time();
$id = $this-&gt;rb-&gt;store($post);</pre>
</li>
</ol>
<p>Haven’t tested it much but everything seems to work.<br />
If someone has a better sollution just let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://creolab.hr/2009/11/integration-of-redbean-orm-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

