<?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 &#187; Linux</title>
	<atom:link href="http://gogs.info/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://gogs.info</link>
	<description>&#60;?php echo array_rand(array(&#039;web&#039;, &#039;dev&#039;, &#039;computers&#039;)); ?&#62;</description>
	<lastBuildDate>Fri, 18 Dec 2009 01:23:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>
		<item>
		<title>Removing require_once() calls from Zend Framework</title>
		<link>http://gogs.info/2008/10/removing-require_once-calls-from-zend-framework/</link>
		<comments>http://gogs.info/2008/10/removing-require_once-calls-from-zend-framework/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 22:39:29 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=44</guid>
		<description><![CDATA[If you are using Zend_Loader to load your classes in Zend Framework, there is no need for all the require_once() calls that are littered all over ZF files.
Some acctually report big improvements in responsiveness of their applications and increase in number of transactions per second their hardware can handle because require_once() is quite an expensive [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using <span><span>Zend</span></span>_Loader to load your classes in <span><span>Zend</span></span> Framework, there is no need for all the require_once() calls that are littered all over ZF files.</p>
<p><a href="http://www.whitewashing.de/blog/articles/73">Some <span><span>acctually</span></span> report big improvements</a> in responsiveness of their applications and increase in number of transactions per second their hardware can handle because require_once() is quite an expensive operation, especially if the required file is already included prior to the call.<span id="more-44"></span></p>
<p>If you are wondering how to comment out all the require_once() calls from your <span><span>Zend</span></span> Framework without doing it by hand here is the solution. Navigate to the folder where your installation of ZF resides on the server and just enter this into your shell:</p>
<p><span style="text-decoration: line-through;"><code>find ./ -type f -exec <span><span>sed</span></span> -i 's/require_once/\/\/require_once/' {} \;</code></span></p>
<p>My box is running PHP 5.2.6 with APC 3.0.19 and Zend Framework 1.7 PR and my include path is optimized for use with ZF. Stripping require_once() calls didn&#8217;t make a drastic impact on my setup and average performance gain was around 3 requests per second (from 63 to 66).</p>
<h3>Update (May 16, 2009.)</h3>
<p>Since the release of Zend Framework 1.8 there is a script to strip requre_once calls from ZF in the <a href="http://framework.zend.com/manual/en/performance.classloading.html#performance.classloading.striprequires">ZF Performance guide</a>. This script does not remove require_once calls to the new Zend_Loader_Autoloader component.</p>
<p><code>% cd path/to/ZendFramework/library<br />
% find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 | \<br />
xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2008/10/removing-require_once-calls-from-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dual display setup with Nvidia on Ubuntu 8.04</title>
		<link>http://gogs.info/2008/09/dual-display-setup-with-nvidia-on-ubuntu-804/</link>
		<comments>http://gogs.info/2008/09/dual-display-setup-with-nvidia-on-ubuntu-804/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 09:58:44 +0000</pubDate>
		<dc:creator>Goran Jurić</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[monitor]]></category>

		<guid isPermaLink="false">http://gogs.info/?p=29</guid>
		<description><![CDATA[Setting up multiple monitors under Linux can sometimes be quite a daunting task. TwinView, Xinerama, restricted drivers, editing configuration files, etc. doesn&#8217;t sound user friendly at all.
After you install Ubuntu and boot it the first time, you will get a notification in the tray asking you if you would like to install nVidia restricted drivers. [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up multiple monitors under Linux can sometimes be quite a daunting task. TwinView, Xinerama, restricted drivers, editing configuration files, etc. doesn&#8217;t sound user friendly at all.</p>
<p>After you install Ubuntu and boot it the first time, you will get a notification in the tray asking you if you would like to install nVidia restricted drivers. They don&#8217;t get installed by default because the source code for this drivers isn&#8217;t open source. Since we don&#8217;t care about that, and just want the damn thing to work install the drivers.<span id="more-29"></span></p>
<p>Next, install the <strong>NVIDIA X Server Settings</strong> using the Add/Remove application or type <strong>sudo apt-get install nvidia-settings</strong> into your terminal.</p>
<div id="attachment_32" class="wp-caption alignnone" style="width: 510px"><a href="http://gogs.info/wp-content/uploads/2008/09/nvidia-settings.png"><img class="size-full wp-image-32" title="nvidia-settings" src="http://gogs.info/wp-content/uploads/2008/09/nvidia-settings.png" alt="Add/Remove dialog" width="500" height="337" /></a><p class="wp-caption-text">Add/Remove dialog</p></div>
<p>You can now run the NVIDIA X Server Setting from System -&gt; Administration menu. All the changes you select there will be applied, but they will not be saved because saving them requires root privileges. The file that need to be changed (/etc/X11/xorg.conf) for the changes to become permanent can be changed only by the root user.</p>
<p>Fire up your terminal and first save a backup copy of your <strong>xorg.conf</strong> file:</p>
<p style="padding-left: 30px;"><strong>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup</strong></p>
<p>Now we can run the settings utility as root, enter:</p>
<p style="padding-left: 30px;"><strong>sudo nvidia-settings</strong></p>
<p>Select the X Server Display Configuration from the menu on the left and play around with the options, most of them are self explanatory except maybe for the almost all of the are self explanatory except maybe for the Configuration button.</p>
<div id="attachment_34" class="wp-caption alignnone" style="width: 510px"><a href="http://gogs.info/wp-content/uploads/2008/09/nvidia_x_server_settings.png"><img class="size-full wp-image-34" title="nvidia_x_server_settings" src="http://gogs.info/wp-content/uploads/2008/09/nvidia_x_server_settings.png" alt="NVIDIA X Server Settings" width="500" height="424" /></a><p class="wp-caption-text">NVIDIA X Server Settings</p></div>
<p>You can run the displays in two basic configurations: TwinView and Separate X screen. We will select TwinView because using separate X screens doesn&#8217;t allow you to drag application windows from one display to another, which kinda defeats the purpose of having a dual display setup.</p>
<p>When you are done configuring the displays and are satisfied with the output you get after hitting Apply it&#8217;s tame to save this changes to the X configuration files, so hit that button and you are ready, well, almost&#8230;</p>
<p>All of the dialogs where being placed in the center, showing one half on the left monitor and the other half on the other monitor. Maximizing windows would make them maximize across both of the screens, and the taskbar spanned across both of the monitors.</p>
<p>To fix this &#8220;little annoyance&#8221; I had to open up my terminal once again and enter:</p>
<p style="padding-left: 30px;"><strong>sudo dpkg-reconfigure xorg</strong></p>
<p>I restarted my X session (Ctrl + Alt + Backspace) and that was it, everything works as I expect. Application windows are located on my primary display and I can move them to my other display and when I hit maximise it only fills one of the displays. My tray and taskbar are also only on my primary display.</p>
<p>If you have an idea how to create additional taskbars for each of the monitors, and make each taskbar only show tasks from the monitor it is on, do tell. I really miss the functionality I get from using dual display setup under Windows using <a href="http://realtimesoft.com/ultramon/overview/">Ultramon</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gogs.info/2008/09/dual-display-setup-with-nvidia-on-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
