<?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"
	>

<channel>
	<title>openxpc.source</title>
	<atom:link href="http://www.openxpc.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openxpc.org</link>
	<description>code is poetry!</description>
	<pubDate>Wed, 08 Apr 2009 22:28:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Lausitzblog - new theme</title>
		<link>http://www.openxpc.org/2009/04/lausitzblog-new-theme/</link>
		<comments>http://www.openxpc.org/2009/04/lausitzblog-new-theme/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 20:16:25 +0000</pubDate>
		<dc:creator>flezzfx</dc:creator>
		
		<category><![CDATA[projects]]></category>

		<category><![CDATA[Lausitz]]></category>

		<category><![CDATA[Lausitzblog]]></category>

		<guid isPermaLink="false">http://www.openxpc.org/?p=48</guid>
		<description><![CDATA[One of the openxpc projects comes out with a new wordpress theme. Check it out!
[Lausitzblog]
]]></description>
			<content:encoded><![CDATA[<p>One of the openxpc projects comes out with a new wordpress theme. Check it out!</p>
<p>[<a href="http://www.lausitzblog.de/">Lausitzblog</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openxpc.org/2009/04/lausitzblog-new-theme/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[LB] with multiple database server</title>
		<link>http://www.openxpc.org/2008/09/load-balancing-with-multiple-database-server/</link>
		<comments>http://www.openxpc.org/2008/09/load-balancing-with-multiple-database-server/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 19:35:51 +0000</pubDate>
		<dc:creator>flezzfx</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.openxpc.org/?p=36</guid>
		<description><![CDATA[Load balancing is perhaps one of the trickiest things in building a scalable system. But the problem with load balancing in database traffic can easily solved with this code snippet:
function db_cluster_connect($cluster,$usr,$pw){ //&#60;array&#62;,&#60;string&#62;,&#60;string&#62;
shuffle($cluster); //shuffle the array  (list) of available hosts
foreach($cluster as $host){
if($link = mysql_connect($host,$usr,$pw)) return $link;
}
return false;
}
]]></description>
			<content:encoded><![CDATA[<p>Load balancing is perhaps one of the trickiest things in building a scalable system. But the problem with load balancing in database traffic can easily solved with this code snippet:</p>
<blockquote><p>function db_cluster_connect($cluster,$usr,$pw){ //&lt;array&gt;,&lt;string&gt;,&lt;string&gt;<br />
shuffle($cluster); //shuffle the array  (list) of available hosts<br />
foreach($cluster as $host){<br />
if($link = mysql_connect($host,$usr,$pw)) return $link;<br />
}<br />
return false;<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.openxpc.org/2008/09/load-balancing-with-multiple-database-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>optimize webapplications [part 2]</title>
		<link>http://www.openxpc.org/2008/08/optimize-webapplications-part-2/</link>
		<comments>http://www.openxpc.org/2008/08/optimize-webapplications-part-2/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 21:43:58 +0000</pubDate>
		<dc:creator>flezzfx</dc:creator>
		
		<category><![CDATA[optimization]]></category>

		<category><![CDATA[webapplications]]></category>

		<guid isPermaLink="false">http://www.openxpc.org/?p=34</guid>
		<description><![CDATA[Another idea to optimize webapplications is putting the CSS on the top of a webpage and the JS at the end of the page. The trick is, that the browser doesn't stop rendering the page for loading a javascript file. If the page is rendered, the browser requests the javascript files and stores them in [...]]]></description>
			<content:encoded><![CDATA[<p>Another idea to optimize webapplications is putting the CSS on the top of a webpage and the JS at the end of the page. The trick is, that the browser doesn't stop rendering the page for loading a javascript file. If the page is rendered, the browser requests the javascript files and stores them in its cache. The performance isn't really touched, but it's a better user expierence to see a fast page with the including stylesheet.</p>
<p>So, put the stylesheets at the TOP and the javascripts at the BOTTOM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openxpc.org/2008/08/optimize-webapplications-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>optimize web applications [part 1]</title>
		<link>http://www.openxpc.org/2008/07/optimize-web-applications-part-1/</link>
		<comments>http://www.openxpc.org/2008/07/optimize-web-applications-part-1/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 22:48:04 +0000</pubDate>
		<dc:creator>flezzfx</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://www.openxpc.org/?p=30</guid>
		<description><![CDATA[A tricky way to optimize web applications is to generate .js and .css files with PHP. The particular rule here is to set the expires header in the future, so the browser isn't downloading these files again till the expires day of the header is arrived. If the browser cache is empty, the browser would [...]]]></description>
			<content:encoded><![CDATA[<p>A tricky way to optimize web applications is to generate .js and .css files with PHP. The particular rule here is to set the expires header in the future, so the browser isn't downloading these files again till the expires day of the header is arrived. If the browser cache is empty, the browser would cache the files again, otherwise not. A other benefit to use one PHP generated script is the agreement of the browser to load only 2 files parallel from one host. So you have only one .js file to download and one .css. In contrast to download for example 4 .js and 2 .css files in 3 sequences ( 6 files / 2 parallel downloads = 3 sequences) you only use one sequence. But watch at the code to understand: (pay attention to the headers)</p>
<blockquote><p><strong>Code</strong></p>
<p>&lt;?php<br />
header("Content-type: text/javascript");<br />
header("Cache-Control: cache");<br />
header("Expires: Mon, 1 Jan 2020 00:00:00 GMT");<br />
require("scripts/main.js");<br />
require("scripts2/ajax.js");<br />
?&gt;</p></blockquote>
<p>A addional trick to get a bit more performance is to generate gzipped files. To compress the file before response use:  ob_start("ob_gzhandler"); at the end of the code sequence.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openxpc.org/2008/07/optimize-web-applications-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>open extended power core goes online</title>
		<link>http://www.openxpc.org/2008/07/open-extended-power-core-goes-online/</link>
		<comments>http://www.openxpc.org/2008/07/open-extended-power-core-goes-online/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 16:34:29 +0000</pubDate>
		<dc:creator>flezzfx</dc:creator>
		
		<category><![CDATA[projects]]></category>

		<category><![CDATA[openxpc]]></category>

		<guid isPermaLink="false">http://www.openxpc.org/?p=9</guid>
		<description><![CDATA[Welcome everybody this is the open extended power core blog. OpenXPC is a new and fresh engineering team, that's working on a couple of software products. The field of intrests is very wide. The engineers work on some PHP, C#, Java and MYSQL projects... however the goal isn't a commercial one but a research.
We are [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome everybody this is the open extended power core blog. OpenXPC is a new and fresh engineering team, that's working on a couple of software products. The field of intrests is very wide. The engineers work on some PHP, C#, Java and MYSQL projects... however the goal isn't a commercial one but a research.</p>
<p>We are a really young team from 17 up to 20 years. We hope that our projects and approaches reaches you.</p>
<p>Stay tuned... openxpc team.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.openxpc.org/2008/07/open-extended-power-core-goes-online/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
