<?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>gog&#039;s info</title>
	<atom:link href="http://gogs.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://gogs.info</link>
	<description></description>
	<lastBuildDate>Wed, 27 Apr 2011 15:02:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Free eBook on configuring a mail server with Postfix</title>
		<link>http://gogs.info/2011/04/free-ebook-on-configuring-a-mail-server-with-postfix/</link>
		<comments>http://gogs.info/2011/04/free-ebook-on-configuring-a-mail-server-with-postfix/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 13:06:11 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=197</guid>
		<description><![CDATA[Today I finally managed to release a first public version of a book I have been working on for a while. If you ever wanted to build a mail server but all the tutorials and howtos on the internet where too vague or old, this is a book for you.  It will guide you through [...]]]></description>
			<content:encoded><![CDATA[<p>Today I finally managed to release a first public version of a book I have been working on for a while.</p>
<p>If you ever wanted to build a mail server but all the tutorials and howtos on the internet where too vague or old, <a href="http://gogs.info/books/debian-mail/">this is a book for you</a>.  It will guide you through the setup of a complete email server on a latest Debian 6.0 (Squeeze) distribution. I tried to go beyond just listing steps needed to get a working email server online. Hopefully this book explains a little bit more about the <strong>why</strong> and not just <strong>how</strong>.</p>
<p>As everything else in life, this book is a work in progress and I would really appreciate all the feedback I could get. Both positive and negative. I have tried to give credit, where credit is due, but there is always a chance I missed to attribute somebody for the work they did. Don&#8217;t hesitate to point that out.</p>
<p>The book was written in Docbook 5.0 format and when my free time allows it I will try to explain a little bit more about the whole process because finding tried and tested information about myriad of choices and tools in the Docbook publishing chain proved to be a not so easy task.</p>
<p>I hope you will enjoy reading <a href="http://gogs.info/books/debian-mail/">Building a mail server on Debian 6.0</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2011/04/free-ebook-on-configuring-a-mail-server-with-postfix/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The Rename refactoring cannot be applied in this context</title>
		<link>http://gogs.info/2010/09/the-rename-refactoring-cannot-be-applied-in-this-context/</link>
		<comments>http://gogs.info/2010/09/the-rename-refactoring-cannot-be-applied-in-this-context/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 13:45:35 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[refactoring]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=156</guid>
		<description><![CDATA[I have been using NetBeans for a couple of months now, and I must admit that except for a quirk here and there the overall experience of switching from Zend Studio was a pleasant one. Since switching to 6.9 I had some trouble using the integrated Refactoring utility. There error I got was: The Rename [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using NetBeans for a couple of months now, and I must admit that except for a quirk here and there the overall experience of switching from Zend Studio was a pleasant one.</p>
<p>Since switching to 6.9 I had some trouble using the integrated Refactoring utility. There error I got was: <code>The Rename refactoring cannot be applied in this context.</code></p>
<p>The solution is a simple one, use the built in shortcut &#8220;Ctrl + R&#8221; (or &#8220;Cmd + R&#8221; on a Mac).</p>
<p>The other thing that bothered me is that when you select a method or class and use the context menu to navigate to the declaration of the method/class Netbeans doesn&#8217;t do a thing. To make this work the method/class name <strong>must not</strong> be selected (or you can use the  + click shortcut).</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2010/09/the-rename-refactoring-cannot-be-applied-in-this-context/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blank page after a quick reply (vBulletin)</title>
		<link>http://gogs.info/2010/03/blank-page-after-a-quick-reply-vbulletin/</link>
		<comments>http://gogs.info/2010/03/blank-page-after-a-quick-reply-vbulletin/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 19:02:00 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[vbulletin]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=128</guid>
		<description><![CDATA[While launching the Google Adsense on Gameplay and its forum (vBulletin 3.8) we ran into a strange issue while posting quick reply messages to the forum with Firefox. After hitting submit the page turned blank although the comment was apparently posted. We have integrated our Adsense code into the postbit vBulletin template after the last [...]]]></description>
			<content:encoded><![CDATA[<p>While launching the Google Adsense on <a href="http://www.gameplay.hr/">Gameplay</a> and its forum (vBulletin 3.8) we ran into a strange issue while posting quick reply messages to the forum with Firefox. After hitting submit the page turned blank although the comment was apparently posted.</p>
<p>We have integrated our Adsense code into the postbit vBulletin template after the last post on the page using this syntax:</p>
<pre class="xml"><span class="sc3"><span class="re1">&lt;if</span> <span class="re0">condition</span>=<span class="st0">&quot;$post['islastshown']&quot;</span><span class="re2">&gt;</span></span>
     Adsense code here.
<span class="sc3"><span class="re1">&lt;/if<span class="re2">&gt;</span></span></span></pre>
<p>The problem happend because Quick Reply uses asynchronous javascript to submit the reply and render the new reply at the and of the page. Since we are embedding the Adsense code if the post is &#8220;last shown&#8221; this renderd the Google Adsense code twice and FF &#8220;broke&#8221;.</p>
<p>The fix is quite simple, you just have to check if the post is being sent as a response to the asynchronous request, so the new and working code looks like this:</p>
<pre class="xml">
<span class="sc3"><span class="re1">&lt;if</span> <span class="re0">condition</span>=<span class="st0">&quot;$post['islastshown'] AND !$GLOBALS['vbulletin']-&gt;</span></span>GPC['ajax']&quot;&gt;
    Adsense code here.
<span class="sc3"><span class="re1">&lt;/if<span class="re2">&gt;</span></span></span></pre>
<p>Of course this is not the only case which causes vBulletin forum to render a blank page. For a list of other possible reasons take a look at <a href="http://www.vbulletin.com/docs/html/blank_pages">this chapter in the  official documentation</a>.</p>
<p>If you are interested you can also take a look at this exhaustive <a href="http://forum.vbulletinsetup.com/f18/vbulletin-template-conditionals-list-2185.html">list of conditionals</a> which you can use in your vBulletin templates.</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2010/03/blank-page-after-a-quick-reply-vbulletin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set filenames with Nginx secure download module</title>
		<link>http://gogs.info/2010/03/set-filenames-with-nginx-secure-download-module/</link>
		<comments>http://gogs.info/2010/03/set-filenames-with-nginx-secure-download-module/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 16:34:40 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=116</guid>
		<description><![CDATA[When we switched from Lighttpd to Nginx a couple of months ago we were faced with an annoying problem. Paying subscribers to our site have an option of downloading PDF files of the magazine. With Lighttpd we were using mod_secdownload to provide this functionality without exposing the files to the public. We compiled Nginx with [...]]]></description>
			<content:encoded><![CDATA[<p>When we switched from <a href="http://www.lighttpd.net/">Lighttpd</a> to <a href="http://wiki.nginx.org/">Nginx</a> a couple of months ago we were faced with an annoying problem.</p>
<p>Paying subscribers to our site have an option of downloading PDF files of the magazine. With Lighttpd we were using <a href="http://redmine.lighttpd.net/wiki/lighttpd/docs:modsecdownload">mod_secdownload</a> to provide this functionality without exposing the files to the public. We compiled Nginx with the <a href="http://wiki.nginx.org/NginxHttpSecureDownload">secure_download_module</a> and it kinda worked.</p>
<p>Files were downloading as expected but the file names where all messed up. Download links where generated for each user and they looked something like this: <em>/pdf/645.pdf/097ac16cb19ff6c163d6f813fdd44b4d/4b283bfa</em> and the browser saved the file to the users hard drive with the file name of <em>4b283bfa</em>. Since the file name didn&#8217;t have an extension it was impossible for the OS to know that is has to use a PDF reader to open the file.</p>
<p>Finally we managed to force the file name to the browser (download client) with a configuration directive that looks something like this:</p>
<pre class="bash"><span class="co0"># PDF download</span>
 location <span class="sy0">/</span>pdf <span class="br0">&#123;</span>
    secure_download on;
    secure_download_secret <span class="re1">$request_addr</span>;
    secure_download_path_mode <span class="kw2">file</span>;
    root <span class="sy0">/</span>path<span class="sy0">/</span>to<span class="sy0">/</span>dir<span class="sy0">/</span>with<span class="sy0">/</span>pdfs

    <span class="co0"># Extract the name of the PDF</span>
    <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re1">$uri</span> ~ <span class="st0">&quot;^/pdf/(.+\.pdf)$&quot;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
        <span class="kw1">set</span> <span class="re1">$filename</span> <span class="re4">$1</span>;
    <span class="br0">&#125;</span>

    <span class="co0"># Set appropriate headers</span>
    add_header Content-Disposition <span class="st0">&quot;attachment; filename=<span class="es2">$filename</span>&quot;</span>;
 <span class="br0">&#125;</span></pre>
<p>And that&#8217;s all there is to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2010/03/set-filenames-with-nginx-secure-download-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UTF-8 encoding and the TinyMCE SpellCheck plugin</title>
		<link>http://gogs.info/2010/03/utf-8-encoding-and-the-tinymce-spellcheck-plugin/</link>
		<comments>http://gogs.info/2010/03/utf-8-encoding-and-the-tinymce-spellcheck-plugin/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 14:42:02 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[spellcheck]]></category>
		<category><![CDATA[tinymce]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=108</guid>
		<description><![CDATA[If you have tried using the the TinyMCE spell check plugin on UTF-8 encoded page with the PSpellShell adapter you probably noticed that the implementation is broken. The spelling suggestions do not contain properly encoded UTF-8 characters. Since the creators of TinyMCE moved to Github it was a great opportunity to try and push these [...]]]></description>
			<content:encoded><![CDATA[<p>If you have tried using the the <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker">TinyMCE spell check plugin</a> on UTF-8 encoded page with the PSpellShell adapter you probably noticed that the implementation is broken. The spelling suggestions do not contain properly encoded UTF-8 characters.</p>
<p>Since the creators of TinyMCE moved to <a href="http://github.com/">Github</a> it was a great opportunity to try and push these changes to the master branch. If you need this you can look at the <a href="http://github.com/gjuric/tinymce_spellchecker_php/commit/5d8430ccb116ae83218a48c0dc36088ecc250596">changes that need to be made to the PSpellShell adapter</a> or just clone my <a href="http://github.com/gjuric/tinymce_spellchecker_php">fork of the spellcheck plugin</a>.</p>
<p>p.s. Have I mentioned how awesome Git and Github are?</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2010/03/utf-8-encoding-and-the-tinymce-spellcheck-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Give your .02$ to the ZF project</title>
		<link>http://gogs.info/2009/12/give-your-02-to-the-zf-project/</link>
		<comments>http://gogs.info/2009/12/give-your-02-to-the-zf-project/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 01:23:35 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[zf]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=101</guid>
		<description><![CDATA[Zend Framework project is about to start working on the 2.0 version. If you are using ZF in your projects, but you are not interested in contributing ideas to the project by joining the zf-contributors mailing list, the least you could do is provide feedback about your ZF experience by answering a survey. You can [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Framework project is about to start working on the 2.0 version. If you are using ZF in your projects, but you are not interested in contributing ideas to the project by joining the zf-contributors mailing list, the least you could do is provide feedback about your ZF experience by answering a <a href="http://bit.ly/65khf8">survey</a>.</p>
<p>You can find more info at the <a href="http://devzone.zend.com/article/11485-Zend-Framework-Survey-for-2009">devzone</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2009/12/give-your-02-to-the-zf-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google confused with 301 redirects</title>
		<link>http://gogs.info/2009/11/google-confused-with-301-redirects/</link>
		<comments>http://gogs.info/2009/11/google-confused-with-301-redirects/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 11:30:23 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Googlebot]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[URI]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=99</guid>
		<description><![CDATA[It has been almost I year since we launched nacional.hr. During the migration from the old content management we thoroughly went through the whole system and made sure that all the old URIs are still working. Although cool URIs don&#8217;t change sometimes you have no choice and that was the case with this site. We [...]]]></description>
			<content:encoded><![CDATA[<p>It has been almost I year since we launched <a href="http://www.nacional.hr/">nacional.hr</a>. During the migration from the old content management we thoroughly went through the whole system and made sure that all the old URIs are still working. Although <a href="http://www.w3.org/Provider/Style/URI">cool URIs don&#8217;t change</a> sometimes you have no choice and that was the case with this site. We had to enhance some of the URIs for SEO purpose and some of them were just clashing with our URI scheme it we did not want to maintain a large list of legacy URIs in our rewrite rules.</p>
<p>We hooked a legacy URI &#8220;plugin&#8221; in our error controller so that checking for old URIs does not interfere with the loading times of our system unless really necessary and created 301 (permanent) redirects to our new URI scheme patted ourselves on the back an forgot all about it until recently.</p>
<p>While checking the access logs for some unusual traffic spikes we where getting we noticed that Google stills checks our old category URIs and follows the redirects that we have created. The most unusual things was that the URIs where checked very often. Links to our news category pages where crawled by Google a couple of times a minute during the course of couple of days. To add to the confusion the categories that are most often crawled our the ones that list articles from our print issue which get updated once a week, the ones that are updated many times a day get crawled at a regular pace.</p>
<p>Any ideas what could cause something like this?</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2009/11/google-confused-with-301-redirects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hudson and PHP Howto</title>
		<link>http://gogs.info/2009/11/hudson-and-php-howto/</link>
		<comments>http://gogs.info/2009/11/hudson-and-php-howto/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 18:53:59 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ci]]></category>
		<category><![CDATA[continuous Integration]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hudson]]></category>
		<category><![CDATA[phpundercontrol]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[unit testing]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=93</guid>
		<description><![CDATA[After a couple of weeks of playing with phpUnderControl and reading some nice reviews of Hudson I decided to give Hudson a try. And boy am I glad I did. Hudson definitively won me over with its clean interface and easy to setup tasks. Even plugin installation is a breeze and you can even do [...]]]></description>
			<content:encoded><![CDATA[<p>After a couple of weeks of playing with <a href="http://www.phpundercontrol.org/about.html">phpUnderControl</a> and reading some nice reviews of <a href="http://hudson-ci.org/">Hudson</a> I decided to give Hudson a try. And boy am I glad I did.</p>
<p>Hudson definitively won me over with its clean interface and easy to setup tasks. Even plugin installation is a breeze and you can even do it right out of the comfort of your browser.</p>
<p>I found a nice tutorial about setting up Hudson with PHP <a href="http://toptopic.wordpress.com/2009/02/26/php-and-hudson/">here</a> but I had some question marks hovering over my head during the installation so I have decided to write a more detailed installation tutorial.</p>
<p>If you are running a Debian flavored distribution (yes I mean Ubuntu) take a look at the <a href="http://gogs.info/wiki/debian/hudson">tutorial</a>, you should have <a href="http://gogs.info/wiki/debian/hudson">Hudson working with your PHP projects</a> in no time.</p>
<p>Bonus points if you integrate your Hudson installation to act as your staging server.</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2009/11/hudson-and-php-howto/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Install phpUnit on Mac OSX 10.6</title>
		<link>http://gogs.info/2009/11/install-phpunit-on-mac-osx-10-6/</link>
		<comments>http://gogs.info/2009/11/install-phpunit-on-mac-osx-10-6/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 15:08:26 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpUnit]]></category>
		<category><![CDATA[unit testing]]></category>
		<category><![CDATA[Zend Studio]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=90</guid>
		<description><![CDATA[Here is another quick How-to so I don&#8217;t have to look it up next time. Open up Terminal.app and enter &#8220;sudo su&#8221; and enter your password when asked (I guess you must be using an account with administrator privileges). pear upgrade PEAR pear channel-discover pear.phpunit.de pear install --alldeps phpunit/PHPUnit That&#8217;s it. phpunit binary should be [...]]]></description>
			<content:encoded><![CDATA[<p>Here is another quick How-to so I don&#8217;t have to look it up next time.</p>
<p>Open up Terminal.app and enter &#8220;sudo su&#8221; and enter your password when asked (I guess you must be using an account with administrator privileges).</p>
<pre>pear upgrade PEAR
pear channel-discover pear.phpunit.de
pear install --alldeps phpunit/PHPUnit</pre>
<p>That&#8217;s it. phpunit binary should be in your path now.</p>
<p>p.s.</p>
<p>For some reason phpUnit that is being used by Zend Studios (6.1) does not have mbstring extension compiled and that makes it unusable for me. I guess there is a way to force PHP interpreter that is being used in the Zend Studio to run with the mbstring extension, but this is a faster approach. Hudson or phpUnderControl (whichever you like) will take care of the code coverage reports.</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2009/11/install-phpunit-on-mac-osx-10-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Munin on Debian Lenny &#8211; Howto</title>
		<link>http://gogs.info/2009/09/munin-on-debian-lenny-howto/</link>
		<comments>http://gogs.info/2009/09/munin-on-debian-lenny-howto/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 21:40:04 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=87</guid>
		<description><![CDATA[I have been playing with an excellent monitoring tool Munin. Since I had some glitches while trying to install it on my server a have decided to update my Wiki a little bit and add a tutorial about setting up Munin on Debian Lenny. It is quite late and I do not feel like proofreading [...]]]></description>
			<content:encoded><![CDATA[<p>I have been playing with an excellent monitoring tool <a href="http://munin.projects.linpro.no/">Munin</a>. Since I had some glitches while trying to install it on my server a have decided to update <a href="http://gogs.info/wiki/">my Wiki</a> a little bit and add a tutorial about <a href="http://gogs.info/wiki/debian/munin">setting up Munin on Debian Lenny</a>. It is quite late and I do not feel like proofreading this entry right now so you will have to forgive me if I forgot something.</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2009/09/munin-on-debian-lenny-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

