<?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>summer swell</title>
	<atom:link href="http://www.summerswell.co.za/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.summerswell.co.za</link>
	<description>software development for people</description>
	<lastBuildDate>Tue, 14 Aug 2012 17:04:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>CodeIgniter: Check Authentication and Fail</title>
		<link>http://www.summerswell.co.za/2012/08/codeigniter-check-authentication-and-fail/</link>
		<comments>http://www.summerswell.co.za/2012/08/codeigniter-check-authentication-and-fail/#comments</comments>
		<pubDate>Tue, 14 Aug 2012 17:04:17 +0000</pubDate>
		<dc:creator>Bernd von Fintel</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.summerswell.co.za/?p=100</guid>
		<description><![CDATA[Very often, when developing a site using CodeIgniter, I use a base Controller to check common functions such as authentication. This is easiest to do in the Controller&#8217;s __construct method. Usually you can simply use a redirect to your login &#8230; <a href="http://www.summerswell.co.za/2012/08/codeigniter-check-authentication-and-fail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Very often, when developing a site using CodeIgniter, I use a base Controller to check common functions such as authentication. This is easiest to do in the Controller&#8217;s __construct method. Usually you can simply use a redirect to your login page:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.summerswell.co.za/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.summerswell.co.za/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.summerswell.co.za/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.summerswell.co.za/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;">redirect<span class="br0">&#40;</span> <span class="st0">&quot;/user/login&quot;</span> <span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
<p>But sometimes you simply want to stop the Controller and output the fact that they are not authorised or that a certain error has occurred. I was just doing this with a REST API on a site, and simply wanted to fail if the wrong API Key was passed. I&#8217;ve found it&#8217;s easiest to do via a &#8220;show_error&#8221; call:</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.summerswell.co.za/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.summerswell.co.za/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.summerswell.co.za/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.summerswell.co.za/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;">show_error<span class="br0">&#40;</span><span class="st_h">'Not authorized'</span><span class="sy0">,</span> 401 <span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.summerswell.co.za/2012/08/codeigniter-check-authentication-and-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delphi Starter XE2: Installing ZEOS</title>
		<link>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-zeos/</link>
		<comments>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-zeos/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 10:37:18 +0000</pubDate>
		<dc:creator>Bernd von Fintel</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Starter XE2]]></category>
		<category><![CDATA[delphi]]></category>
		<category><![CDATA[starter]]></category>
		<category><![CDATA[xe2]]></category>

		<guid isPermaLink="false">http://www.summerswell.co.za/?p=67</guid>
		<description><![CDATA[Delphi Starter XE2 does not come with many options to connect to databases. You can however install the Zeos database components, so that you can connect to most common database engines. As per the ZEOS portal you should be able &#8230; <a href="http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-zeos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Delphi Starter XE2 does not come with many options to connect to databases. You can however install the Zeos database components, so that you can connect to most common database engines. As per the ZEOS portal you should be able to connect to:</p>
<blockquote>
<ul>
<li>ADO</li>
<li>Mysql 4.1 to 6.0,</li>
<li>Interbase 5 / 6</li>
<li>Firebird 1.0 to 2.1</li>
<li>Postgres 7 to 8</li>
<li>SQLite 2.8 to 3</li>
</ul>
</blockquote>
<p><span id="more-67"></span>You can read more about the Zeoslib here: <a href="http://zeos.firmos.at/">http://zeos.firmos.at/</a></p>
<p>The basic steps:</p>
<ul>
<li>Get the latest version from SVN (<del>rev 935 when I got it</del>) from here:  https://zeoslib.svn.sourceforge.net/svnroot/zeoslib/branches/testing</li>
<li><del>I created new packages for XE2, copied from the delphi15 packages, converted them and made any changes needed to get it to compile. Patch file for rev 935: <a href="http://www.summerswell.co.za/wp-content/uploads/2011/09/zeosdbo_rev935_delphixe2.zip">zeosdbo_rev935_delphixe2</a></del></li>
<li>My patches were committed to the SVN, so the latest SVN should have the changes for XE2</li>
<li>Open up the $(COMPONENTBASE)\zeos\packages\delphi16\ZeosDbo.groupproj</li>
<li>Compile All</li>
<li>Add the $(COMPONENTBASE)\zeos\packages\delphi16\build to the path</li>
<li>Install the ZComponentDesign package</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-zeos/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Delphi Starter XE2: Installing JVCL</title>
		<link>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-jvcl/</link>
		<comments>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-jvcl/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 17:00:46 +0000</pubDate>
		<dc:creator>Bernd von Fintel</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Starter XE2]]></category>
		<category><![CDATA[delphi]]></category>
		<category><![CDATA[starter]]></category>
		<category><![CDATA[xe2]]></category>

		<guid isPermaLink="false">http://www.summerswell.co.za/?p=56</guid>
		<description><![CDATA[Because the installer for JVCL uses dcc32 , you can&#8217;t install it into Delphi Starter XE2. This just means that you need to install the packages manually from the IDE. The following is a brief outline of the steps to &#8230; <a href="http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-jvcl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>
<div>Because the installer for JVCL uses dcc32 , you can&#8217;t install it into Delphi Starter XE2. This just means that you need to install the packages manually from the IDE.</div>
<div>The following is a brief outline of the steps to install the latest JVCL in Delphi Starter XE2:<span id="more-56"></span></div>
</div>
<ul>
<li>Download JVCL for XE2: http://cc.embarcadero.com/Item/28421</li>
<li>Extracted to $(COMPONENTBASE)\jvcl</li>
<li>Updated to the latest SVN version from: https://jvcl.svn.sourceforge.net:443/svnroot/jvcl/trunk/jvcl</li>
<li>Opened up $(COMPONENTBASE)\jvcl\packages\D16 Packages.groupproj</li>
<ul>
<li>At this point I got lots of errors and warnings about not being able to find classes</li>
<li>Clicked on Cancel until all the packages were loaded</li>
</ul>
<li>I tried to &#8216;Compile All&#8217; but there were some problems with some of the packages so I went through them all and Compiled, and Installed the design-time packages.</li>
<li>JvPascalInterpreter package did not want to compile so I skipped it.</li>
<li>Under Tools -&gt; Options -&gt; Environment Options -&gt; Delphi Options -&gt; Library add the following directories to the Browsing path:</li>
<ul>
<li>$(COMPONENTBASE)\jvcl\run</li>
<li>$(COMPONENTBASE)\jvcl\common</li>
</ul>
<li>Under Tools -&gt; Options -&gt; Environment Options -&gt; Delphi Options -&gt; Library add the following directories to the Library path:</li>
<ul>
<li>$(COMPONENTBASE)\jvcl\run</li>
<li>$(COMPONENTBASE)\jvcl\common</li>
<li>$(COMPONENTBASE)\jvcl\resources</li>
</ul>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-jvcl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Delphi Starter XE2: Installing JCL</title>
		<link>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-jcl/</link>
		<comments>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-jcl/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 20:23:03 +0000</pubDate>
		<dc:creator>Bernd von Fintel</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Starter XE2]]></category>
		<category><![CDATA[delphi]]></category>
		<category><![CDATA[starter]]></category>
		<category><![CDATA[xe2]]></category>

		<guid isPermaLink="false">http://www.summerswell.co.za/?p=53</guid>
		<description><![CDATA[Because the installer for JCL uses dcc32 , you can&#8217;t install it into Delphi Starter XE2. This just means that you need to install the packages manually from the IDE. The following is a brief outline of the steps to &#8230; <a href="http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-jcl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>Because the installer for JCL uses dcc32 , you can&#8217;t install it into Delphi Starter XE2. This just means that you need to install the packages manually from the IDE.</div>
<div>The following is a brief outline of the steps to install the latest JCL in Delphi Starter XE2:<span id="more-53"></span></div>
<ul>
<li>Downloaded JCL for XE2: <a title="http://cc.embarcadero.com/Item/28416" href="http://cc.embarcadero.com/Item/28416" target="_blank">http://cc.embarcadero.com/Item/28416</a></li>
<li>Extracted to $(COMPONENTBASE)\jcl</li>
<li>I updated to the latest SVN version from:  https://jcl.svn.sourceforge.net:443/svnroot/jcl/trunk/jcl</li>
<li>Open up $(COMPONENTBASE)\jcl\packages\JclPackagesD160.groupproj in the Delphi IDE</li>
<li>In Project Manager, compile all packages</li>
<li>For each Design Time package, right click and &#8220;Install&#8221;</li>
<li>Under Tools -&gt; Options -&gt; Environment Options -&gt; Delphi Options -&gt; Library add the following directories to the Browsing path:</li>
<ul>
<li> $(COMPONENTBASE)\jcl\source\common</li>
<li> $(COMPONENTBASE)\jcl\source\windows</li>
<li> $(COMPONENTBASE)\jcl\source\vcl</li>
</ul>
<li>Under Tools -&gt; Options -&gt; Environment Options -&gt; Delphi Options -&gt; Library add the following directories to the Library path:</li>
<ul>
<li>$(COMPONENTBASE)\jcl\source\common</li>
<li>$(COMPONENTBASE)\jcl\source\windows</li>
<li>$(COMPONENTBASE)\jcl\source\include</li>
</ul>
<li>Under Tools -&gt; Options -&gt; Environment Options -&gt; Delphi Options -&gt; Library add the following directories to the Debug DCUs path:</li>
<ul>
<li>$(COMPONENTBASE)\jcl\lib\d16\win32\debug</li>
</ul>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.summerswell.co.za/2011/09/delphi-starter-xe2-installing-jcl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome :)</title>
		<link>http://www.summerswell.co.za/2009/05/hello-world/</link>
		<comments>http://www.summerswell.co.za/2009/05/hello-world/#comments</comments>
		<pubDate>Sun, 03 May 2009 17:01:44 +0000</pubDate>
		<dc:creator>Bernd von Fintel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://summerswell.co.za/?p=1</guid>
		<description><![CDATA[Welcome  to Summer Swell. What is it? It is a concept at the moment, of my future. It is everything that I want it to be. Check back when I have everything or something I want]]></description>
				<content:encoded><![CDATA[<p>Welcome  to Summer Swell. What is it? It is a concept at the moment, of my future. It is everything that I want it to be. Check back when I have everything or something I want <img src='http://www.summerswell.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.summerswell.co.za/2009/05/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
