<?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>Andrew J Davies &#187; Computers</title>
	<atom:link href="http://www.anddavies.co.uk/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anddavies.co.uk</link>
	<description>Marine ecology, modelling and computers</description>
	<lastBuildDate>Thu, 27 May 2010 12:10:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Maintaining turbidity and current flow in laboratory aquarium studies, a case study with Sabellaria spinulosa</title>
		<link>http://www.anddavies.co.uk/marine-ecology/maintaining-turbidity-and-current-flow-in-laboratory-aquarium-studies-publication-in-press/</link>
		<comments>http://www.anddavies.co.uk/marine-ecology/maintaining-turbidity-and-current-flow-in-laboratory-aquarium-studies-publication-in-press/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 11:14:53 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Marine ecology]]></category>
		<category><![CDATA[ecology]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[flume]]></category>
		<category><![CDATA[sabellaria]]></category>

		<guid isPermaLink="false">http://www.anddavies.co.uk/?p=67</guid>
		<description><![CDATA[Andrew J. Davies, Kim S. Last, Karl Attard, Vicki J. Hendrick Many aquatic organisms rely on the suspension of particulate matter for food or for building materials, yet these conditions are difficult to replicate in laboratory mesocosms. Consequently, husbandry and experimental conditions may often be sub-optimal. The VOrtex Resuspension Tank (VORT) is a simple and [...]]]></description>
			<content:encoded><![CDATA[<p><em>Andrew J. Davies, Kim S. Last, Karl Attard, Vicki J. Hendrick<br />
</em></p>
<div id="attachment_68" class="wp-caption alignright" style="width: 160px"><img class="size-thumbnail wp-image-68" title="Sabellaria spinulosa" src="http://www.anddavies.co.uk/wp-content/uploads/2008/11/9_c_19-150x150.jpg" alt="Sabellaria spinulosa" width="150" height="150" /><p class="wp-caption-text">Sabellaria spinulosa</p></div>
<p>Many aquatic organisms rely on the suspension of particulate matter for food or for building materials, yet these conditions are difficult to replicate in laboratory mesocosms. Consequently, husbandry and experimental conditions may often be sub-optimal. The VOrtex Resuspension Tank (VORT) is a simple and reliable system for the resuspension of food or sediments using an enclosed airlift. The particle rain from the lift is mixed in the tank by two water inputs that provide directional current flow across the study organism(s). The vortex mixing creates a turbulent lateral water flow that allows the distribution of particulate matter outwards from the sediment outflow. By calibrating a VORT it is possible to control sedimentation rate by manipulating water and air flow rates. As an example application, three VORTs were maintained under different sediment loading to assess the sediment fraction utilisation and tube growth rates of the tube-building polychaete worm <em>Sabellaria spinulosa</em>. <em>S. spinulosa </em>consistently utilised a lower mean particle size than that of the background sediment when provided with well sorted medium sands. Under sediment starved conditions, there was net erosion of colonies whereas under intermediate and high sediment rates there was consistent cumulative growth throughout a 15 d experiment. This highlights the importance of suspended sediment for <em>S. spinulosa</em> and also the suitability of the VORT system for maintaining organisms with suspended matter requirements.</p>
<p>Publication in Journal of Experimental Marine Biology and Ecology 370.</p>
<h3>Full citation</h3>
<p><strong>Davies, A.J.</strong>, Last, K.S., Attard, K. &amp; Hendrick, V.J. (accepted) &#8220;Maintaining turbidity and current flow in laboratory aquarium studies, a case study using <em>Sabellaria spinulosa</em>&#8221; Journal of Experimental Marine Biology and Ecology 370, 35-40.</p>
<p><a href="http://dx.doi.org/10.1016/j.jembe.2008.11.015">http://dx.doi.org/10.1016/j.jembe.2008.11.015</a></p>
<h3>Request PDF</h3>
<table border="0" cellpadding="3" width="100%">
<tbody>
<tr>
<td bgcolor="#caeaf7">
<div>To request a PDF of this paper, please enter your email address here:</div>
<form style="text-align: center;" action="http://www.anddavies.co.uk/papers/DaviesetalJEMBE_Sab.php" enctype="multipart/form-data" method="post">
<div>
<input name="to_email" size="40" type="text" />
<input type="submit" value="Send Email" /></div>
</form>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.anddavies.co.uk/marine-ecology/maintaining-turbidity-and-current-flow-in-laboratory-aquarium-studies-publication-in-press/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Perl oneliner search and replace</title>
		<link>http://www.anddavies.co.uk/computers/perl-one-liner/</link>
		<comments>http://www.anddavies.co.uk/computers/perl-one-liner/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 09:30:22 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://www.anddavies.co.uk/?p=74</guid>
		<description><![CDATA[Just been working with my favourite language to change a space delimited file into a comma delimited file (CSV). With large files, even good file editors like JujuEdit take forever. For the first time I have actually crashed this program whilst searching and replacing a 250mb file. Maybe it&#8217;s me?! To avoid this problem reoccuring, and [...]]]></description>
			<content:encoded><![CDATA[<p>Just been working with my favourite language to change a space delimited file into a comma delimited file (CSV). With large files, even good file editors like <a href="http://www.jujusoft.com/software/edit/index.html">JujuEdit</a> take forever. For the first time I have actually crashed this program whilst searching and replacing a 250mb file. Maybe it&#8217;s me?!</p>
<p>To avoid this problem reoccuring, and because I have not updated my site in a while, here is a nifty perl one-liner to search and replace spaces with comma-space.</p>
<p>First install a perl package, I use <a href="http://www.activestate.com/activeperl/">ActivePerl</a>. Its free and easy to install on Windows (there are many different OS versions available).</p>
<p>Second, after the install has completed, open up the Windows command prompt (<span style="color: #0000ff;">Start &gt; Run &gt; cmd</span>). Change the directory to your working directory that contains the files that you wish to search and replace. For example (in blue):</p>
<blockquote><p>C:\&gt;<span style="color: #0000ff;">cd c:\perl\myworkingdir</span></p></blockquote>
<p>Now your in your working directory, you need to type the following (in blue):</p>
<blockquote><p><span style="color: #0000ff;"><span style="color: #000000;">c:\perl\myworkingdir&gt;</span>c:\perl\bin\perl.exe -p -i.bak -e &#8220;s/ /, /g&#8221; filename.csv</span></p></blockquote>
<p>Here is the breakdown:</p>
<ul>
<li><span style="color: #0000ff;">c:\perl\bin\perl.exe</span>: Calls the perl program</li>
<li><span style="color: #0000ff;">-p</span>: Loops the search and replace through the file.</li>
<li><span style="color: #0000ff;">-i.bak</span>: Creates a backup file incase you make a mistake.</li>
<li><span style="color: #0000ff;">-e</span>: Makes the script directly executable.</li>
<li><span style="color: #0000ff;">&#8220;s/ /, /g&#8221;</span>: The expression to pattern match, in this case <span style="color: #0000ff;">s</span> means start of line <span style="color: #0000ff;">/ /</span> is the space, <span style="color: #0000ff;">, /</span> is the string to replace it and <span style="color: #0000ff;">g</span> is to tell perl to run it on all the file, not just the first instance.</li>
<li><span style="color: #0000ff;">filename.csv</span>: The name of the file to search and replace.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.anddavies.co.uk/computers/perl-one-liner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
