<?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>Digital Base - Blog &#187; development</title>
	<atom:link href="http://www.digitalbase.eu/blog/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digitalbase.eu/blog</link>
	<description>A blog about webdesign, PHP, development and IT</description>
	<lastBuildDate>Mon, 10 May 2010 16:16:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What is important in a PHP editor/IDE ?</title>
		<link>http://www.digitalbase.eu/blog/what-is-important-in-a-php-editoride/</link>
		<comments>http://www.digitalbase.eu/blog/what-is-important-in-a-php-editoride/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 11:00:37 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://dibav3.gnelisse.desktop01/blog/?p=45</guid>
		<description><![CDATA[An overview of what i find important in an IDE. What to look for when looking for a nice php developing tool.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been building websites for a while now. So i could say i am quite experienced although my (programming) knowledge is <span style="text-decoration: line-through;">limited</span> mainly focussed on building php applications. As a developer time is expensive, that&#8217;s why i am always looking for ways to speed up the web development process. A good start for fast &amp; secure development is to have the right tools and the right feeling/connection with your editor.</p>
<p>On day-to-day basis i could say 80% of the time i have an open editor somewhere. Based on the amount of time you are &#8220;working together&#8221; with this piece of software, you could compare it to a marriage (although you shouldn&#8217;t trade wives as soon as you meet a younger, smarter and more beautiful girl).</p>
<p>I have a few expectations / requirements for a modern, good working editor</p>
<h1>Decent Code Completion / Code Assistance</h1>
<p>We all know word completion : auto completion involves the program predicting a word or sentence without the user actually having to type it in completely. This feature is used alot in text messaging (sms), email clients, browsers, search engines etc&#8230;</p>
<p><img class="aligncenter size-full wp-image-259" title="google_image_autocomplete" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/google_image_autocomplete.png" alt="google_image_autocomplete" width="622" height="352" /></p>
<p>Autocompletion speeds up the entire process of typing a message, entering an address or, in our case, writing PHP code.</p>
<p>A decent source code editor analyses your source and suggests the function based on the first characters of the variable, function name or object. Most editors these days have code completion although they come in many flavours.</p>
<p><img class="aligncenter size-full wp-image-160" title="eclipse autocomplete" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/3138497480_8b6500d9e4_o.png" alt="eclipse autocomplete" width="591" height="95" /></p>
<p>Larger web applications tend to use alot of classes &amp; files. That&#8217;s what it is really important your autocompletion allows you to use an unlimited depth of super- &amp; sub classes (<a title="Inheritance OO" href="http://en.wikipedia.org/wiki/Inheritance_%28computer_science%29" target="_blank">inheritance</a>). For this your IDE should have a decent understanding of the relation between classes. If in some case the code completion does not work for a certain object, you should be able to tell the editor which class your object belongs to, so it will allow you to use the code completion on next occurences of the same object/variable.</p>
<h1><strong>Code Documentation / PHPDoc<br />
</strong></h1>
<p>Another important aspect of code completion is documentation. It is very useful for a programmer to get as much visible feedback as possible about the method/function he is calling. For a php core function this should be a short summary what the function does, for custom methods/functions this would be the description as entered by the one that created the class/method.</p>
<p><img class="aligncenter size-full wp-image-262" title="eclipse_link" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/eclipse_link.jpg" alt="eclipse_link" width="716" height="235" /></p>
<p>Next to that information it could be useful to show the return type and perhaps some information about the needed arguments. All these things should be integrated in the IDE, readily available when i enter the name of a method/class without opening a seperate manual or the php.net website.</p>
<p>When adding custom classes/methods/functions it is important that you document this code using phpdoc. Eclipse will then pick up this documentation and show it whenever you are using it somewhere else throughout your project.</p>
<h1><strong>Syntax Highlighting / Coloring</strong></h1>
<p>Code should look good. If you&#8217;re spending most of your time looking at code, it&#8217;s important to take care of your eyes. A good syntax highlighter highlights the different code to make a clear distinction between actual code, variables &amp; documentation. Marking different type of elements in seperate colors will increase readability and help you understand a function faster.</p>
<p>Syntax highlighting also helps in finding errors in your code. Some editors mark incorrect code (missing delimiter, etc), this comes in handy when you are paying less attention. The editor will immediately show you you are doing something wrong&#8230;</p>
<p>Personally i prefer dark editors, many other programmers agree that this is alot better for your eyes. Next to that i find dark color schemes to be alot clearer and more beautiful to look at. TO give you an idea, this is what my eclipse looks like :</p>
<p><img class="aligncenter size-full wp-image-258" title="screenshot1" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot1.png" alt="screenshot1" width="659" height="471" /></p>
<h1>Code Bookmarks</h1>
<p>When we are writing code it is important to keep track of important locations throughout the project. Code Bookmarks is the easiest way to do it.</p>
<p>A good implementation of bookmarks should allow you to easily switch to next/previous bookmark and give you an overview/listing of the current &#8220;bookmarks&#8221;.</p>
<p><img class="aligncenter size-full wp-image-264" title="screenshot3" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot3.png" alt="screenshot3" width="494" height="172" /></p>
<p>If you look on the left side, you will see a small flag that marks the current line as being bookmarked.</p>
<p><img class="aligncenter size-full wp-image-269" title="screenshot7" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot7.png" alt="screenshot7" width="600" height="169" /></p>
<p>Once you have these &#8220;code bookmarks&#8221;, its hard to code without them.</p>
<h1>Smart/Quick opening</h1>
<p>Now where did i put this code/file again ? Which class defines the foo() method ? Most of you will agree with me that opening the correct resource/file/method takes alot of time. A good editor should allow you to find/open everything you are looking for with a few keystrokes and (more important) without touching your mouse.</p>
<p>My favourite editor (Eclipse) allows you to use ctrl+shift+R to &#8220;open resource&#8221; and quickly find the file you were looking for.</p>
<p><img class="aligncenter size-full wp-image-274" title="screenshot8" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot8.png" alt="screenshot8" width="657" height="181" /></p>
<p>This means i do not need to touch my mouse or open the &#8220;file explorer&#8221; to look for the file. Easy &amp; Fast&#8230;</p>
<p>I know some people who use &#8220;grep -r &#8216; methodname()&#8217; to find the location of a method. I personally think this stinks. A good editor should contains some ways to easily open a file/method.</p>
<h1>Class Outline</h1>
<p>It&#8217;s easy to lose track of the variables/methods that are defined in a class. This is where the &#8220;outline view&#8221; comes in handy. This &#8220;outline&#8221; view will give you a the overview of every method/variable defined.</p>
<p><img class="aligncenter size-full wp-image-276" title="screenshot9" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot9.png" alt="screenshot9" width="732" height="394" /></p>
<p>Double clicking a method will take you to this method. No search, no scrolling, no touching the mouse. In eclipse there is an even better way. Once inside a class you can use CTRL+O to get a quick outline with autocomplete functionality, finding the method you were looking for never was this easy&#8230;</p>
<p><img class="aligncenter size-full wp-image-277" title="eclipse quick outline" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot.png" alt="eclipse quick outline" width="707" height="443" /></p>
<p>Thanks Eclipse <img src='http://www.digitalbase.eu/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h1>Platform Independance</h1>
<p>If you are a regular reader of this blog, you will know we are using several linux flavours in our office. So for us it is very important t he same editor can be used on Windows &amp; Linux platforms. Most &#8220;multi-platform&#8221; ide&#8217;s are based on java (zend, eclipse,&#8230;) but there are some other ide&#8217;s that have clients for both platforms.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/what-is-important-in-a-php-editoride/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to unsecure admin generated modules in Symfony</title>
		<link>http://www.digitalbase.eu/blog/how-to-unsecure-admin-generated-modules/</link>
		<comments>http://www.digitalbase.eu/blog/how-to-unsecure-admin-generated-modules/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 14:38:37 +0000</pubDate>
		<dc:creator>Bart Vanderstukken</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=245</guid>
		<description><![CDATA[You gotta love the admin generator&#8230; There&#8217;s only one problem: it&#8217;s secured by default (according to the symfony site).
But I want to use these modules in a non-secured environment.
Adding credentials: [] in the admin generator does not work&#8230; Why?
Look at your automoduleactions. You&#8217;ll find a preExecute function:

  public function preExecute&#40;&#41;
  &#123;
   [...]]]></description>
			<content:encoded><![CDATA[<p>You gotta love the admin generator&#8230; There&#8217;s only one problem: it&#8217;s secured by default (according to the symfony site).<br />
But I want to use these modules in a non-secured environment.<br />
Adding credentials: [] in the admin generator does not work&#8230; Why?<br />
Look at your auto<em>module</em>actions. You&#8217;ll find a preExecute function:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> preExecute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configuration</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> eventGeneratorConfiguration<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">hasCredential</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configuration</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCredentials</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getActionName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">forward</span><span style="color: #009900;">&#40;</span>sfConfig<span style="color: #339933;">::</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sf_secure_module'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> sfConfig<span style="color: #339933;">::</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sf_secure_action'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dispatcher</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">notify</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> sfEvent<span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'admin.pre_execute'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'configuration'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configuration</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> eventGeneratorHelper<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span></pre></div></div>

<p>This code is always executed before any action.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">hasCredential</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configuration</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCredentials</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getActionName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>the getCredentials function:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getCredentials<span style="color: #009900;">&#40;</span><span style="color: #000088;">$action</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span> <span style="color: #339933;">===</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$action</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$action</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$action</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configuration</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'credentials'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$action</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configuration</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'credentials'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$action</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The problem is that hasCredential(array()) returns false.<br />
My solution:<br />
Override the hasCredential function in myUser</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> hasCredential<span style="color: #009900;">&#40;</span><span style="color: #000088;">$credential</span><span style="color: #339933;">,</span> <span style="color: #000088;">$useAnd</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">//for usage in generator =&gt; + as credential will return hasCredential=true (even if user has no credentials at all)</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$credential</span> <span style="color: #339933;">===</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    <span style="color: #666666; font-style: italic;">//btw =&gt; you could have checked for an empty array of credentials which is what the generator is returning</span>
    <span style="color: #b1b100;">return</span> parent<span style="color: #339933;">::</span><span style="color: #004000;">hasCredential</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$credential</span><span style="color: #339933;">,</span> <span style="color: #000088;">$useAnd</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span></pre></div></div>

<p>Now to make it work, put in generator.yml</p>

<div class="wp_syntax"><div class="code"><pre class="yml" style="font-family:monospace;">  config:
     actions:
        _delete:        { credentials: admin }
        _list:            { credentials: + }
        index:           { credentials: + }
#        _new:         { credentials: + }
#        _edit:         { credentials: + }</pre></div></div>

<p>Ps: You could also use false &#038; -</p>
<p>EDIT: This problem appears to be fixed. View this ticket <a href="http://trac.symfony-project.org/ticket/5582">http://trac.symfony-project.org/ticket/5582</a> (thanks to Jukea for pointing that out)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/how-to-unsecure-admin-generated-modules/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Simplifying Queries: Using sum, count, etc in Propel 1.3</title>
		<link>http://www.digitalbase.eu/blog/simplifying-queries-using-sum-count-etc-in-propel-13/</link>
		<comments>http://www.digitalbase.eu/blog/simplifying-queries-using-sum-count-etc-in-propel-13/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 10:57:32 +0000</pubDate>
		<dc:creator>Bart Vanderstukken</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[propel]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=228</guid>
		<description><![CDATA[My old post handled Propel 1.2.
This is the way to do it in Propel 1.3

1
2
3
4
5
6
7
    $c = new Criteria&#40;&#41;;
    $c-&#62;add&#40;FavoriteDatePeer::EVENTDATAPROPOSAL_ID, $this-&#62;getId&#40;&#41;&#41;;
    $c-&#62;addSelectColumn&#40;&#34;SUM(&#34;.FavoriteDatePeer::SCORE.&#34;) as rank&#34;&#41;;
&#160;
    $stmt = FavoriteDatePeer::doSelectStmt&#40;$c&#41;;
    $row = $stmt-&#62;fetch&#40;&#41;;
    return $row&#91;'rank'&#93;;

]]></description>
			<content:encoded><![CDATA[<p>My <a title="Sum, count, etc. in Propel 1.2" href="http://www.digitalbase.eu/blog/simplifying-queries-using-sum-count-etc-in-propel/">old post</a> handled Propel 1.2.</p>
<p>This is the way to do it in Propel 1.3</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000088;">$c</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Criteria<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$c</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">add</span><span style="color: #009900;">&#40;</span>FavoriteDatePeer<span style="color: #339933;">::</span><span style="color: #004000;">EVENTDATAPROPOSAL_ID</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$c</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addSelectColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SUM(&quot;</span><span style="color: #339933;">.</span>FavoriteDatePeer<span style="color: #339933;">::</span><span style="color: #004000;">SCORE</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;) as rank&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$stmt</span> <span style="color: #339933;">=</span> FavoriteDatePeer<span style="color: #339933;">::</span><span style="color: #004000;">doSelectStmt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$stmt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'rank'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/simplifying-queries-using-sum-count-etc-in-propel-13/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Symfony Plugin for Eclipse : SfDT</title>
		<link>http://www.digitalbase.eu/blog/symfony-plugin-for-eclipse-sfdt/</link>
		<comments>http://www.digitalbase.eu/blog/symfony-plugin-for-eclipse-sfdt/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 11:27:25 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=223</guid>
		<description><![CDATA[I just found out someone is working on a new symfony plugin for eclipse, there used to be symfoclipse, but closed-source, commercial and no support for Eclipse 3.4. This new plugin works with symfony 1.0, 1.1 and 1.2. The website states it is tested with Eclipse 3.3.2 and PDT 1.0.2 but i did manage to [...]]]></description>
			<content:encoded><![CDATA[<p>I just found out someone is working on a new symfony plugin for eclipse, there used to be <a href="http://www.noy.cc/symfoclipse/" target="_blank">symfoclipse</a>, but closed-source, commercial and no support for Eclipse 3.4. This new plugin works with symfony 1.0, 1.1 and 1.2. <a href="http://sfdt.borox.ch/" target="_blank">The website</a> states it is tested with Eclipse 3.3.2 and PDT 1.0.2 but i did manage to run it on Eclipse 3.4 and PDT 2.x.</p>
<p>So what can this plugin do ?</p>
<ul>
<li>create modules/projects/applications rightfrom within Eclipse</li>
<li>convert Clay database to schema.xml/yml</li>
<li>run symfony commandline from within eclipse</li>
</ul>
<p><img class="aligncenter size-full wp-image-224" title="screenshot11" src="http://www.digitalbase.eu/blog/wp-content/uploads//2009/01/screenshot11.png" alt="screenshot11" width="640" height="311" /></p>
<p>More information on this plugin :</p>
<ul>
<li>website : <a href="http://sfdt.borox.ch/" target="_blank">http://sfdt.borox.ch/</a></li>
<li><a href="http://groups.google.com/group/symfony-users/browse_thread/thread/e347be3c14bc0f0a/56809a9b65048126?show_docid=56809a9b65048126" target="_blank">google discussion</a> / <a href="http://groups.google.com/group/symfony-users/browse_thread/thread/c600dccda1bf6d3a/98a1ba77efbadb52?#98a1ba77efbadb52" target="_blank">another google discussion</a></li>
</ul>
<p>Good job guys !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/symfony-plugin-for-eclipse-sfdt/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>What i love about Redmine</title>
		<link>http://www.digitalbase.eu/blog/what-i-love-about-redmine/</link>
		<comments>http://www.digitalbase.eu/blog/what-i-love-about-redmine/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 17:17:55 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=164</guid>
		<description><![CDATA[I previously told you we moved from Trac to Redmine for project management (issue/ticket tracking, milestones, source control management). In this post i will tell you what i like about Redmine and compare it to our previous Trac setup.
From what i understand from the Trac mailing list &#38; some discussions in some of the ticket [...]]]></description>
			<content:encoded><![CDATA[<p>I previously told you we moved <a title="Trac vs Redmine" href="http://www.digitalbase.be/blog/trac-vs-redmine/" target="_blank">from Trac to Redmine</a> for project management (issue/ticket tracking, milestones, source control management). In this post i will tell you what i like about <a title="Redmine - Project Management" href="http://www.redmine.org/" target="_blank">Redmine </a>and compare it to our previous <a href="http://trac.edgewall.org/" target="_blank">Trac</a> setup.</p>
<p>From what i understand from the Trac mailing list &amp; some discussions in some of the ticket comments (by core developers) the main goal of  Trac is to create a stable (and basic) system (or groundlayer) that can be extended by using plugins. Thats a great mission statement&#8230;But (and there is a but) if you are managing several Trac installations this vision turns against you rather quickly, below some of the main things i miss in Trac.</p>
<h2>Multiple Projects</h2>
<p>The initial reason for moving to Redmine was the lack of support for multiple projects in Trac. I know you can hack Trac (see <a title="Trac Hacks" href="http://trac-hacks.org/" target="_blank">track-hacks</a>) to include <a href="http://trac.edgewall.org/wiki/TracMultipleProjects" target="_blank">multi-project support</a>, but i don&#8217;t like <a title="Hack Trac to support multiple projects" href="http://trac-hacks.org/wiki/TracForgePlugin">hacking</a>. There were several <a title="Trac Support for Multi Projects" href="http://trac.edgewall.org/ticket/130">discussions</a> how (and if) Trac should implement multi-project support fact is : there is no &#8220;out-of-the-box&#8221; solution. I read something about Trac v2.0 supporting this, so i guess we&#8217;ll see that in 2015 then..</p>
<p>Redmine does support multiple projects. The integration throughout the entire system is excellent. You can create nested subprojects and move issues/tickets from one project to another. For each project you are able to assign different users and turn certain functionality (milestones, time tracking, source control,..) on and off.</p>
<p><img class="aligncenter size-full wp-image-184" title="redmine-projects" src="http://www.digitalbase.eu/blog/wp-content/uploads//2009/01/redmine-projects.png" alt="redmine-projects" width="640" height="260" /></p>
<h2>Batch Issue/Ticket editing</h2>
<p>I have to agree Trac ticketing system is very powerful and flexible. Without a doubt Trac is one of the most common and stable tools for project management &amp; issue tracking for a very good reason. You can easily search and filter tickets by severity, project component, version or owner, and then store those. Great.</p>
<p><img class="aligncenter size-full wp-image-186" title="trac-tickets" src="http://www.digitalbase.eu/blog/wp-content/uploads//2009/01/trac-tickets.png" alt="trac-tickets" width="640" height="333" /></p>
<p>What i really miss using Trac is the ability to do a &#8220;mass update&#8221; (edit/close/move) on several tickets at the same time. This is where the ajax powered &#8220;batch edit&#8221; feature of Redmine comes in quite handy.</p>
<p><img class="aligncenter size-full wp-image-185" title="redmine-mass-issue-update" src="http://www.digitalbase.eu/blog/wp-content/uploads//2009/01/redmine-mass-issue-update.png" alt="redmine-mass-issue-update" width="596" height="710" /></p>
<h2>User / Role Management</h2>
<p>The user management in Redmine is great ! Besides normal user management it supports (custom) roles. You are able to set different user roles for different projects.</p>
<p>Trac doesn&#8217;t support &#8220;user management&#8221; out-of-the-box. Unlike other <a title="Bug Tracking" href="http://en.wikipedia.org/wiki/Bugtracker" target="_blank">bug-<span class="searchword0">trac</span>king systems</a> that simply have a table for storing the <span class="searchword1">user</span>s, Trac took the approach of allowing users to leverage the numerous authentication modules available for their web server. This means system administrators are able to hook Trac into something like <a title="Lightweight Directori Access" href="http://en.wikipedia.org/wiki/LDAP" target="_blank">LDAP</a>, Active Directory, or whatever centralized user system that they already have in place.</p>
<p>So which one is better ?  Difficult question. I am a great supporter of working software out of the box. Not too much configuration, easy to install. This doesn&#8217;t mean the software has to be &#8220;simple&#8221; : flexible and easy-to-configure can go along hand in  hand. That being said i think Redmine took the best approach in having good user management right after installation. If you need something more centralized they still have <a title="LDAP" href="http://en.wikipedia.org/wiki/LDAP" target="_blank">LDAP</a> support.</p>
<h2>A lot of updates/ new features</h2>
<p>I am sure Trac is more stable then Redmine. So if you need a stable product, use Trac But as we are a small webdesign company, the stability of the development environment isn&#8217;t really that critical to us.</p>
<p>What i am looking for in project management software are new features/idea&#8217;s to improve the way our team is working together. I keep an eye on the <a title="Redmine activity" href="http://www.redmine.org/projects/activity/redmine" target="_blank">Redmine timeline/activity</a> to see how other people are using the Redmine platform. Some of their comments/ideas inspire us to change the way we are working or start using a specific feature we haven&#8217;t paid attention to.</p>
<h2>Anything else ?</h2>
<p>Yes, there are some things Trac does alot better. First of all Trac has a large community with multiple core developers, redmine is built around one (maybe a few) persons. Then the source repository browser in Trac is alot more powerful and intuitive.</p>
<p>I have been using Trac for along time now and i have a great deal of respect for all the guys that are working on this rocksolid project. But as i said before, Trac&#8217;s strengths is also it&#8217;s weakness. By trying to keep the system as lightweight as possible, discussions about possible features mostly result in the &#8220;not for core&#8221; decision.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/what-i-love-about-redmine/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>PDT 2.0 for Eclipse is out</title>
		<link>http://www.digitalbase.eu/blog/pdt-20-for-eclipse-is-out/</link>
		<comments>http://www.digitalbase.eu/blog/pdt-20-for-eclipse-is-out/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 09:35:59 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[pdt]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=154</guid>
		<description><![CDATA[If you are into PHP development, this might interest you : PDT 2.0 is out, download it here. Congrats to the PDT team for this great release and the respect of the deadline.


If you are wondering whats new, check this page. Have fun with it&#8230;
]]></description>
			<content:encoded><![CDATA[<p>If you are into PHP development, this might interest you : <a href="http://www.eclipse.org/pdt/" target="_blank">PDT 2.0</a> is out, <a href="http://www.eclipse.org/pdt/downloads/" target="_blank">download it here.</a> Congrats to the PDT team for this great release and the respect of the deadline.<a href="http://www.eclipse.org/pdt/downloads/" target="_blank"><br />
</a></p>
<p><a title="Download ECLIPSE pdt" href="http://www.eclipse.org/pdt/downloads/" target="_blank"><img class="aligncenter size-full wp-image-155" title="download pdt" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot11.png" alt="download pdt" width="616" height="302" /></a></p>
<p>If you are wondering whats new, check <a href="http://www.eclipse.org/pdt/release-notes/pdt2_0.php" target="_blank">this page.</a> Have fun with it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/pdt-20-for-eclipse-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developer Faster with lightning fast Eclipse</title>
		<link>http://www.digitalbase.eu/blog/developer-faster-with-lightning-fast-eclipse/</link>
		<comments>http://www.digitalbase.eu/blog/developer-faster-with-lightning-fast-eclipse/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 11:24:56 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=127</guid>
		<description><![CDATA[When maintaining &#38; developming large web applications you might notice that eclipse slows up a bit. Building workspace, showing the autocomplete or syntax highlighting might take a while to load. The solution for this is to optimise your eclipse.ini and tell your favourite PHP development IDE to use more memory.
After installing eclipse you open the [...]]]></description>
			<content:encoded><![CDATA[<p>When maintaining &amp; developming large web applications you might notice that eclipse slows up a bit. Building workspace, showing the autocomplete or syntax highlighting might take a while to load. The solution for this is to optimise your eclipse.ini and tell your favourite PHP development IDE to use more memory.</p>
<p>After installing eclipse you open the eclipse.ini in the root. If you followed <a href="http://www.digitalbase.eu/blog/installing-eclipse-latest-php-development-tools-pdt-20/" target="_blank">my previous post</a>, the default settings should be something like this :</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">-startup
plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v20080805
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m</pre></div></div>

<p>This means eclipse will use in between 40 and 256mb. These default settings will allow you to run Eclipse on a pre historic PII with less then 1GB ram, although i wouldn&#8217;t recommend that.</p>
<p>Most of you, especially developers working in a development agency, will have powerful workstations. So lets tell eclipse to use a bit more resources</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">-startup
plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v20080805
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
-vmargs
-Xms256m
-Xmx1024m
-XX:MaxPermSize<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">256m</span></pre></div></div>

<p>I changed the xms, xmx and xx:maxpermsize settings.</p>
<p>What does it mean ?</p>
<ul>
<li> Xms sets the initial Java heap size</li>
<li>Xmx sets the maximum Java heap size</li>
<li>XX:MaxPermSize allows for the JVM to be able to grow the PermSize to the amount specified. Initially when the IDE is loaded, the MaxPermSize will still be the default value but will not actually take up that amount until it is needed.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/developer-faster-with-lightning-fast-eclipse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wordpress : Seperate RSS feed for Category / Author / Tag</title>
		<link>http://www.digitalbase.eu/blog/wordpress-seperate-rss-feed-for-category-author-tag/</link>
		<comments>http://www.digitalbase.eu/blog/wordpress-seperate-rss-feed-for-category-author-tag/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 01:10:27 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=119</guid>
		<description><![CDATA[As you may have read we migrated this blog to a wordpress one. Yeahyeah, we are not officially wordpressified.
My impression of the core
The default wordpress core holds alot of use&#8217;eable functions, but it took me a while to figure out how the thing worked. You need to know that wordpress is not really written very [...]]]></description>
			<content:encoded><![CDATA[<p>As you may have read we migrated this blog to a wordpress one. Yeahyeah, we are not officially wordpressified.</p>
<h2>My impression of the core</h2>
<p>The default wordpress core holds <a href="http://codex.wordpress.org/Function_Reference" target="_blank">alot of use&#8217;eable functions</a>, but it took me a while to figure out how the thing worked. You need to know that wordpress is not really written very object oriented, so basically its a collection of functions although some &#8220;under the hood&#8221; core functionality is object oriented.</p>
<p>If i was not convinced wordpress is a serious project with a great future, i wouldn&#8217;t have chosen it, so let&#8217;s not start the &#8220;code quality&#8221; discussion.</p>
<h2>The problem</h2>
<p>Something i was missing after the default drupal installation was an easy way to retrieve the related rss feed based on the page the visitor was accessing. If a visitor was on the &#8220;all posts by author X&#8221; page, the linked rss feed should only hold those posts. Same for category pages and tag pages.</p>
<p>Getting the information of a tag, author of category is very easy. There are some built in functions like <a href="http://codex.wordpress.org/Function_Reference/get_category" target="_blank">get_category</a>, and <a href="http://codex.wordpress.org/Function_Reference/get_category_feed_link" target="_blank">get_category_feed_link</a> that will give you this information. The downside is, this information is basically only available inside &#8220;<a href="http://codex.wordpress.org/The_Loop" target="_blank">the loop</a>&#8220;.</p>
<h2>The solution</h2>
<p>To get the information about the selected category, author or tag i had to jump a few hoops. It&#8217;s a combination of core functions and some minor custom code where i had to retrieve the current tag from the queried variables.</p>
<p>Then I created a custom method that returns the most related feed based on the page request. The method will check what type of page the visitor is accessing (category, tag, author or main page) and return the appropriate rss feed.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * This method will give you the most related rss feed based on the current page request
 *
 * @param $type
 * @return string (feed url)
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> get_feed_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;rss2_url&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> get_the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>cat_ID<span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$url_rss</span> <span style="color: #339933;">=</span> get_category_feed_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current</span><span style="color: #339933;">,</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'author_name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> get_userdatabylogin<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ID<span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> get_author_feed_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current</span><span style="color: #339933;">,</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_tag<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tag'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$formaturl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/feed/&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;rss_url&quot;</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$formaturl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/rss/&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;atom_url&quot;</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$formaturl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/atom/&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;url&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/tag/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$current</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$formaturl</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h2>Examples</h2>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">get_feed_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;rss2_url&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// on page /blog/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//returns : http://www.digitalbase.eu/blog/feed/</span>
&nbsp;
get_feed_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;atom_url&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// on page /blog/category/digitalbase/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//returns : http://www.digitalbase.eu/blog/category/digitalbase/feed/atom_url/</span>
&nbsp;
get_feed_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;rss_url&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// on page /blog/tag/symfony</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//returns : http://www.digitalbase.eu/blog/tag/symfony/rss/</span></pre></div></div>

<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/wordpress-seperate-rss-feed-for-category-author-tag/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Eclipse + Latest Php Development Tools (PDT 2.0)</title>
		<link>http://www.digitalbase.eu/blog/installing-eclipse-latest-php-development-tools-pdt-20/</link>
		<comments>http://www.digitalbase.eu/blog/installing-eclipse-latest-php-development-tools-pdt-20/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 18:32:00 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=105</guid>
		<description><![CDATA[Following up on my previous post on &#8220;installing 3.4 + PDT 2.x&#8221; i wanted to let you know there is a much easier way. As we are coming close to a stable version of pdt 2.x (launch on 29th of December) :

 2.0 M1 &#8211; November 03
 2.0 M2 &#8211; November 24
 2.0 RC1 &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Following up on my previous post on &#8220;<a href="http://www.digitalbase.eu/blog/installing-eclipse-3-4-pdt-2-x-nightly-build/">installing 3.4 + PDT 2.x</a>&#8221; i wanted to let you know there is a much easier way. As we are coming close to a stable version of pdt 2.x (launch on 29th of December) :</p>
<div id="midcolumn">
<li> 2.0 M1 &#8211; November 03</li>
<li> 2.0 M2 &#8211; November 24</li>
<li> 2.0 RC1 &#8211; December 08</li>
<li> 2.0 RC2 &#8211; December 14</li>
<li> 2.0 RC3 &#8211; December 23</li>
<li><strong> 2.0 Release &#8211; December 29 </strong></li>
</div>
<p>The PDT core team decided to setup an &#8220;update site&#8221; so you can easily fetch the latest version from within eclipse.</p>
<h1>Installation</h1>
<h2>Getting &amp; Running Eclipse</h2>
<p>Get the latest version of Eclipse from <a href="http://www.eclipse.org/downloads/" target="_blank">the download site</a>. I went for &#8220;<a class="packageTitle" href="http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.4.1-200809111700/eclipse-SDK-3.4.1-linux-gtk.tar.gz" target="_blank">Eclipse Classic 3.4.1 (151 MB)</a>&#8220;. Extract it and double eclipse the eclipse executable.</p>
<h2>Adding the PDT 2.x</h2>
<p>When you selected a workspace and fired up eclipse add the different update sites (Help &gt; Software Updates&#8230; &gt; Available Software &gt; Manage Sites)</p>
<p>A list of the ones you need to add :</p>
<ul>
<li><a class="external text" title="http://download.eclipse.org/technology/dltk/updates-dev/1.0/" rel="nofollow" href="http://download.eclipse.org/technology/dltk/updates-dev/1.0/">download.eclipse.org/technology/dltk/updates-dev/1.0/</a> DLTK 1.0</li>
<li> <a class="external text" title="http://download.eclipse.org/tools/pdt/updates/2.0/interim/" rel="nofollow" href="http://download.eclipse.org/tools/pdt/updates/2.0/interim/">download.eclipse.org/tools/pdt/updates/2.0/interim/</a> : PDT 2.0 updates</li>
</ul>
<p>Also make sure to enable the default Ganymede update site.</p>
<p><a href="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/imagepdt-install-p2.png"><img class="alignnone size-full wp-image-110" title="imagepdt-install-p2" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/imagepdt-install-p2.png" alt="" /></a></p>
<div id="attachment_113" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot12.png"><img class="size-full wp-image-113" title="update site (eclipse)" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot12.png" alt="make sure these checkboxes are ... checked :)" width="500" height="528" /></a><p class="wp-caption-text">make sure these checkboxes are ... checked <img src='http://www.digitalbase.eu/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></div>
<p><a href="http://www.digitalbase.eu/blog/wp-content/uploads/english/2008/12/imagepdt-install-p2.png"><img class="alignright size-medium wp-image-107" title="imagepdt-install-p2" src="http://www.digitalbase.eu/blog/wp-content/uploads/english/2008/12/imagepdt-install-p2.png" alt="" /></a></p>
<p>Expand the DLTK site and select the <strong>Dynamic Languages Toolkit &#8211; Core Frameworks</strong> or <strong>Dynamic Languages Toolkit &#8211; Core Frameworks SDK</strong> Feature.<br />
Then check the PDT SDK feature (PDT SDK 2.0.0 &#8230;.). Click install &amp; restart eclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/installing-eclipse-latest-php-development-tools-pdt-20/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blog : Moved to Wordpress</title>
		<link>http://www.digitalbase.eu/blog/blog-moved-to-wordpress/</link>
		<comments>http://www.digitalbase.eu/blog/blog-moved-to-wordpress/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 18:25:35 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=100</guid>
		<description><![CDATA[I hate reinventing the wheel. That&#8217;s why i decided to migrate this blog to wordpress. It takes alot of effort to write your own symfony plugin that holds the functionality of a full stack blogging platform (like wordpress, typepad, blogger &#8230;).
The Symfony Story
Initially we started by using the simpleBlogPlugin and modifying it to our needs. [...]]]></description>
			<content:encoded><![CDATA[<p>I hate reinventing the wheel. That&#8217;s why i decided to migrate this blog to wordpress. It takes alot of effort to write your own symfony plugin that holds the functionality of a full stack blogging platform (like wordpress, typepad, blogger &#8230;).</p>
<h2>The Symfony Story</h2>
<p>Initially we started by using the <a href="http://www.symfony-project.org/plugins/sfSimpleBlogPlugin" target="_blank">simpleBlogPlugin</a> and modifying it to our needs. Some of the things we added :</p>
<ul>
<li>multilanguage support : different posts in english / dutch</li>
<li>tag cloud : although they did add this in the new version</li>
<li>author information : links to digg/linkedin profile</li>
<li>tag / category pages</li>
<li>some SEO basics (different descriptions/keywords per post/page)</li>
<li>seperate rss feeds (for tag/description/author pages)</li>
<li>summary/excerpt support</li>
<li>&#8230;</li>
</ul>
<h2>Then why change to wordpress ?</h2>
<p>To keep this all updated with the changing symfony framework takes some time. Adding common features popular blogging platforms offer (comment, askimet integration, image editing, &#8230;) is a huge job. Thats why i decided to &#8220;migrate&#8221; this blog to wordpress.</p>
<p>I did a little hacking here &amp; there to have it support multiple languages, created a custom theme (holding the old digitalbase theme layout) and added some clearly missing core functions.</p>
<p>I&#8217;ll do a followup post with the things i changed and some code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/blog-moved-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

