<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Technological blog « They call me barszcz</title>
	
	<link>http://tech.barszcz.info</link>
	<description>Maciej Marczewski about programming, webdesign, administration and other computer stuff</description>
	<lastBuildDate>Wed, 30 Nov 2011 21:46:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/BarszczTechBlog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="barszcztechblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>My site was listed as beautiful WordPress-powered website</title>
		<link>http://tech.barszcz.info/2011/08/02/my-site-was-listed-as-beautiful-wordpress-powered-website/</link>
		<comments>http://tech.barszcz.info/2011/08/02/my-site-was-listed-as-beautiful-wordpress-powered-website/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 20:31:51 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=1110</guid>
		<description><![CDATA[Ann Cheen listed my site on her Showcase of Beautiful WordPress-Powered Websites post on Hongkiat.com (weblog dedicated to designers and bloggers).]]></description>
			<content:encoded><![CDATA[<p>Ann Cheen listed my site on her <a href="http://www.hongkiat.com/blog/beautiful-wordpress-websites/" target="_blank">Showcase of Beautiful WordPress-Powered Websites</a> post on <a href="http://http://www.hongkiat.com/blog/" target="_blank">Hongkiat.com</a> (weblog dedicated to designers and bloggers). <img src='http://tech.barszcz.info/wp-content/plugins/smilies-themer/Phoenity/smile.png' alt=':)' class='wp-smiley' /> </p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/J61CbnH7_a0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2011/08/02/my-site-was-listed-as-beautiful-wordpress-powered-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>brscPicasa starts to live its own life</title>
		<link>http://tech.barszcz.info/2011/05/18/brscpicasa-starts-to-live-its-own-life/</link>
		<comments>http://tech.barszcz.info/2011/05/18/brscpicasa-starts-to-live-its-own-life/#comments</comments>
		<pubDate>Wed, 18 May 2011 14:43:52 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[brscPicasa]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Picasa]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=1095</guid>
		<description><![CDATA[I&#8217;ve just got email from Softpedia team saying that they&#8217;ve added my brscPicasa plugin to their page. Nice I&#8217;ve also found my plugin on Download Route.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just got email from <a href="http://www.softpedia.com/">Softpedia</a> team saying that they&#8217;ve added my <a href="http://tech.barszcz.info/projects/brscpicasa-jquery-plugin/">brscPicasa</a> plugin to their <a href="http://webscripts.softpedia.com/script/Image-Galleries/brscPicasa-68888.html">page</a>. Nice <img src='http://tech.barszcz.info/wp-content/plugins/smilies-themer/Phoenity/smile.png' alt=':)' class='wp-smiley' /> </p>
<span id="more-1095"></span>
<p>I&#8217;ve also found my plugin on <a href="http://scripts.downloadroute.com/brscPicasa-e44f9d99/downloader.html">Download Route</a>.</p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/RxVpWSsvAD4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2011/05/18/brscpicasa-starts-to-live-its-own-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>brscPicasa 1.1 released and added to jQuery plugins page</title>
		<link>http://tech.barszcz.info/2011/05/05/brscpicasa-1-1-released-and-added-to-jquery-plugins-page/</link>
		<comments>http://tech.barszcz.info/2011/05/05/brscpicasa-1-1-released-and-added-to-jquery-plugins-page/#comments</comments>
		<pubDate>Wed, 04 May 2011 22:46:30 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[brscPicasa]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Picasa]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=1087</guid>
		<description><![CDATA[<div><img width="280" height="90" src="http://files.barszcz.info/tech.barszcz.info/wp-content/uploads/2010/10/brscPicasa-280x90.jpg" class="attachment-medium wp-post-image" alt="brscPicasa" title="brscPicasa" /></div>Just updated brscPicasa plugin. Changes: Added support for all major browsers (not only those that support CORS) Replace also links with https protocol (https://picasaweb.google.com/&#8230;) Bug fixed: links without usefull information (http://picasaweb.google.com/) should not be replaced Code optimizations Fixed and modified demo page, added demos with Colorbox I&#8217;ve also added brscPicasa to jQuery plugins repositiory.]]></description>
			<content:encoded><![CDATA[<div><img width="280" height="90" src="http://files.barszcz.info/tech.barszcz.info/wp-content/uploads/2010/10/brscPicasa-280x90.jpg" class="attachment-medium wp-post-image" alt="brscPicasa" title="brscPicasa" /></div><p>Just updated <a href="http://tech.barszcz.info/projects/brscpicasa-jquery-plugin/">brscPicasa</a> plugin.</p>
<span id="more-1087"></span>
<p><strong>Changes:</strong></p>
<ul class="changelog-changes">
	<li>Added support for all major browsers (not only those that support <a href="http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing#Browser_Support">CORS</a>)</li>
	<li>Replace also links with https protocol (https://picasaweb.google.com/&#8230;)</li>
	<li>Bug fixed: links without usefull information (http://picasaweb.google.com/) should not be replaced</li>
	<li>Code optimizations</li>
	<li>Fixed and modified demo page, added demos with Colorbox</li>
</ul>

<p>I&#8217;ve also added brscPicasa to <a href="http://plugins.jquery.com/project/brscPicasa">jQuery plugins</a> repositiory.</p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/BJkDfpydQh8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2011/05/05/brscpicasa-1-1-released-and-added-to-jquery-plugins-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Purge configuration files of removed packages on Debian based systems</title>
		<link>http://tech.barszcz.info/2011/04/30/purge-configuration-files-of-removed-packages-on-debian-based-systems/</link>
		<comments>http://tech.barszcz.info/2011/04/30/purge-configuration-files-of-removed-packages-on-debian-based-systems/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 11:45:47 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=1069</guid>
		<description><![CDATA[aptitude search '~c' aptitude purge '~c']]></description>
			<content:encoded><![CDATA[<pre><code>aptitude search '~c'
aptitude purge '~c'</code></pre>
<span id="more-1069"></span><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/qncSqQCAuos" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2011/04/30/purge-configuration-files-of-removed-packages-on-debian-based-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>brscPicasa jQuery plugin released</title>
		<link>http://tech.barszcz.info/2010/10/07/brscpicasa-jquery-plugin-released/</link>
		<comments>http://tech.barszcz.info/2010/10/07/brscpicasa-jquery-plugin-released/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 23:22:22 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[brscPicasa]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Picasa]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=1064</guid>
		<description><![CDATA[<div><img width="280" height="90" src="http://files.barszcz.info/tech.barszcz.info/wp-content/uploads/2010/10/brscPicasa-280x90.jpg" class="attachment-medium wp-post-image" alt="brscPicasa" title="brscPicasa" /></div>I host most of my photos on Picasa Web Albums so I needed some simple way to embed my photos or whole albums on my WordPress blog (or on any other page). I did not want to insert any special tags or shortcodes on pages because I don&#8217;t like them and they look stupid if you turn off plugin that uses those shortcodes. I just wanted to insert link to Picasa photo or album page on my page and it should be changed into photo or list of photos automagically After searching and trying some WordPress plugins and inspired by [...] <span class="more-link-container"><a class="more-link" href="http://tech.barszcz.info/2010/10/07/brscpicasa-jquery-plugin-released/">read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div><img width="280" height="90" src="http://files.barszcz.info/tech.barszcz.info/wp-content/uploads/2010/10/brscPicasa-280x90.jpg" class="attachment-medium wp-post-image" alt="brscPicasa" title="brscPicasa" /></div><p>I host most of my photos on Picasa Web Albums so I needed some simple way to embed my photos or whole albums on my WordPress blog (or on any other page). I did not want to insert any special tags or shortcodes on pages because I don&#8217;t like them and they look stupid if you turn off plugin that uses those shortcodes. I just wanted to insert link to Picasa photo or album page on my page and it should be changed into photo or list of photos automagically <img src='http://tech.barszcz.info/wp-content/plugins/smilies-themer/Phoenity/smile.png' alt=':)' class='wp-smiley' /> </p>
<span id="more-1064"></span>

<p>After searching and trying some WordPress plugins and inspired by my colleague&#8217;s <a href="http://keemor.com/lang/pl-pl/2010/08/31/galeria-jquery-picbox-i-json-z-picasy/">post</a> I decided to write my own jQuery plugin for my needs. And that&#8217;s how <strong><a href="http://tech.barszcz.info/projects/brscpicasa-jquery-plugin/">brscPicasa</a></strong> came to life. It works exactly as I wanted: it finds links to Picasa Web Albums on page and replaces them with photos or photos lists. No configuration needed, no special codes and special markup. It can be also easily integrated with any lightbox clone plugin (I use <a href="http://colorpowered.com/colorbox/">ColorBox</a> on my websites). More info can be found on <a href="http://tech.barszcz.info/projects/brscpicasa-jquery-plugin/"><strong>brscPicasa</strong> plugin page</a>.</p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/YbR4ul1qGHQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2010/10/07/brscpicasa-jquery-plugin-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Hive + W3 Total Cache</title>
		<link>http://tech.barszcz.info/2010/08/30/wp-hive-w3-total-cache/</link>
		<comments>http://tech.barszcz.info/2010/08/30/wp-hive-w3-total-cache/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 00:26:04 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=1008</guid>
		<description><![CDATA[<div><img width="280" height="90" src="http://files.barszcz.info/tech.barszcz.info/wp-content/uploads/2010/08/wp-hive_and_w3-total-cache-280x90.png" class="attachment-medium wp-post-image" alt="wp-hive_and_w3-total-cache" title="wp-hive_and_w3-total-cache" /></div>Recently I have discovered great caching plugin for WordPress: W3 Total Cache. I&#8217;m not going to write how to install and use it (well maybe I will in some other post later but there&#8217;s a lot of informations on the web about it) but I&#8217;ll tell you one thing: this plugin is much more powerful than very popular and commonly used WP Super Cache and you should at least try it. There is one problem with W3 Total Cache (W3TC) though: it&#8217;s not compatible with WP Hive plugin so if you&#8217;re using WP Hive you&#8217;ll have to hack W3TC and [...] <span class="more-link-container"><a class="more-link" href="http://tech.barszcz.info/2010/08/30/wp-hive-w3-total-cache/">read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div><img width="280" height="90" src="http://files.barszcz.info/tech.barszcz.info/wp-content/uploads/2010/08/wp-hive_and_w3-total-cache-280x90.png" class="attachment-medium wp-post-image" alt="wp-hive_and_w3-total-cache" title="wp-hive_and_w3-total-cache" /></div><p>Recently I have discovered great caching plugin for WordPress: <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a>. I&#8217;m not going to write how to install and use it (well maybe I will in some other post later but there&#8217;s a lot of informations on the web about it) but I&#8217;ll tell you one thing: this plugin is much more powerful than very popular and commonly used <a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> and you should at least try it. There is one problem with W3 Total Cache (W3TC) though: it&#8217;s not compatible with <a href="http://wordpress.org/extend/plugins/wp-hive/">WP Hive</a> plugin so if you&#8217;re using WP Hive you&#8217;ll have to hack W3TC and I&#8217;ll show you how I did it.</p>
<span id="more-1008"></span>
<p>One important note: <strong>solution described here will only work for multiple blogs installed in subdomains</strong>, it&#8217;ll probably not work for those installed in subdirectories (but I did not tested that).</p>

<p>OK, let&#8217;s start.<br />
Both Wp Hive and W3 Total Cache are using <code>wp-content/db.php</code> file and they both overwrite this file during installation (it is not WordPress core file). So when you install W3TC it&#8217;ll break WP Hive by overwriting <code>wp-content/db.php</code> with its own content. Solution is simple: you have to merge code needed by WP Hive and W3TC into one <code>wp-content/db.php</code> file. You&#8217;ll find source files for merge operation in <code>wp-content/plugins/wp-hive/db.php</code> and <code>wp-content/plugins/w3-total-cache/wp-content/db.php</code>. Do not concatenate those files because you may get some strange errors (well at least I had). So do not create something like this:</p>
<pre><code>&lt;?php
/*
 WP Hive...
 */
...
?&gt;

&lt;?php
/**
 * W3 Total Cache Database module
 */
...

</code></pre>
<p>but better something like that:</p>
<pre><code>&lt;?php
/*
 WP Hive...
 */
...


/**
 * W3 Total Cache Database module
 */
...

?&gt;
</code></pre>
<p>Difference is simple: closing PHP tag was added at the end, closing and opening PHP tags between plugins code were removed.</p>

<p>OK, so now both plugins are properly installed but W3TC needs to know that we have multiblogging feature on our installation. Thankfully it has support for WPMU and WordPress 3 &#8220;network of sites&#8221; new feature. We will just modify two functions used by W3TC to detect if it&#8217;s in multisite WordPress environment. We&#8217;ll be editing <code>wp-content/plugins/w3-total-cache/inc/define.php</code> file. Find this portion of code (it&#8217;s somewhere around line 255):</p>
<pre><code>/**
 * Returns if there is multisite mode
 *
 * @return boolean
 */
function w3_is_multisite()
{
    return (w3_is_wpmu() || w3_is_network_mode());
}

/**
 * Returns true if WPMU uses vhosts
 *
 * @return boolean
 */
function w3_is_vhost()
{
    return ((defined('SUBDOMAIN_INSTALL') &amp;&amp; SUBDOMAIN_INSTALL) || (defined('VHOST') &amp;&amp; VHOST == 'yes'));
}
</code></pre>
<p>And change it into that:</p>
<pre><code>/**
 * Returns if there is multisite mode
 *
 * @return boolean
 */
function w3_is_multisite()
{
    // WP Hive support hack
    return true;
    return (w3_is_wpmu() || w3_is_network_mode());
}

/**
 * Returns true if WPMU uses vhosts
 *
 * @return boolean
 */
function w3_is_vhost()
{
    // WP Hive support hack
    return true;
    return ((defined('SUBDOMAIN_INSTALL') &amp;&amp; SUBDOMAIN_INSTALL) || (defined('VHOST') &amp;&amp; VHOST == 'yes'));
}
</code></pre>
<p>That&#8217;s all folks! <img src='http://tech.barszcz.info/wp-content/plugins/smilies-themer/Phoenity/smile.png' alt=':)' class='wp-smiley' /> Simple isn&#8217;t it?</p>
<p>W3 Total Cache should now create separate caching folders for each WP Hive powered blog (but not for those in subdirectories). Of course you have to enable and configure W3TC for each blog separately.</p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/cOGn5bpKr_s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2010/08/30/wp-hive-w3-total-cache/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Cloning vs copying virtual machines in VirtualBox</title>
		<link>http://tech.barszcz.info/2010/07/28/cloning-vs-copying-virtual-machines-in-virtualbox/</link>
		<comments>http://tech.barszcz.info/2010/07/28/cloning-vs-copying-virtual-machines-in-virtualbox/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 08:56:51 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=992</guid>
		<description><![CDATA[VirtualBox is a great virtualization software but it is sometimes hard to do some advanced tasks in it. One of those tasks can be creating copies of virtual machines. There&#8217;s no graphic interface for cloning virtual machines but there&#8217;s command line tool called VBoxManage which can be used: VBoxManage clonevdi source.vdi target.vdi It&#8217;s simple and straightforward to use but there&#8217;s one thing you have to remember: you have to be in VirtualBox directory (on Linux it&#8217;s ~/.VirtualBox/) or in directory with virtual hard disks of VirtualBox machines (~/.VirtualBox/HardDisks/). For most use cases this limitation is OK but what if you [...] <span class="more-link-container"><a class="more-link" href="http://tech.barszcz.info/2010/07/28/cloning-vs-copying-virtual-machines-in-virtualbox/">read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.virtualbox.org/">VirtualBox</a> is a great virtualization software but it is sometimes hard to do some advanced tasks in it. One of those tasks can be creating copies of virtual machines.</p>
<span id="more-992"></span>
<p>There&#8217;s no graphic interface for cloning virtual machines but there&#8217;s command line tool called <em>VBoxManage</em> which can be used:</p>
<pre><code>VBoxManage clonevdi source.vdi target.vdi</code></pre>
<p>It&#8217;s simple and straightforward to use but there&#8217;s one thing you have to remember: you have to be in VirtualBox directory (on Linux it&#8217;s <code>~/.VirtualBox/</code>) or in directory with virtual hard disks of VirtualBox machines (<code>~/.VirtualBox/HardDisks/</code>). For most use cases this limitation is OK but what if you have your virtual machine in some other directory (for instance on virtual encrypted disk created by <a href="http://www.truecrypt.org/">TrueCrypt</a> or you just created subdirectories in <code>~/.VirtualBox/HardDisks/</code> to separate Linux machines from Windows machines)? Above command will not work in this case (at least not in VirtualBox 3.2.6 and below). To bypass this limitation you have to copy virtual machine:</p>
<pre><code>cp ~/.VirtualBox/HardDisks/some_directory/source.vdi ~/.VirtualBox/HardDisks/some_directory/target.vdi</code></pre>
<p>and then generate new UUID for it:</p>
<pre><code>VBoxManage internalcommands sethduuid ~/.VirtualBox/HardDisks/some_directory/target.vdi</code></pre>
<p>Now you can create new virtual machine in VirtualBox GUI and use target.vdi as its hard disk.</p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/uQ3IG8flrig" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2010/07/28/cloning-vs-copying-virtual-machines-in-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple blogs and multiple languages with WP Hive</title>
		<link>http://tech.barszcz.info/2010/07/23/multiple-blogs-and-multiple-languages-with-wp-hive/</link>
		<comments>http://tech.barszcz.info/2010/07/23/multiple-blogs-and-multiple-languages-with-wp-hive/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 22:16:47 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=986</guid>
		<description><![CDATA[I have three sites on one WordPress installation thanks to great plugin called WP Hive. I&#8217;m not going to write about installation and configuration of this plugin because everything can be found on plugin page. I&#8217;ll just say that it&#8217;s very easy to setup and to use. However there can be one problem with WP Hive: it does not allow to have multiple blogs with different languages. But I found a simple solution for this and that&#8217;s why I&#8217;m writing this post Here is what I want to have on one WordPress installation: one portfolio page in two (or more) [...] <span class="more-link-container"><a class="more-link" href="http://tech.barszcz.info/2010/07/23/multiple-blogs-and-multiple-languages-with-wp-hive/">read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<p>I have three sites on one WordPress installation thanks to great plugin called <a href="http://wp-hive.com/">WP Hive</a>. I&#8217;m not going to write about installation and configuration of this plugin because everything can be found on <a href="http://wp-hive.com/">plugin page</a>. I&#8217;ll just say that it&#8217;s very easy to setup and to use. However there can be one problem with WP Hive: it does not allow to have multiple blogs with different languages. But I found a simple solution for this and that&#8217;s why I&#8217;m writing this post <img src='http://tech.barszcz.info/wp-content/plugins/smilies-themer/Phoenity/smile.png' alt=':)' class='wp-smiley' /> </p>
<span id="more-986"></span>
<p>Here is what I want to have on one WordPress installation: one portfolio page in two (or more) languages, one personal blog in Polish and one technological blog in English.<br /> For portfolio page I&#8217;ve installed <a href="http://www.qianqin.de/qtranslate/">qTranslate</a> plugin and from now on that page can be in any language I want.<br /> My WordPress <code>wp-config.php</code> file has line  <code>define ('WPLANG', 'pl_PL');</code> so WordPress is in Polish and it&#8217;s OK for my personal blog. But what about my technological blog which should be in English? It doesn&#8217;t make sense to install qTranslate or any other similar plugin because those plugins modify post contents by adding some specific markups to identify languages. If I change language in <code>wp-config.php</code> to English my personal blog interface will be in English also. So what should I do? Just write simple if statement in <code>wp-config.php</code>:</p>
<pre><code>if ($_SERVER['SERVER_NAME'] == 'tech.barszcz.info')
	define ('WPLANG', 'en_US');
else
	define ('WPLANG', 'pl_PL');</code></pre>
<p>instead of default single line:</p>
<pre><code>define ('WPLANG', 'pl_PL');</code></pre>
<p>This way I can define different language for any blog I have on this WordPress installation. Of course above code should be modified if you have multiple blogs on subdirectories and not on subdomains like I have.</p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/tRFghsro1-0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2010/07/23/multiple-blogs-and-multiple-languages-with-wp-hive/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Enabling SFTP update option for WordPress</title>
		<link>http://tech.barszcz.info/2010/07/12/enabling-sftp-update-option-for-wordpress/</link>
		<comments>http://tech.barszcz.info/2010/07/12/enabling-sftp-update-option-for-wordpress/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 17:01:05 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=979</guid>
		<description><![CDATA[By default WordPress allows updates of itself, plugins and themes by FTP or FTPS connection. FTP is old and not very secure and should be avoided so it would be better to use much more secure connection type like SFTP (FTP over SSH). To make it available we need to install some packages on our server. If you are using Ubuntu Karmic or newer all you need to do is: aptitude install libssh2-php and then just restart your Apache server. If you have older Ubuntu or some other distribution without libssh2-php package you can try this solution: aptitude install php5-dev [...] <span class="more-link-container"><a class="more-link" href="http://tech.barszcz.info/2010/07/12/enabling-sftp-update-option-for-wordpress/">read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<p>By default WordPress allows updates of itself, plugins and themes by FTP or FTPS connection. FTP is old and not very secure and should be avoided so it would be better to use much more secure connection type like SFTP (FTP over SSH). To make it available we need to install some packages on our server.</p>
<span id="more-979"></span>
<p>If you are using Ubuntu Karmic or newer all you need to do is:</p>
<pre><code>aptitude install libssh2-php</code></pre>
<p>and then just restart your Apache server.</p>

<p>If you have older Ubuntu or some other distribution without <code>libssh2-php</code> package you can try this solution:</p>
<pre><code>aptitude install php5-dev php5-cli php-pear build-essential libssh2-1
pecl install -f ssh2</code></pre>
<p>If everything is OK create file <code>/etc/php5/conf.d/ssh2.ini</code> with contents:</p>
<pre><code>extension=ssh2.so</code></pre>
<p>and restart Apache.</p>

<p>Now you should be able to update your WordPress installation from admin page using SFTP connection.</p>

<p>Read more <a href="http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/">here</a> and in <a href="http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/#comment_3733">comment #250</a>.</p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/To8yncJ5TLk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2010/07/12/enabling-sftp-update-option-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog language change</title>
		<link>http://tech.barszcz.info/2010/07/12/blog-language-change/</link>
		<comments>http://tech.barszcz.info/2010/07/12/blog-language-change/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 15:59:40 +0000</pubDate>
		<dc:creator>barszcz</dc:creator>
				<category><![CDATA[No category]]></category>

		<guid isPermaLink="false">http://tech.barszcz.info/?p=977</guid>
		<description><![CDATA[I&#8217;ve decided to change language of this blog to English. I think it&#8217;ll target more people and it&#8217;ll be good for me and my English language abilities. I&#8217;m sure there will be lot of mistakes and badly written sentences but it&#8217;s my way of learning Soon I&#8217;ll translate all old posts into English and from now on all further posts will be in English only.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to change language of this blog to English. I think it&#8217;ll target more people and it&#8217;ll be good for me and my English language abilities. I&#8217;m sure there will be lot of mistakes and badly written sentences but it&#8217;s my way of learning <img src='http://tech.barszcz.info/wp-content/plugins/smilies-themer/Phoenity/smile.png' alt=':)' class='wp-smiley' /> </p>

<p>Soon I&#8217;ll translate all old posts into English and from now on all further posts will be in English only.</p><img src="http://feeds.feedburner.com/~r/BarszczTechBlog/~4/Oh_9goI6N2I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tech.barszcz.info/2010/07/12/blog-language-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached (Feed is rejected)
Page Caching using memcached
Database Caching using memcached
Object Caching 814/988 objects using memcached

Served from: tech.barszcz.info @ 2012-01-11 14:50:19 -->

