<?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>Alexander Leidinger</title>
	<atom:link href="http://www.leidinger.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leidinger.net/blog</link>
	<description>Just another weblog</description>
	<lastBuildDate>Thu, 02 Sep 2010 13:59:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>What to do with the weather data?</title>
		<link>http://www.leidinger.net/blog/2010/09/02/what-to-do-with-the-weather-data/</link>
		<comments>http://www.leidinger.net/blog/2010/09/02/what-to-do-with-the-weather-data/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 13:59:59 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Problem(s)]]></category>
		<category><![CDATA[Software]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=661</guid>
		<description><![CDATA[As can be read in the previous blog posting, I have now some weather data around. Here the header from the CSV file I generate out of the XML file of the software: Date;Humidity (room);Temp (room);Humidity (out);Temp (out);Pressure (abs);Wind (ave);Wind (gust);Wind (dir);Rain Currently I programmed the weather station to save the data every 5 minutes. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">As can be read in the previous blog posting, I have now some weather data around. Here the header from the CSV file I generate out of the XML file of the <a title="software" href="http://www.leidinger.net/blog/category/software/">software</a>:</p>
<p style="padding-left: 30px;">Date;Humidity (room);Temp (room);Humidity (out);Temp (out);Pressure (abs);Wind (ave);Wind (gust);Wind (dir);Rain</p>
<p style="text-align: justify;">Currently I programmed the weather station to save the data every 5 minutes. The long-term goal is to decide if a given wind turbine delivers a sane amount of energy (during a complete year) at a given place. As I do not want to wait that long to get some information out of this, the question arises, what I can do with this weather data?</p>
<p style="text-align: justify;">Here an example of the output (ignore the rain and wind values, the sensors are not attached at a place where there is wind or rain, the complete set is horizontally on the floor instead of vertically how they are supposed to be; and do not be shocked about the room  values, it is the “server room” in the basement):</p>
<p style="text-align: justify; padding-left: 30px;"><cite title="Real data from the weather station">2010-09-02 12:55:01;52.0;18.700;30.0;27.000;978.600;0.0;0.0;135.0;4.200<br />
2010-09-02 12:50:01;53.0;18.700;30.0;27.500;978.600;0.0;0.0;135.0;4.200<br />
2010-09-02 12:45:01;53.0;18.600;30.0;27.300;978.500;0.0;0.0;135.0;4.200<br />
2010-09-02 12:40:01;53.0;18.600;30.0;27.800;978.600;0.0;0.0;135.0;4.200<br />
2010-09-02 12:35:01;53.0;18.600;30.0;27.700;978.500;0.0;0.0;135.0;4.200<br />
2010-09-02 12:30:01;54.0;18.500;31.0;27.500;978.700;0.0;0.0;135.0;4.200</cite></p>
<p style="text-align: justify;">Some things I came up with myself:</p>
<ul>
<li style="text-align: justify;">A line-graph of the values during a day/week/month.</li>
<li style="text-align: justify;">A graph of the amount of accumulated rain per hour/day/week/month/year.</li>
<li style="text-align: justify;">The average temperature/humidity (as an error bar, so see the min/max too) per day and night, but what to use as the times where the day starts/ends? I would like to have the day-part cover the real daylight time (minus some ramp-up and ramp-down time), but I do not have any idea how to get this for each day and for my region.Does it make sense to do the same per hour (without any ramp-up/-down)?</li>
<li style="text-align: justify;">Does the combination of temperature and humidity and maybe wind tell something? If yes, how to combine them and how to interpret the result?</li>
<li style="text-align: justify;">Similar for the pressure. I do not know what it tells me, but in a graph I can maybe add some horizontal lines which tell something (rain probability and maybe danger zones?).</li>
<li style="text-align: justify;">For the wind speed the instruction manual comes with a nice table of the <a href="http://en.wikipedia.org/wiki/Beaufort_scale">beaufort scale</a> and a corresponding description. This can be put into some colored horizontal lines which show more or less dangerous speeds.</li>
</ul>
<p style="text-align: justify;">For the plotting of the data, I intend to use <a href="http://www.gnuplot.info/">gnuplot</a> with the CSV data as the input. It should allow me to automate a lot of things, and some of the graphs should also be easy to realize inside gnuplot itself without any external processing, the question is only how to realize it. For example for the average of some values I do not know if it makes sense to use something else than the arithmetic mean.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2010/09/01/weather-station-readout-with-freebsd/" rel="bookmark" class="crp_title">Weather station readout with FreeBSD</a></li><li><a href="http://www.leidinger.net/blog/2009/09/16/photovoltaic-from-the-bank-no-real-benefit-for-me/" rel="bookmark" class="crp_title">Photovoltaic from the bank (no real benefit for me)</a></li><li><a href="http://www.leidinger.net/blog/2009/10/30/local-backup-vs-tarsnap/" rel="bookmark" class="crp_title">Local backup vs. tarsnap</a></li><li><a href="http://www.leidinger.net/blog/2009/11/18/testing-tarsnap/" rel="bookmark" class="crp_title">Testing tarsnap</a></li><li><a href="http://www.leidinger.net/blog/2010/01/29/debugging-langmono-2nd-round/" rel="bookmark" class="crp_title">Debugging lang/mono — 2nd round</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/09/02/what-to-do-with-the-weather-data/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Weather station readout with FreeBSD</title>
		<link>http://www.leidinger.net/blog/2010/09/01/weather-station-readout-with-freebsd/</link>
		<comments>http://www.leidinger.net/blog/2010/09/01/weather-station-readout-with-freebsd/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 12:28:05 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[Ecology]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ports Collection]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Userland]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=656</guid>
		<description><![CDATA[A while ago a wind turbine was installed not far away from my place. It is far enough to not disturb us, and it is near enough to notice that it turns a lot (IIRC I have seen it only once not turning). This triggered a question. How much energy would such a device (smaller [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">A while ago a wind turbine was installed not far away from my place. It is far enough to not disturb us, and it is near enough to notice that it turns a lot (IIRC I have seen it only once not turning).</p>
<p style="text-align: justify;">This triggered a question. How much energy would such a device (smaller of course) produce at my place?</p>
<p style="text-align: justify;">The answer depends upon several factors. The wind speed, the wind direction and the wind-speed-to-power-output curve of the device. If you do not take a device which rotates around the <a title="Google Image search: wind turbine farm" href="http://www.google.de/images?hl=en&amp;q=wind+turbine+farm">horizontal axis</a> but the <a title="Google Image search: vertical wind generator" href="http://www.google.de/images?hl=en&amp;q=vertical+wind+generator&amp;ie=UTF-8&amp;source=univ&amp;oi=image_result_group&amp;ct=title&amp;resnum=4">vertical axis</a>, the wind direction can be taken out of the question (probably not completely, but to answer my question this simplification should be ok). The output-power curve depends upon the device, and I hope it is easy to get it from the vendors. The remaining <a title="open question" href="http://www.leidinger.net/blog/category/open-question/">open question</a> it the wind speed at my place. Is there enough wind with enough speed?</p>
<p style="text-align: justify;">To answer this question I bought a weather station with an <a title="Anemometer" href="http://en.wikipedia.org/wiki/Anemometer">anemometer</a> (wind speed sensor). I searched a little bit until I decided to buy a specific one (actually I bought three of them, some coworkers got interested too but they found only much more expensive ones, so soon there will be three more weather stations in use in Belgium, France and Germany). The main point is, I can connect it to an USB port of a PC and there is some <a title="software" href="http://www.leidinger.net/blog/category/software/">software</a> for Linux to read out the data. It also comes with some other outdoor-sensors (temperature, rain, wind direction, humidity, …) and an indoor-control-unit with some internal sensors (temperature, humidity). The user interface is mainly the touchscreen of the control-unit. There is also some Windows software, which is needed to program the interval in which the measurements are taken and saved in the control-unit.</p>
<p style="text-align: justify;">It seems the weather station is produced by <a href="http://www.foshk.com/">Fine Offset Electronics Co.,Ltd</a> and sold within different brands in different locations. The <a title="fowsr" href="http://code.google.com/p/fowsr/">Linux software</a> can read all of them, as the vendor and product IDs are not changed.</p>
<p style="text-align: justify;">Porting the software was easy, it uses libusb and I just had to correct a little problem for the non-portable functions which are used (I asked about them on usb@ and the response was that they just got implemented upon my request and will be committed to HEAD soon). I made a little patch for the software to only use them when available (if you have not loaded the USB HID driver, you do not need to care about them) and committed it to the <a title="Ports Collection" href="http://www.leidinger.net/blog/category/freebsd/ports-collection/">Ports Collection</a> as astro/fowsr.</p>
<p style="text-align: justify;">Now I just need to attach the outside sensors at the place where I would put the vertical axis wind turbine, install some toolkit which takes a series of measurements and displays them as a nice graph (while keeping <em>all</em> data values) and write some glue code to feed the output of fowsr to it. After a year I can then calculate how much power a given wind turbine would have produced during the year and calculate the return of investment for it.</p>
<p style="text-align: justify;">The Linux software also references several weather sites, for some of them you can get even an iGoogle widget so that you can view the data from wherever you want (as long as you have a suitable internet connection). I think this is also something I will have a look at later.</p>
<p style="text-align: justify;">Note to users in Europe, the device also comes with a <a title="DCF77" href="http://en.wikipedia.org/wiki/DCF77">DCF77 receiver</a>. As the time is distributed in UTC+1 (or +2, depending on the daylight saving time), you should adjust the timezone setting accordingly to this, not to plain UTC (so for me the timezone should be ‘0’ for the same timezone).</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2010/09/02/what-to-do-with-the-weather-data/" rel="bookmark" class="crp_title">What to do with the weather data?</a></li><li><a href="http://www.leidinger.net/blog/2009/12/06/freenas-sensors-for-freebsd/" rel="bookmark" class="crp_title">FreeNAS &amp; Sensors for FreeBSD</a></li><li><a href="http://www.leidinger.net/blog/2010/03/12/googles-new-re-engine/" rel="bookmark" class="crp_title">Google’s new RE engine</a></li><li><a href="http://www.leidinger.net/blog/2009/09/16/photovoltaic-from-the-bank-no-real-benefit-for-me/" rel="bookmark" class="crp_title">Photovoltaic from the bank (no real benefit for me)</a></li><li><a href="http://www.leidinger.net/blog/2010/02/10/making-zfs-faster/" rel="bookmark" class="crp_title">Making ZFS faster…</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/09/01/weather-station-readout-with-freebsd/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>I switched my feed reader</title>
		<link>http://www.leidinger.net/blog/2010/08/26/i-switched-my-feed-reader/</link>
		<comments>http://www.leidinger.net/blog/2010/08/26/i-switched-my-feed-reader/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 09:25:27 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Userland]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=652</guid>
		<description><![CDATA[Before I have read the news feeds I am interested in via the Firefox plugin “brief”. It did all I wanted it to do, but I had all the data and metadata (all the feeds and read items) only in one browser. I was not able to have a shared state at work and at [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Before I have read the news feeds I am interested in via the Firefox plugin “<a title="Brief" href="https://addons.mozilla.org/de/firefox/addon/4578/">brief</a>”. It did all I wanted it to do, but I had all the data and metadata (all the feeds and read items) only in one browser. I was not able to have a shared state at work and at home.</p>
<p style="text-align: justify;">Now I installed <a title="Rnews Feed Aggregator" href="http://rnews.sourceforge.net/">rnews</a> on my webserver. It is multi-user capable, so that multiple people can read the feeds they are interested in, without the need to have multiple installations. I can use it from any place where I have an internet connection, without losing the state.</p>
<p style="text-align: justify;">It is in the <a href="http://www.FreeBSD.org/"  class="alinks_links" onclick="return alinks_click(this);" title="The FreeBSD Project"  style="padding-right: 13px; background: url(http://www.leidinger.net/blog/wp-content/plugins/alinks/images/external.png) center right no-repeat;" rel="external">FreeBSD</a> <a title="Ports Collection" href="http://www.leidinger.net/blog/category/freebsd/ports-collection/">Ports Collection</a> as www/rnews.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2010/07/27/the-reason-why-this-blog-was-not-accessible-to-some-people/" rel="bookmark" class="crp_title">The reason why this blog was not accessible to some people</a></li><li><a href="http://www.leidinger.net/blog/2010/09/01/weather-station-readout-with-freebsd/" rel="bookmark" class="crp_title">Weather station readout with FreeBSD</a></li><li><a href="http://www.leidinger.net/blog/2010/01/25/firefox-3-6-finally-delivering-a-sane-proxy-handling/" rel="bookmark" class="crp_title">Firefox 3.6, finally delivering a sane proxy handling</a></li><li><a href="http://www.leidinger.net/blog/2006/06/18/the-bad-side-of-life/" rel="bookmark" class="crp_title">The bad side of life :(</a></li><li><a href="http://www.leidinger.net/blog/2007/02/24/linuxulator-news/" rel="bookmark" class="crp_title">Linuxulator news</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/08/26/i-switched-my-feed-reader/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>v4l support in the linuxulator MFCed to 8-stable</title>
		<link>http://www.leidinger.net/blog/2010/07/29/v4l-support-in-the-linuxulator-mfced-to-8-stable/</link>
		<comments>http://www.leidinger.net/blog/2010/07/29/v4l-support-in-the-linuxulator-mfced-to-8-stable/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 14:31:45 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linuxulator]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Source]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=643</guid>
		<description><![CDATA[I merged the v4l translation layer into the linuxulator of 8-stable. As in –current, this just means that linux apps (like Skype) can now use FreeBSD native devices which conform to the v4l ABI. The port multimedia/webcamd provides access to some webcams (or DVB hardware) via the v4l ABI. People which want to test the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I merged the v4l translation layer into the <a href="http://man.FreeBSD.org/linux"  class="alinks_links" onclick="return alinks_click(this);" title="Linux emulator of FreeBSD"  style="padding-right: 13px; background: url(http://www.leidinger.net/blog/wp-content/plugins/alinks/images/external.png) center right no-repeat;" rel="external">linuxulator</a> of 8-stable. As in –current, this just means that linux apps (like Skype) can now use <a href="http://www.FreeBSD.org/"  class="alinks_links" onclick="return alinks_click(this);" title="The FreeBSD Project"  style="padding-right: 13px; background: url(http://www.leidinger.net/blog/wp-content/plugins/alinks/images/external.png) center right no-repeat;" rel="external">FreeBSD</a> native devices which conform to the v4l ABI. The port multimedia/webcamd provides access to some webcams (or DVB hardware) via the v4l ABI.</p>
<p style="text-align: justify;">People which want to test the <a title="linuxulator" href="http://www.leidinger.net/blog/category/freebsd/linuxolator/">linuxulator</a> part should first make sure a native <a title="FreeBSD" href="http://www.leidinger.net/blog/category/freebsd/">FreeBSD</a> application has no problem accessing the device.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2009/12/01/video-for-linux-v4l-emulation-coming-to-the-linuxulator/" rel="bookmark" class="crp_title">Video for linux (v4l) emulation coming to the linuxulator</a></li><li><a href="http://www.leidinger.net/blog/2009/12/05/video4linux-support-in-freebsd/" rel="bookmark" class="crp_title">Video4Linux support in FreeBSD</a></li><li><a href="http://www.leidinger.net/blog/2007/06/24/round-up-of-recent-freebsd-work/" rel="bookmark" class="crp_title">Round-up of recent FreeBSD work</a></li><li><a href="http://www.leidinger.net/blog/2007/02/24/linuxulator-news/" rel="bookmark" class="crp_title">Linuxulator news</a></li><li><a href="http://www.leidinger.net/blog/2007/07/01/some-fixes-to-linuxulator-stuff/" rel="bookmark" class="crp_title">Some fixes to linuxulator stuff</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/07/29/v4l-support-in-the-linuxulator-mfced-to-8-stable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The reason why this blog was not accessible to some people</title>
		<link>http://www.leidinger.net/blog/2010/07/27/the-reason-why-this-blog-was-not-accessible-to-some-people/</link>
		<comments>http://www.leidinger.net/blog/2010/07/27/the-reason-why-this-blog-was-not-accessible-to-some-people/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 11:56:14 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Problem(s)]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=641</guid>
		<description><![CDATA[I got notified that my blog was not accessible for a while. Seems that at least recent firefox versions somehow changed their behavior in what is send in the HTTP-header. This caused an Apache RedirectMatch rule to trigger, which denies access to some parts of the blog for some users. The WP-login, WP-dashboard, and logged-in [...]]]></description>
			<content:encoded><![CDATA[<p>I got notified that my blog was not accessible for a while. Seems that at least recent <a title="Firefox web browser" href="http://www.firefox.com/">firefox</a> versions somehow changed their behavior in what is send in the <a title="List of HTTP header fields" href="http://en.wikipedia.org/wiki/List_of_HTTP_header_fields">HTTP-header</a>. This caused an <a title="The Apache Software Foundation" href="http://www.apache.org/">Apache</a> RedirectMatch rule to trigger, which denies access to some parts of the blog for some users.</p>
<p>The WP-login, WP-dashboard, and logged-in users where not affected by this, so if you have some custom rules which deny access to your blog, make sure you make a test of your blog when logged-out.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2010/01/25/firefox-3-6-finally-delivering-a-sane-proxy-handling/" rel="bookmark" class="crp_title">Firefox 3.6, finally delivering a sane proxy handling</a></li><li><a href="http://www.leidinger.net/blog/2010/08/26/i-switched-my-feed-reader/" rel="bookmark" class="crp_title">I switched my feed reader</a></li><li><a href="http://www.leidinger.net/blog/2009/08/14/how-many-wp-plugins-are-used-on-average/" rel="bookmark" class="crp_title">How many WP plugins are used on average?</a></li><li><a href="http://www.leidinger.net/blog/2007/04/07/a-desktop-environment-in-a-jail/" rel="bookmark" class="crp_title">A desktop environment in a jail.</a></li><li><a href="http://www.leidinger.net/blog/2010/04/30/cheap-process-monitoring-no-additional-software-required/" rel="bookmark" class="crp_title">Cheap process monitoring (no additional software required)</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/07/27/the-reason-why-this-blog-was-not-accessible-to-some-people/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Periodic scrubbing of ZFS pools</title>
		<link>http://www.leidinger.net/blog/2010/06/11/periodic-scrubbing-of-zfs-pools/</link>
		<comments>http://www.leidinger.net/blog/2010/06/11/periodic-scrubbing-of-zfs-pools/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 11:48:46 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Userland]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=631</guid>
		<description><![CDATA[I noticed that we do not have some automatic way of scrubbing a ZFS pool periodically. A quick poll on fs@ revealed, that there is interest in something like this. So I took a little bit of time to write a periodic daily script which checks if the last scrub is X days ago and [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I noticed that we do not have some automatic way of scrubbing a ZFS pool periodically. A quick poll on fs@ revealed, that there is interest in something like this. So I took a little bit of time to write a periodic daily script which checks if the last scrub is X days ago and scrubs a pool accordingly. The script has options to scrub all pools, or just a specific subset. It also allows to specify a time-interval between scrubs for each pool with different levels of fall-back (if no pool-specific interval is set, the default interval is used, which is set to 30 days if no other default interval is specified).</p>
<p style="text-align: justify;">The discussion about this is happening over at <a href="http://lists.freebsd.org/pipermail/freebsd-fs/2010-June/subject.html">fs@, so go there</a> and have a look for the CFT (with a link to the WIP of the script) and the discussion if you are interested.</p>
<p style="text-align: justify;">So far there are some minor details to sort out (and a little bit of documentation to write) before I can commit it… probably next week.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2010/04/30/cheap-process-monitoring-no-additional-software-required/" rel="bookmark" class="crp_title">Cheap process monitoring (no additional software required)</a></li><li><a href="http://www.leidinger.net/blog/2006/06/27/linuxolator-fixes-for-oracle-10g/" rel="bookmark" class="crp_title">Linuxolator fixes for Oracle 10g</a></li><li><a href="http://www.leidinger.net/blog/2008/04/19/interesting-stuff-upcomming-multimedia-wiimote/" rel="bookmark" class="crp_title">Interesting stuff upcomming (multimedia, Wiimote)</a></li><li><a href="http://www.leidinger.net/blog/2007/01/20/a-way-to-encourage-hardware-companies-to-support-bsd/" rel="bookmark" class="crp_title">A way to encourage hardware companies to support *BSD</a></li><li><a href="http://www.leidinger.net/blog/2009/11/18/testing-tarsnap/" rel="bookmark" class="crp_title">Testing tarsnap</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/06/11/periodic-scrubbing-of-zfs-pools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Understanding latency</title>
		<link>http://www.leidinger.net/blog/2010/06/04/understanding-latency/</link>
		<comments>http://www.leidinger.net/blog/2010/06/04/understanding-latency/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 13:25:57 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[@Work]]></category>
		<category><![CDATA[Commercial]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Solaris]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=628</guid>
		<description><![CDATA[Brendan Gregg of Sun Oracle fame made a good explanation how to visualize latency to get a better understanding of what is going on (and as such about how to solve bottlenecks). I have seen all this already in various posts in his blog and in the Analytics package in an OpenStorage presentation, but the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Brendan Gregg of <span style="text-decoration: line-through;">Sun</span> Oracle fame made <a href="http://queue.acm.org/detail.cfm?id=1809426">a good explanation</a> how to visualize latency to get a better understanding of what is going on (and as such about how to solve bottlenecks). I have seen all this already in various posts in <a href="http://blogs.sun.com/brendan/">his blog</a> and in the Analytics package in an <a href="http://www.oracle.com/us/products/servers-storage/storage/open-storage/index.html">OpenStorage</a> presentation, but the ACM article summarizes it very good.</p>
<p style="text-align: justify;">Unfortunately Analytics is AFAIK not available in <a href="http://www.OpenSolaris.org/">OpenSolaris</a>, so we can not go out and adapt it for <a href="http://www.FreeBSD.org/"  class="alinks_links" onclick="return alinks_click(this);" title="The FreeBSD Project"  style="padding-right: 13px; background: url(http://www.leidinger.net/blog/wp-content/plugins/alinks/images/external.png) center right no-repeat;" rel="external">FreeBSD</a> (which would probably require to port/implement some additional dtrace stuff/probes). I am sure something like this would be very interesting to all those companies which use <a title="FreeBSD" href="http://www.leidinger.net/blog/category/freebsd/">FreeBSD</a> in an appliance (regardless if it is a storage appliance like NetApp, or a network appliance like a Cisco/Juniper router, or anything else which has to perform good).</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2009/11/19/sun-openstorage-presentation/" rel="bookmark" class="crp_title">SUN OpenStorage presentation</a></li><li><a href="http://www.leidinger.net/blog/2006/06/27/linuxolator-fixes-for-oracle-10g/" rel="bookmark" class="crp_title">Linuxolator fixes for Oracle 10g</a></li><li><a href="http://www.leidinger.net/blog/2010/04/14/arc-adaptive-replacement-cache-explained/" rel="bookmark" class="crp_title">ARC (adaptive replacement cache) explained</a></li><li><a href="http://www.leidinger.net/blog/2009/09/25/emc2legato-networker-7-5-1-4-tests/" rel="bookmark" class="crp_title">EMC^2/Legato Networker 7.5.1.4 tests</a></li><li><a href="http://www.leidinger.net/blog/2010/04/07/multimedia-optimized-network-card/" rel="bookmark" class="crp_title">Multimedia optimized network card</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/06/04/understanding-latency/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Direct, indirect and explicit dependencies in progams/ports</title>
		<link>http://www.leidinger.net/blog/2010/06/03/direct-indirect-and-explicit-dependencies-in-progamsports/</link>
		<comments>http://www.leidinger.net/blog/2010/06/03/direct-indirect-and-explicit-dependencies-in-progamsports/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 13:47:21 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Ports Collection]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Userland]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=624</guid>
		<description><![CDATA[The discussion about direct and indirect dependencies is coming up again on the FreeBSD mailinglists. Seems I should make some blog post about it, maybe it makes this topic more findable than my postings in the mailinglists. Some definitions: A direct dependency from A to B is when program/port A uses symbols from library/port B. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The discussion about direct and indirect dependencies is coming up again on the <a href="http://www.FreeBSD.org/"  class="alinks_links" onclick="return alinks_click(this);" title="The FreeBSD Project"  style="padding-right: 13px; background: url(http://www.leidinger.net/blog/wp-content/plugins/alinks/images/external.png) center right no-repeat;" rel="external">FreeBSD</a> mailinglists. Seems I should make some blog post about it, maybe it makes this topic more findable than my postings in the mailinglists.</p>
<p style="text-align: justify;">Some definitions:</p>
<ul>
<li>A <em>direct</em> dependency from A to B is when program/port A uses symbols from library/port B.</li>
<li>An <em>indirect</em> dependency from A to C is when program/port A uses symbols from library/port B but no symbols from library/port C, and library/port B uses symbols from library/port C.</li>
<li>An <em>explicit</em> dependency from A to C is when it is a direct or indirect dependency A to C, and when the compiler-time-linker added an explicit reference to C to the program/lib of A.</li>
</ul>
<p style="text-align: justify;">Ideally we have no indirect dependencies in the explicit dependencies, only direct dependencies. Unfortunately in reality we also have indirect dependencies there. This has at least two causes:</p>
<ol>
<li>libtool (at least 1.x) does not (or was not) come with a hint on <a title="FreeBSD" href="http://www.leidinger.net/blog/category/freebsd/">FreeBSD</a>, which tells that the run-time-linker is recursively resolving dependencies.</li>
<li>Some pkg-config setups list indirect dependencies as explicit dependencies (IIRC it depends if <em>Requires.private</em> and/or <em>Libs.private</em> is used in the .pc file or not; if it is used, there should be no indirect dependency appear from this <a title="software" href="http://www.leidinger.net/blog/category/software/">software</a>, but I am not 100% sure about this).</li>
</ol>
<p style="text-align: justify;">Three years ago I wrote /usr/ports/Tools/scripts/explicit_lib_depends.sh, it looks at the files of a given port (it needs to be installed), and prints out explicit dependencies. Because of the indirect dependencies which could be listed there, this list is not a list of ports which are real dependencies from a <a title="source" href="http://www.leidinger.net/blog/category/freebsd/freebsd-src/">source</a> code point of view, but it reflects the link-time reality. If a port C shows up there, the port which is checked needs to be rebuild in case the ABI of library/port C changes.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2007/08/29/easy-library-dependencies-detection-for-ports/" rel="bookmark" class="crp_title">Easy library dependencies detection for ports</a></li><li><a href="http://www.leidinger.net/blog/2007/06/24/ports-related-stuff/" rel="bookmark" class="crp_title">Ports related stuff</a></li><li><a href="http://www.leidinger.net/blog/2007/05/17/speeding-up-the-package-dependency-list-creation/" rel="bookmark" class="crp_title">Speeding up the package dependency list creation</a></li><li><a href="http://www.leidinger.net/blog/2006/06/02/linux_base-fc4/" rel="bookmark" class="crp_title">linux_base-fc4</a></li><li><a href="http://www.leidinger.net/blog/2007/09/01/removing-superflous-calls-to-basenamedirname-in-bsdportmk/" rel="bookmark" class="crp_title">Removing superflous calls to basename/dirname in bsd.port.mk</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/06/03/direct-indirect-and-explicit-dependencies-in-progamsports/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LAME updated in the FreeBSD ports collection</title>
		<link>http://www.leidinger.net/blog/2010/06/03/lame-updated-in-the-freebsd-ports-collection/</link>
		<comments>http://www.leidinger.net/blog/2010/06/03/lame-updated-in-the-freebsd-ports-collection/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 09:02:14 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ports Collection]]></category>
		<category><![CDATA[Software]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=621</guid>
		<description><![CDATA[After all the big-impact commits (Gnome/gettext/KDE/X11/…) have settled now, I took the time to update audio/lame (I identified more than 100 ports with an (implicit) dependency on lame, 45 of them needed a portrevision bump; if I forgot/overlooked some, bump the revision yourself or notify me please). That is the first update of my ports [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">After all the big-impact commits (Gnome/gettext/KDE/X11/…) have settled now, I took the time to update audio/lame (I identified more than 100 ports with an (implicit) dependency on lame, 45 of them needed a portrevision bump; if I forgot/overlooked some, bump the revision yourself or notify me please). That is the first update of my ports where miwi@ did not beat me in committing an update since a year (he has implicit approval to do anything he wants with my ports).</p>
<p style="text-align: justify;">I can be happy that he is/was this fast (and that we have such a productive and efficient committer), or I can be sad that I do not have the time anymore to be faster than I am with such things… or both. Hmmm… I think I will go the happy way. <img src='http://www.leidinger.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2007/06/24/ports-related-stuff/" rel="bookmark" class="crp_title">Ports related stuff</a></li><li><a href="http://www.leidinger.net/blog/2006/06/20/linuxolator-day/" rel="bookmark" class="crp_title">linuxolator day</a></li><li><a href="http://www.leidinger.net/blog/2007/05/17/speeding-up-the-package-dependency-list-creation/" rel="bookmark" class="crp_title">Speeding up the package dependency list creation</a></li><li><a href="http://www.leidinger.net/blog/2006/06/15/compat_43-soc-and-stuff/" rel="bookmark" class="crp_title">COMPAT_43, SoC and stuff</a></li><li><a href="http://www.leidinger.net/blog/2007/08/29/easy-library-dependencies-detection-for-ports/" rel="bookmark" class="crp_title">Easy library dependencies detection for ports</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/06/03/lame-updated-in-the-freebsd-ports-collection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cheap process monitoring (no additional software required)</title>
		<link>http://www.leidinger.net/blog/2010/04/30/cheap-process-monitoring-no-additional-software-required/</link>
		<comments>http://www.leidinger.net/blog/2010/04/30/cheap-process-monitoring-no-additional-software-required/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 07:32:12 +0000</pubDate>
		<dc:creator>netchild</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Ports Collection]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Userland]]></category>
		<guid isPermaLink="false">http://www.leidinger.net/blog/?p=619</guid>
		<description><![CDATA[I have an old system (only the hardware, it runs –current) which reboots itself from time to time (mostly during the daily periodic(8) run, but also during a lot of compiling (portupgrade)). There is no obvious reason (no panic) why it is doing this. It could be that there is some hardware defect, or something [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I have an old system (only the hardware, it runs –current) which reboots itself from time to time (mostly during the daily <a href="http://man.freebsd.org/periodic">periodic(8)</a> run, but also during a lot of compiling (portupgrade)). There is no obvious reason (no panic) why it is doing this. It could be that there is some hardware defect, or something else. It is not important enough to get a high enough priority that I try hard to analyze the problem with this machine. The annoying part is, that sometimes after a restart apache does not start. So if this happens, the solution is to login and start the webserver. If the webserver would start each time, nearly nobody would detect the reboot (root gets an EMail on each reboot via an <em>@reboot</em> crontab entry).</p>
<p style="text-align: justify;">My pragmatic solution (for services started via a good rc.d script which has a working <em>status</em> command) is a crontab entry which checks periodically if it is running and which restarts the service if not. As an example for apache and an interval of 10 minutes:</p>
<p><code>*/10 * * * *    /usr/local/etc/rc.d/apache22 status &gt;/dev/null 2&gt;&amp;1 || /usr/local/etc/rc.d/apache22 restart</code></p>
<p style="text-align: justify;">For the use case of this service/machine, this is enough. In case of a problem with the service, a mail with the restart output would arrive each time it runs, else only after a reboot for which the service did not restart.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.leidinger.net/blog/2009/12/15/stability-problems-with-7-stable/" rel="bookmark" class="crp_title">Stability problems with 7-stable</a></li><li><a href="http://www.leidinger.net/blog/2009/09/25/emc2legato-networker-7-5-1-4-tests/" rel="bookmark" class="crp_title">EMC^2/Legato Networker 7.5.1.4 tests</a></li><li><a href="http://www.leidinger.net/blog/2010/06/11/periodic-scrubbing-of-zfs-pools/" rel="bookmark" class="crp_title">Periodic scrubbing of ZFS pools</a></li><li><a href="http://www.leidinger.net/blog/2009/08/14/emc2legato-networker-7-5-1-4-status/" rel="bookmark" class="crp_title">EMC^2/Legato Networker 7.5.1.4 status</a></li><li><a href="http://www.leidinger.net/blog/2009/08/21/howto-blind-remote-install-of-freebsd-via-tiny-disk-image/" rel="bookmark" class="crp_title">HOWTO: “Blind” remote install of FreeBSD via tiny disk image</a></li></ul></div><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.leidinger.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.leidinger.net/blog/2010/04/30/cheap-process-monitoring-no-additional-software-required/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
