<?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>redigital blog</title>
	<atom:link href="http://redigital.org/wp/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://redigital.org/wp</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 17:41:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Extracting First and Last name from a single field in a drupal content-type</title>
		<link>http://redigital.org/wp/?p=175</link>
		<comments>http://redigital.org/wp/?p=175#comments</comments>
		<pubDate>Thu, 02 Sep 2010 17:41:23 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[drupal]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=175</guid>
		<description><![CDATA[It is possible to extract the first or last name from a single field in a drupal content-type using the computed_field module. Here were my steps, taken from the drupal structure guide : install computed_field and dependencies % drush dl &#8230; <a href="http://redigital.org/wp/?p=175">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It is possible to extract the first or last name from a single field in a <a href="http://drupal.org/">drupal </a>content-type using the <a href="http://drupal.org/project/computed_field">computed_field</a> module. Here were my steps, taken from the <a href="http://drupal.org/node/559618">drupal structure guide</a> :</p>
<ol>
<li>install computed_field and dependencies</li>
<pre>% drush dl computed_field
Project computed_field (6.x-1.0-beta3) downloaded to      [success]
/var/www/drupal6/sites/all/modules/computed_field.
% drush en computed_field
The following projects will be enabled: computed_field
Do you really want to continue? (y/n): y
computed_field was enabled successfully.                  [ok]</pre>
<li>edit your content type</li>
<li>add a new &#8216;Computed&#8217; field</li>
<li>under Global settings, make certain the &#8216;Computed Field&#8217; is in plain-text mode</li>
<li>for last name
<ul>
<li>
<pre><code>// compute last name
preg_match('~([^\s]+)(?:,.*)?$~',$node-&gt;title, $match);
$node_field[0]['value'] = $match[0];</code></pre>
</li>
<li>for first name:
<pre><code>// compute first name
$node_field[0]['value'] = \
                substr($node-&gt;title, 0, strrpos($node-&gt;title, " "));</code></pre>
</li>
</ul>
</li>
<li>change data-type to &#8220;varchar&#8221;</li>
<li>enable/check &#8220;Sortable&#8221;</li>
<li>Save content-type</li>
<li>Edit your view</li>
<li>Add a &#8216;Sort Criteria&#8217;</li>
<li>Use <em>Content: Computed Last Name (field_computed_lastname)</em></li>
<li>Click &#8216;Update&#8217; and then save your view</li>
<li>Navigate to the page where your listing is to see the new sorted version</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=175</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expanding LVM Partition on Ubuntu 8.04 LTS with VMWare</title>
		<link>http://redigital.org/wp/?p=172</link>
		<comments>http://redigital.org/wp/?p=172#comments</comments>
		<pubDate>Mon, 30 Aug 2010 20:18:39 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=172</guid>
		<description><![CDATA[power off VM edit settings in vmware client to expand hard drive to desired size (i went from 15G to 40G) power on VM parition the expanded area (/dev/sda3 in my case) fdisk /dev/sda Create a physical volume for LVM: &#8230; <a href="http://redigital.org/wp/?p=172">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<ul>
<li>power off VM</li>
<li>edit settings in vmware client to expand hard drive to desired size (i went from 15G to 40G)</li>
<li>power on VM</li>
<li>parition the expanded area (/dev/sda3 in my case)</li>
</ul>
<pre>fdisk /dev/sda</pre>
<ul>
<li>Create a physical volume for LVM:</li>
</ul>
<pre><span style="color: #999999;"># pvcreate /dev/sda3
Physical volume “/dev/sda3″ successfully created</span></pre>
<ul>
<li>Add the new physical volume to the volume group:</li>
</ul>
<pre> <span style="color: #999999;">#vgextend vg0 /dev/sda3
</span><span style="color: #999999;">Volume group “vg0″ successfully extended</span>
</pre>
<ul>
<li>Extend the Logical Volume, you can find the amount of space with which you can expand by running the &#8216;vgdisplay&#8217; command and use the value from &#8220;Free PE/Size&#8221;</li>
</ul>
<pre><span style="color: #c0c0c0;"># lvextend -L+24.99G /dev/vg0/lv0</span>
 <span style="color: #c0c0c0;"> Rounding up size to full physical extent 24.99 GB</span>
 <span style="color: #c0c0c0;"> Extending logical volume lv0 to 39.09 GB</span>
 <span style="color: #c0c0c0;"> Logical volume lv0 successfully resized

</span></pre>
<p>Sourced some of the steps from <a href="http://www.swizzling.org/2008/04/01/expand-lvm-disk-on-linux-in-vmware/">http://www.swizzling.org/2008/04/01/expand-lvm-disk-on-linux-in-vmware/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=172</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>reset snow leopard firewall to defaults</title>
		<link>http://redigital.org/wp/?p=162</link>
		<comments>http://redigital.org/wp/?p=162#comments</comments>
		<pubDate>Mon, 02 Aug 2010 14:29:41 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[consulting]]></category>
		<category><![CDATA[desktop support]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=162</guid>
		<description><![CDATA[originally from http://www.google.com/url?sa=t&#38;source=web&#38;cd=1&#38;ved=0CBIQFjAA&#38;url=http%3A%2F%2Fforums.macrumors.com%2Fshowthread.php%3Ft%3D406592&#38;ei=MNVWTNWbFYq8sQOh4aXaAg&#38;usg=AFQjCNEedaVs_julrXp8dLwD0CWg31aMUA &#8220;It sounds like a bad Application Firewall configuration (missing the exceptions that allow configd, mDNSresponder, and racoon). Restore from the defaults:&#8221; sudo cp /usr/libexec/ApplicationFirewall/com.apple.alf.plist /Library/Preferences/com.apple.alf.plist]]></description>
			<content:encoded><![CDATA[<p>originally from <a href="http://www.google.com/url?sa=t&amp;source=web&amp;cd=1&amp;ved=0CBIQFjAA&amp;url=http%3A%2F%2Fforums.macrumors.com%2Fshowthread.php%3Ft%3D406592&amp;ei=MNVWTNWbFYq8sQOh4aXaAg&amp;usg=AFQjCNEedaVs_julrXp8dLwD0CWg31aMUA">http://www.google.com/url?sa=t&amp;source=web&amp;cd=1&amp;ved=0CBIQFjAA&amp;url=http%3A%2F%2Fforums.macrumors.com%2Fshowthread.php%3Ft%3D406592&amp;ei=MNVWTNWbFYq8sQOh4aXaAg&amp;usg=AFQjCNEedaVs_julrXp8dLwD0CWg31aMUA</a></p>
<p>&#8220;It sounds like a bad Application Firewall configuration (missing the exceptions that allow configd, mDNSresponder, and racoon). Restore from the defaults:&#8221;</p>
<p><code>sudo cp /usr/libexec/ApplicationFirewall/com.apple.alf.plist /Library/Preferences/com.apple.alf.plist</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=162</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flying at the Ruins</title>
		<link>http://redigital.org/wp/?p=160</link>
		<comments>http://redigital.org/wp/?p=160#comments</comments>
		<pubDate>Thu, 15 Jul 2010 14:46:40 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[hobbies]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=160</guid>
		<description><![CDATA[DS at the Ruins from randall on Vimeo.]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="360"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=13341986&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=13341986&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="360"></embed></object>
<p><a href="http://vimeo.com/13341986">DS at the Ruins</a> from <a href="http://vimeo.com/user1903540">randall</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=160</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No-Click Hover Links using Drupal &amp; Nice Menus</title>
		<link>http://redigital.org/wp/?p=154</link>
		<comments>http://redigital.org/wp/?p=154#comments</comments>
		<pubDate>Thu, 24 Jun 2010 17:22:58 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=154</guid>
		<description><![CDATA[I encountered a problem while viewing  a Drupal site with Nice Menus on an Android whereby you could not get to the submenu when clicking on the parent links. On an iPhone a single-tap is taken 1) set URL for &#8230; <a href="http://redigital.org/wp/?p=154">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I encountered a problem while viewing  a Drupal site with Nice Menus on an Android whereby you could not get to the submenu when clicking on the parent links. On an iPhone a single-tap is taken</p>
<p>1) set URL for parent links that you don&#8217;t want to take you anywhere to http://fake.link</p>
<p>2) add the following code to your template.php (at bottom is fine) &#8211; note prefix of function name is the template name ${template_name}_menu_item_link()</p>
<pre style="padding-left: 30px;"><span style="color: #800000;">/* 2010-06-24 randall s. ehren &lt;randall@isber.ucsb.edu&gt;
 taken from http://drupal.org/node/143322#comment-1166563

 */

function zeropoint_menu_item_link($link) {
 if (empty($link['localized_options'])) {
 $link['localized_options'] = array();
 }

 if (!$link['page_callback'] &amp;&amp; strpos( $link['href'], 'fake.link')) {
 return '&lt;a href="#"&gt;'. $link['title'] .'&lt;/a&gt;';
 }
 else {
 return l($link['title'], $link['href'], $link['localized_options']);
 }
}</span>
</pre>
<p>3) check your navigation bar</p>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=154</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ways to disable emailed output or mail alert by crontab</title>
		<link>http://redigital.org/wp/?p=152</link>
		<comments>http://redigital.org/wp/?p=152#comments</comments>
		<pubDate>Mon, 07 Jun 2010 20:55:55 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=152</guid>
		<description><![CDATA[Prevent the sending of errors and output by crontab For a entry-by-entry method to prevent the sending of errors and output, add any one of the following at the end of the line for each cron job to redirect output &#8230; <a href="http://redigital.org/wp/?p=152">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Prevent the sending of errors and output by crontab</h2>
<p style="padding-left: 30px;">For a entry-by-entry method to prevent the sending of errors and output, add any one of the  following at the end of the line for each cron job to redirect output to  /dev/null:<br />
<strong>&gt;/dev/null 2&gt;&amp;1.</strong><br />
OR<br />
<strong>&amp;&gt; /dev/null</strong></p>
<p><strong>as in </strong></p>
<pre style="padding-left: 30px;"><code>0 1 5 10 * /path/to/script.sh &gt;/dev/null 2&gt;&amp;1</code></pre>
<h2><strong>or to enforce for all entries in the crontab, enter the following to the first line of your crontab:</strong></h2>
<pre style="padding-left: 30px;"><code>MAILTO=""</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=152</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Chork :: Chopsticks &amp; Fork</title>
		<link>http://redigital.org/wp/?p=150</link>
		<comments>http://redigital.org/wp/?p=150#comments</comments>
		<pubDate>Mon, 07 Jun 2010 18:55:33 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=150</guid>
		<description><![CDATA[The Chork :: Chopsticks &#38; Fork. See you later spork.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thechork.com/">The Chork :: Chopsticks &amp; Fork</a>. See you later spork.</p>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=150</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen Theme and Nice Menus &#8211; CSS Block Padding Issue</title>
		<link>http://redigital.org/wp/?p=148</link>
		<comments>http://redigital.org/wp/?p=148#comments</comments>
		<pubDate>Fri, 28 May 2010 04:41:52 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=148</guid>
		<description><![CDATA[this fix was originally found here (http://www.1drupal.com/content/zen-theme-and-nice-menus-block-padding-issue) but i&#8217;m reposting in case that site goes away&#8230; when using a customized Drupal Zen Theme, and Nice Menus instead of the standard Primary Navigation Menu extra padding can appear above or below &#8230; <a href="http://redigital.org/wp/?p=148">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>this fix was originally found here (<a href="http://www.1drupal.com/content/zen-theme-and-nice-menus-block-padding-issue">http://www.1drupal.com/content/zen-theme-and-nice-menus-block-padding-issue</a>) but i&#8217;m reposting in case that site goes away&#8230;</p>
<p>when using a customized Drupal Zen Theme, and Nice Menus instead of the standard Primary Navigation Menu extra padding can appear above or below the navigation bar. The Nice Menu is a block and inherits the default margin from Zen&#8217;s CSS.</p>
<blockquote>
<pre>.block /* Block wrapper */ { margin-bottom: 1em; }</pre>
</blockquote>
<div>you can change &#8220;1em&#8221; to &#8220;0&#8243; or delete that statement and add:</div>
<blockquote>
<pre>#block-nice_menus-1 { margin-bottom: 0; }</pre>
</blockquote>
<div>&#8220;-1&#8243; is for nice menu 1 (in this case, the primary menu).</div>
<blockquote>
<div></div>
<div id="_mcePaste"></div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=148</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphing wind speed and direction using rrdtool and Wunderground.com XML Feeds</title>
		<link>http://redigital.org/wp/?p=143</link>
		<comments>http://redigital.org/wp/?p=143#comments</comments>
		<pubDate>Tue, 25 May 2010 15:56:20 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=143</guid>
		<description><![CDATA[Create windspeed RRD data file: rrdtool create sbwind.rrd \ --start 1127253600 \ DS:wind:GAUGE:600:U:U \ DS:gust:GAUGE:600:U:U \ RRA:MIN:0.5:1:600 \ RRA:MIN:0.5:6:700 \ RRA:MIN:0.5:24:775 \ RRA:MIN:0.5:288:797 \ RRA:AVERAGE:0.5:1:600 \ RRA:AVERAGE:0.5:6:700 \ RRA:AVERAGE:0.5:24:775 \ RRA:AVERAGE:0.5:288:797 \ RRA:MAX:0.5:1:600 \ RRA:MAX:0.5:6:700 \ RRA:MAX:0.5:24:775 \ RRA:MAX:0.5:288:797 Create &#8230; <a href="http://redigital.org/wp/?p=143">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<ul>
<li>Create windspeed RRD data file:</li>
</ul>
<pre style="padding-left: 30px;">rrdtool create sbwind.rrd \
 --start 1127253600 \
 DS:wind:GAUGE:600:U:U \
 DS:gust:GAUGE:600:U:U \
 RRA:MIN:0.5:1:600 \
 RRA:MIN:0.5:6:700 \
 RRA:MIN:0.5:24:775 \
 RRA:MIN:0.5:288:797 \
 RRA:AVERAGE:0.5:1:600 \
 RRA:AVERAGE:0.5:6:700 \
 RRA:AVERAGE:0.5:24:775 \
 RRA:AVERAGE:0.5:288:797 \
 RRA:MAX:0.5:1:600 \
 RRA:MAX:0.5:6:700 \
 RRA:MAX:0.5:24:775 \
 RRA:MAX:0.5:288:797</pre>
<ul>
<li>Create wind direction RRD data file:</li>
</ul>
<pre style="padding-left: 30px;">rrdtool create sbwinddir.rrd \
 --start 1127253600 \
 DS:wind_direction:GAUGE:600:0:360 \
 RRA:AVERAGE:0.5:1:600</pre>
<h2>update_rrd_data.php</h2>
<pre style="padding-left: 30px;">&lt;?php
// 2010-02-22 - testing simplexml

/*
 - ellwood: http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=MSBELL
 - bel air: http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=KCASANTA122
 - mesa   : http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=MAS714
 - cumbre : http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=MAS303
 - airport: http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=MKSBA
 */

// setup variables

$debug = 1;

$a = array();
$a['ellwood']  = 'http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=MSBELL';
$a['belair']   = 'http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=KCASANTA122';
$a['mesa']     = 'http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=MAS714';
$a['lacumbre'] = 'http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=MAS303';
$a['airport']  = 'http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=MKSBA';

$wdir = "/var/www/redigital.org/sbwindi/xml";

// loop through the locations and update the graphs
foreach ($a as $location =&gt; $value) {

 $xml_url = $value;

 $wind_data = simplexml_load_file($xml_url);

 //$wind_data = $xml;

 $wind_mph      = $wind_data-&gt;wind_mph;
 $wind_gust_mph = $wind_data-&gt;wind_gust_mph;
 if ($wind_gust_mph == "0")
 $wind_gust_mph = $wind_mph;
 $wind_direction      = $wind_data-&gt;wind_direction;
 $wind_degrees  = $wind_data-&gt;wind_degrees;
 $wind_string   = $wind_data-&gt;wind_string;

 //$update_rrd_data_cmd = "/usr/bin/rrdtool update ${wdir}/${location}.rrd \"N:${wind_mph}:${wind_gust_mph}\"";
 //$update_rrd_data = `$update_rrd_data_cmd`;

 $update_dir_data_cmd = "/usr/bin/rrdtool update ${wdir}/${location}_dir.rrd \"N:${wind_degrees}\"";
 $update_dir_data = `$update_dir_data_cmd`;

 $update_graph_cmd = "/usr/bin/rrdtool graph ${wdir}/${location}_d.png \
 -M -v mph -t ${location}-'${wind_string}' -w 320 --height=120 --alt-autoscale-max --lower-limit=0 -s 09:00 -e 20:00 \
DEF:a=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE  \
DEF:b=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE \
DEF:c=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE  \
DEF:d=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE \
DEF:e=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE \
DEF:f=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE \
DEF:g=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE \
DEF:h=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE \
DEF:i=${wdir}/${location}_dir.rrd:wind_direction:AVERAGE  \
DEF:j=${wdir}/${location}.rrd:wind:AVERAGE \
DEF:ba=${wdir}/${location}.rrd:gust:AVERAGE \
DEF:bb=${wdir}/${location}.rrd:wind:AVERAGE \
CDEF:cdefa=i,0,GE,i,22.5,GE,UNKN,INF,IF,UNKN,IF  \
CDEF:cdefb=i,22.6,GE,i,67.5,GE,UNKN,INF,IF,UNKN,IF  \
CDEF:cdefc=i,67.6,GE,i,112.5,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefd=i,112.6,GE,i,157.5,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefe=i,157.6,GE,i,202.5,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdeff=i,202.6,GE,i,247.5,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefg=i,247.6,GE,i,292.5,GE,UNKN,INF,IF,UNKN,IF  \
CDEF:cdefh=i,292.6,GE,i,337.5,GE,UNKN,INF,IF,UNKN,IF  \
CDEF:cdefi=i,337.6,GT,i,360.99,GT,UNKN,INF,IF,UNKN,IF \
AREA:cdefa#8D85F3:\"North\" \
AREA:cdefb#9FA4EE:\"North East\"  \
AREA:cdefc#F9FD5F:\"East\" \
AREA:cdefd#EACC00:\"South East\\n\"  \
AREA:cdefe#EAAF00:\"South\"  \
AREA:cdeff#EA8F00:\"South West\"  \
AREA:cdefg#00CF00:\"West\" \
AREA:cdefh#6557D0:\"North West\\n\" \
AREA:cdefi#8D85F3:\"\" \
GPRINT:i:LAST:\"Current Direction in Degrees\:%8.2lf %s\\n\" \
AREA:bb#C0C0C0:\"\" \
LINE2:ba#562B29:\"\" \
LINE1:bb#000000:\"\"
";

 $update_graph = `$update_graph_cmd`;

 if ( $debug ) {
 echo "&lt;p&gt;\n";
 echo "&lt;h2&gt; location = ${location}&lt;/h2&gt;\n";
 echo "&lt;h3&gt; url = ${value}&lt;/h3&gt;\n";
 echo "&lt;img src=${location}_d.png&gt;&lt;br&gt;\n";
 echo "&lt;pre&gt;\n";
 print_r($wind_data);
 echo $update_dir_data_cmd . "&lt;br&gt;";
 echo $update_graph_cmd . "&lt;br&gt;";
 echo "&lt;/pre&gt;&lt;/p&gt;&lt;hr&gt;\n";
 }
}
?&gt;
</pre>
<h2>index.php</h2>
<pre style="padding-left: 30px;">&lt;?php

#20100524 - randall s. ehren &lt;randall@redigital.org&gt;

$base_path = "/sbwindi/";
?&gt;
&lt;html&gt;
&lt;head&gt;
&lt;!-- render the page for iphones well --&gt;
&lt;meta name="viewport" content="width=device-width,minimum-scale=1.0, initial-scale=1" /&gt;
&lt;title&gt;iphone bel air knolls wind graph&lt;/title&gt;
&lt;style&gt;
@media screen and (max-device-width: 480px){
/*--- iPhone only CSS here ---*/
body{
 -webkit-text-size-adjust:none;
 /* font-family:Helvetica, Arial, Verdana, sans-serif; */
 margin:0;
 padding:0;
}

}
#menubar ul {
 list-style: none;
 padding: 0;
 margin: 0;
}
#menubar li {
 float: left;
 margin: 0 0em;
}

#menubar li a {
 background: url(css-nav.gif) #fff bottom left repeat-x;
 height: 2em;
 line-height: 2em;
 float: left;
 width: 3.9em;
 display: block;
 border: 0.1em solid #dcdce9;
 color: #0d2474;
 text-decoration: none;
 text-align: center;
}

#content {

}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="header"&gt;
 &lt;div id="menubar"&gt;
 &lt;ul&gt;
 &lt;li&gt;&lt;a href="&lt;?=$_SERVER[PHP_SELF]?&gt;?l=airport"&gt;airport&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="&lt;?=$_SERVER[PHP_SELF]?&gt;?l=ellwood"&gt;ellwood&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="&lt;?=$_SERVER[PHP_SELF]?&gt;?l=belair"&gt;belair&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="&lt;?=$_SERVER[PHP_SELF]?&gt;?l=lacumbre"&gt;lacumbre&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="&lt;?=$_SERVER[PHP_SELF]?&gt;?l=mesa"&gt;mesa&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;
&lt;div id="content" align="left"&gt;</pre>
<pre style="padding-left: 30px;">&lt;?php

function display_wind_graphs($location)
{
 echo "&lt;br&gt;&lt;br&gt;\n";
 echo "&lt;img src=\"/sbwindi/xml/${location}_d.png\" width=\"320\" alt=\"${location}\"&gt;";
 echo "&lt;br&gt;\n";
 echo "&lt;img src=\"/sbwindi/xml/${location}_h.png\" width=\"320\" alt=\"${location}\"&gt;";
}

 $location = $_GET["l"];
 switch ($location) {
 case "airport":
 $loc_name = "Airport";
 //echo '&lt;a href="http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MKSBA"&gt;&lt;img src="http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=pws250&amp;weatherstationcount=MKSBA" width="250" height="150" border="0" alt="Weather Underground PWS MKSBA" /&gt;&lt;/a&gt;';
 display_wind_graphs($location);
 break;
 case "mesa":
 $loc_name = "Mesa";
 //echo '&lt;a href="http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MAS714"&gt;&lt;img src="http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=pws250&amp;weatherstationcount=MAS714" width="250" height="150" border="0" alt="Weather Underground PWS MAS714" /&gt;&lt;/a&gt;';
 display_wind_graphs($location);
 break;
 case "ellwood":
 $loc_name = "Mesa";
 //echo '&lt;a href="http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MSBELL"&gt;&lt;img src="http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=pws250&amp;weatherstationcount=MSBELL" width="250" height="150" border="0" alt="Weather Underground PWS MSBELL" /&gt;&lt;/a&gt;';
 display_wind_graphs($location);
 break;
 case "lacumbre":
 //echo '&lt;a href="http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MAS303"&gt;&lt;img src="http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=pws250&amp;weatherstationcount=MAS303" width="250" height="150" border="0" alt="Weather Underground PWS MAS303" /&gt;&lt;/a&gt;';
 display_wind_graphs($location);
 break;
 case "belair":
 //echo '&lt;a href="http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KCASANTA122"&gt;&lt;img src="http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=pws250&amp;weatherstationcount=KCASANTA122" width="250" height="150" border="0" alt="Weather Underground PWS KCASANTA122" /&gt;&lt;/a&gt;';
 display_wind_graphs($location);
 break;
 }

?&gt;</pre>
<pre style="padding-left: 30px;">&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=143</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot complete WindowsXP repair/install in Safe Mode, Setup continually retarts from black Safe Mode screen</title>
		<link>http://redigital.org/wp/?p=139</link>
		<comments>http://redigital.org/wp/?p=139#comments</comments>
		<pubDate>Thu, 06 May 2010 18:29:08 +0000</pubDate>
		<dc:creator>randall</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redigital.org/wp/?p=139</guid>
		<description><![CDATA[if you receive the message &#8220;Cannot complete WindowsXP repair/install in Safe Mode, Setup continually retarts from black Safe Mode screen.&#8221; while trying to repair a broken Windows XP installation here are the steps to resolving the problem, as found at &#8230; <a href="http://redigital.org/wp/?p=139">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>if you receive the message &#8220;Cannot complete WindowsXP repair/install in Safe Mode, Setup continually retarts from black Safe Mode screen.&#8221; while trying to repair a broken Windows XP installation here are the steps to resolving the problem, as found at <a href="http://www.geekstogo.com/forum/Cannot-complete-WindowsXP-repair-install-Safe-Mode-t92558.html">http://www.geekstogo.com/forum/Cannot-complete-WindowsXP-repair-install-Safe-Mode-t92558.html</a> :</p>
<ol>
<li> Configure the computer to  start from the CD-ROM or DVD-ROM drive. For  information about how to do this, see your computer documentation, or  contact your computer manufacturer.</li>
<li>Insert the Windows XP CD-ROM  into your CD-ROM or DVD-ROM drive, and then restart your computer</li>
<li> When you receive the &#8220;Press any key to boot from CD&#8221; message, press a  key to start your computer from the Windows XP CD-ROM.</li>
<li>When  you receive the &#8220;Welcome to Setup&#8221; message, press R to start the  Recovery Console.</li>
<li>If you have a dual-boot or multiple-boot  computer, select the installation that you have to use from the Recovery  Console.</li>
<li>When you are prompted, type the administrator  password, and then press ENTER.</li>
<li> At the command prompt, type  bootcfg /list, and then press ENTER. The entries in your current  Boot.ini file appear on the screen.</li>
<li>At the command prompt,  type bootcfg /rebuild, and then press ENTER. This command scans the hard  disks of the computer for Windows XP, Microsoft Windows 2000, or Microsoft Windows NT installations, and then displays the  results. Follow the instructions that appear on the screen to add the  Windows installations to the Boot.ini file. For example, follow these  steps to add a Windows XP installation to the Boot.ini file:</li>
</ol>
<address style="padding-left: 30px;"></address>
<ul>
<li>When you receive a message that is similar to the following message,  press Y:</li>
</ul>
<address style="padding-left: 30px;">
Total Identified Windows Installs: 1</p>
<p>[1]  C:\Windows<br />
Add installation to boot list? (Yes/No/All)</p>
</address>
<ul>
<li>You  receive a message that is similar to the following message:</li>
</ul>
<address style="padding-left: 30px;">
Enter  Load Identifier</p>
<p>This is the name of the operating system. When  you receive this message, type the name of your operating system, and  then press ENTER. This is either Microsoft Windows XP Professional or Microsoft Windows XP Home Edition.</p>
</address>
<ul>
<li>You receive a message  that is similar to the following:</li>
</ul>
<address style="padding-left: 30px;">
Enter OS Load options</p>
<p>When  you receive this message, type /fastdetect, and then press ENTER.</p>
<p>Note  The instructions that appear on your screen may be different, depending  on the configuration of your computer.<!-- google_ad_section_end --></address>
]]></content:encoded>
			<wfw:commentRss>http://redigital.org/wp/?feed=rss2&amp;p=139</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
