<?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>Patrick&#039;s playground &#187; Software</title>
	<atom:link href="http://www.vankouteren.eu/blog/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vankouteren.eu/blog</link>
	<description>Random thoughts, problems and solutions</description>
	<lastBuildDate>Sun, 29 Jan 2012 07:53:06 +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>Developing using WampServer 2: additions</title>
		<link>http://www.vankouteren.eu/blog/2009/12/developing-using-wampserver-2-additions/</link>
		<comments>http://www.vankouteren.eu/blog/2009/12/developing-using-wampserver-2-additions/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 13:42:38 +0000</pubDate>
		<dc:creator>Patrick van Kouteren</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[PHPUnit]]></category>
		<category><![CDATA[WampServer]]></category>

		<guid isPermaLink="false">http://www.vankouteren.eu/blog/?p=175</guid>
		<description><![CDATA[WampServer 2.0 is a nice tool to help you develop a new site on your local computer. However, you'll probably need more packages/libraries than those included with WampServer. This post is about installing extra common features which are mostly present at hosting servers, but not (directly) on WampServer. PHPUnit One of the features which I [...]]]></description>
			<content:encoded><![CDATA[<p><a title="WampServer 2.0" href="http://www.wampserver.com/en/" target="_blank">WampServer 2.0</a> is a nice tool to help you develop a new site on your local computer. However, you'll probably need more packages/libraries than those included with WampServer. This post is about installing extra common features which are mostly present at hosting servers, but not (directly) on WampServer.</p>
<p><span id="more-175"></span></p>
<p><strong>PHPUnit</strong></p>
<p>One of the features which I need when starting a new project is a Unittest framework. The two most common are <a title="SimpleTest" href="http://www.simpletest.org/" target="_blank">SimpleTest</a> and <a title="PHPUnit" href="http://www.phpunit.de/" target="_blank">PHPUnit</a>. SimpleTest can be downloaded and used right away. The <a title="PHPUnit manual" href="http://www.phpunit.de/manual/current/en/installation.html" target="_blank">PHPUnit manual</a> advises to use PEAR to install PHPUnit. <a title="Install PEAR and PHPUnit" href="http://jsdoodnauth.wordpress.com/2008/11/05/installing-wamp-and-phpunit-on-windows/" target="_blank">Joshua Doodnauth</a> explains how to activate PEAR and how to install PHPUnit on WampServer. However, as I was running WampServer 2.0i with PHP 5.3, the file go-pear.phar in the PEAR subdirectory was not working correctly. The solution to this is presented <a title="Install PEAR and PHPUnit on WampServer 2.0 with PHP 5.3" href="http://blog.pear.php.net/2009/07/01/php-53-windows-and-pear/" target="_blank">here</a>. By executing the command</p>
<p><code>php -d phar.require_hash=0 go-pear.phar</code></p>
<p>the problem is solved and PEAR is installed.</p>
<p>After that however, when I tried to get back to Joshua's how-to, the PEAR version was not correct. <a title="Update PEAR" href="http://www.electricmonk.nl/log/2009/04/12/easy-pear-package-creation/" target="_blank">This site</a> helped me to update PEAR. When PEAR is installed, type</p>
<p><code>pear channel-update pear.php.net</code></p>
<p>in the terminal. This will update the PEAR channel. After that, by typing in</p>
<p><code>pear upgrade PEAR</code></p>
<p>the PEAR installation will be updated. From that point on PHPUnit can be installed as described at Joshua's blog.</p>
<p><strong>Crontab</strong></p>
<p>A feature which I use pretty often is the crontab. It can schedule and execute scripts at particular moments. A crontab is not provided by WampServer. However, there are external solutions available. One such solutions is <a title="nnSoft :: nnCron" href="http://www.nncron.ru/" target="_blank">nnCron of nnSoft</a>. This is a crontab which can be installed by executing the installer file. The LITE (free) version already provides the desired functionality. The way it works is pretty simple: in the install directory there are batch files startcron.bat and stopcron.bat which allow to start the crontab and stop it. The file cron.tab contains the <a title="Crontab lines" href="http://www.willmaster.com/library/web-development/using_cron.php" target="_blank">crontab lines</a>.</p>
<p>N.B. Using WampServer and this Crontab, you can write automated tasks in PHP for executing tasks on your local machine. (Nice!).</p>
<p><strong>Mootools</strong></p>
<p>Today I was unpleasantly surprised that Mootools doesn't work on WampServer. I tried various demo's of AJAX calls, but none of them worked. When I tried one on an online web server it worked directly. So far I haven't been able to find topics about this problem, so any help is appreciated!'</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vankouteren.eu/blog/2009/12/developing-using-wampserver-2-additions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taverna and R: Rserve</title>
		<link>http://www.vankouteren.eu/blog/2009/10/taverna-and-r-rserve/</link>
		<comments>http://www.vankouteren.eu/blog/2009/10/taverna-and-r-rserve/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 06:58:29 +0000</pubDate>
		<dc:creator>Patrick van Kouteren</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.vankouteren.eu/blog/?p=167</guid>
		<description><![CDATA[So in my previous post I wanted to do a hypergeometric test in R. Now I want this test to be executed from Taverna (RShell). This means we need to install R as a server. How to do this is explained in detail here. Once installed we need to start Rserve to allow Taverna to [...]]]></description>
			<content:encoded><![CDATA[<p>So in my <a title="A hypergeometric test in R" href="http://www.vankouteren.eu/blog/2009/10/hypergeometric-test-python-or-r/" target="_blank">previous post</a> I wanted to do a hypergeometric test in R. Now I want this test to be executed from Taverna (<a title="RShell" href="http://www.narcis.info/dare/RecordID/oaidocutwentenl67553/repository_id/ut" target="_blank">RShell</a>).<span id="more-167"></span> This means we need to install R as a server. How to do this is explained in detail <a title="Install Rserve" href="http://www.jsoftware.com/jwiki/Interfaces/R/Rserve" target="_blank">here</a>. Once installed we need to start Rserve to allow Taverna to connect to it. This is done as follows:</p>
<pre>&amp;gt; library(Rserve)
&amp;gt; Rserve(args='--no-save')</pre>
<p>Note that the args can be 'save', 'no-save' or 'vanilla'.</p>
<p><strong>Taverna</strong></p>
<p>In Taverna an RShell can be added to the workflow to execute an R script. This script can be edited / defined by right-clicking the node and choosing that particular option.</p>
<p>Currently, when running a workflow in Taverna 2.1 beta2 and R 2.9.2 results in a handshake error. Apparently Rserve uses a newer protocol version than Taverna does.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vankouteren.eu/blog/2009/10/taverna-and-r-rserve/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

