<?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>When Brains Fly &#187; nfsn</title>
	<atom:link href="http://www.whenbrainsfly.com/tag/nfsn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whenbrainsfly.com</link>
	<description>An Awesome Blog About Neuroscience, Computer Science, and Technology</description>
	<lastBuildDate>Mon, 28 Jun 2010 01:03:21 +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>Bandwidth</title>
		<link>http://www.whenbrainsfly.com/2009/01/bandwidth/</link>
		<comments>http://www.whenbrainsfly.com/2009/01/bandwidth/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 04:16:06 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[nfsn]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=75</guid>
		<description><![CDATA[I have used 10.73 MB of bandwidth over the last three days based on my web access log. That feels like a lot. I think most of it is due to the large sizes of the WordPress admin php pages. Under NearlyFreeSpeech.NET (NFSN), I am paying based on how much bandwidth I use, which is [...]]]></description>
			<content:encoded><![CDATA[<p>I have used 10.73 MB of bandwidth over the last three days based on my web access log. That feels like a lot. I think most of it is due to the large sizes of the WordPress admin php pages. Under NearlyFreeSpeech.NET (NFSN), I am paying based on how much bandwidth I use, which is good because I don&#8217;t expect to have many readers right now and so under NFSN&#8217;s payment plan, I predict paying substantially less than $6/month &#8211; a typical price for other cheap web hosting. </p>
<p>Right now, I am being charged at $1 per GB transferred. Since I have used 10MB from the website and another 20MB from downloads and uploads (mostly from installing Movable Type and WordPress), I have to pay $0.03 for the four days that I have had this site. With that trend, I would have to pay about $0.23/month for bandwidth. I also have to pay $0.01/day for MySQL and $0.02/day for email forwarding. Altogether, I would have to pay about $1.13/month. That&#8217;s pretty cheap! Thus, NFSN is awesome.</p>
<p>Edit: I forgot to mention that NFSN also charges for storage at the rate of $0.01 per megabyte-month, which isn&#8217;t much, unless I am storing like a GB of stuff on my account.</p>
<p>Edit 2: I&#8217;m using about 8mb right now, so $0.08 per month. Pretty good. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2009/01/bandwidth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up AWStats</title>
		<link>http://www.whenbrainsfly.com/2009/01/setting-up-awstats/</link>
		<comments>http://www.whenbrainsfly.com/2009/01/setting-up-awstats/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 19:50:02 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[nfsn]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=51</guid>
		<description><![CDATA[My webhost, NearlyFreeSpeech.NET (NFSN) made this pretty easy. 
First, I made sure that my access log was enabled. Then, I made a cgi script in /home/public called awstats.cgi which had the following contents: 

#!/bin/sh
exec nfsn-awstats

(Don&#8217;t forget the line break on the second line.)
Next, I set the file&#8217;s permissions to 755, opened up a browser to [...]]]></description>
			<content:encoded><![CDATA[<p>My webhost, NearlyFreeSpeech.NET (NFSN) made this pretty easy. </p>
<p>First, I made sure that my access log was enabled. Then, I made a cgi script in <code>/home/public</code> called <code>awstats.cgi</code> which had the following contents: </p>
<pre>
#!/bin/sh
exec nfsn-awstats
</pre>
<p>(Don&#8217;t forget the line break on the second line.)</p>
<p>Next, I set the file&#8217;s permissions to 755, opened up a browser to <code>http://www.whenbrainsfly.com/awstats.cgi</code>, and did what it told me, which was to enter into the shell:</p>
<pre>cp -r /usr/local/www/awstats/icons /home/htdocs/.nfsn-awicons</pre>
<pre><del datetime="2009-12-15T05:41:00+00:00">ln -s /usr/local/www/awstats/icons /home/htdocs/.nfsn-awicons</del>
<small># 2009-12-15: Replaced with cp because images were still broken. Thanks Barb!</small></pre>
<p>Finally, I refreshed and it was all set up!</p>
<p>I wanted to change the time zone used by AWStats, so I went to <code>http://www.whenbrainsfly.com</code> and then in the shell, I entered:</p>
<pre>tail /home/logs/access_log</pre>
<p>to see what time it says the last visit to my site was. It says I visited at 19:27 and it is now actually 14:27, so it&#8217;s 5 hours early (or is it late?).</p>
<p>In the shell, I changed the permissions of <code>/home/private/</code> to 711 to make my files there executable. Then I created a file named <code>.awstats.conf</code> there and changed its permissions to 644.</p>
<p>Within <code>.awstats.conf</code>, I put</p>
<pre>
SiteDomain="www.whenbrainsfly.com"
HostAliases="whenbrainsfly.nfshost.com www.whenbrainsfly.com"

LoadPlugin="timezone -5"
</pre>
<p>The first two lines let me combine stats from both aliases of my site into one, and the last line handles the time zone shift.</p>
<p>Then, I had to rebuild the monthly reports (of which there was only one), so I went to <code>/home/tmp/</code> deleted all files that matched <code>awstatsMMYYYY.txt</code>, and re-opened <code>http://www.whenbrainsfly.com/awstats.cgi</code> in my browser.</p>
<p>I went down to the Hours section <code>http://www.whenbrainsfly.com/awstats.cgi?framename=mainright#hours</code> and it said &#8220;Hours (GMT -5)&#8221; and the visit times so far looked correct. Hooray!</p>
<p>To double-check that my configuration settings were applied, I looked at <code>/home/tmp/nfsn-awstats.conf</code> and confirmed that what I had written in <code>.awstats.conf</code> was there. </p>
<p>So now you can find my site stats at <a href="http://www.whenbrainsfly.com/awstats.cgi">http://www.whenbrainsfly.com/awstats.cgi</a>.</p>
<p>Reference:<br />
<a href="https://members.nearlyfreespeech.net/wiki/HowTo/AWstats">https://members.nearlyfreespeech.net/wiki/HowTo/AWstats</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2009/01/setting-up-awstats/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Movable Type</title>
		<link>http://www.whenbrainsfly.com/2009/01/installing-movable-type/</link>
		<comments>http://www.whenbrainsfly.com/2009/01/installing-movable-type/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 03:55:36 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[movable type]]></category>
		<category><![CDATA[nfsn]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=22</guid>
		<description><![CDATA[Installing Movable Type is pretty simple. Unfortunately, I still messed it up, multiple times. So, for my reference and for yours, here are the steps to installing Movable Type on my web server.
This site is hosted on NearlyFreeSpeech.NET (NFSN), which is an awesome, pay-for-what-you-use hoster. It already has the right PHP and Perl things installed [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Movable Type is pretty simple. Unfortunately, I still messed it up, multiple times. So, for my reference and for yours, here are the steps to installing Movable Type on my web server.</p>
<p>This site is hosted on <a href="http://nearlyfreespeech.net/">NearlyFreeSpeech.NET</a> (NFSN), which is an awesome, pay-for-what-you-use hoster. It already has the right PHP and Perl things installed for Movable Type. Since I recently made this site, I had no MySQL databases yet, so first, I created a MySQL process via the NFSN admin pages and then made a database named &#8220;movabletype.&#8221;</p>
<p>Next, I downloaded the file <code>MT-4.23-en.tar.gz</code> onto my computer from the <a href="http://www.movabletype.com/download/">Movable Type Download Page</a> under Movable Type Pro for Bloggers. (Note: the version offered at <a href="http://movabletype.org/">their .org website</a> offers their open source version for developers, which is different.) </p>
<p>Then, since unzipping the file and copying its contents to the web server was taking too long, I aborted that and scp&#8217;d <code>MT-4.23-en.tar.gz</code> from my computer to my root web directory of my web server, <code>/home/public/</code>. (Note: I am running Windows with Cygwin installed.) I then ssh&#8217;d into the web server and unzipped the file there. </p>
<p>I then made the directory mt in <code>/home/public</code>, and based on some suggestion from somewhere, I moved mt-static out of <code>/home/public/MT-4.23-en</code> (which was just created) to <code>/home/public/</code> and copied all of the other contents of <code>MT-4.23-en/</code> into <code>mt/</code>. </p>
<p>Next, I changed the group of mt to web, changed permissions of <code>mt-static/support</code> to 777, and removed the empty directory <code>MT-4.23-en</code>.</p>
<p>Then, I opened <code>http://www.whenbrainsfly.com/mt/mt.cgi</code> in my browser and began the installation wizard. I entered <code>/mt-static</code> as the static web path and hit continue. My web server&#8217;s PHP and Perl requirements checked out so I hit continue. At the Database Configuration prompt, I changed the database server from <code>localhost</code> to <code>my_mysql_process_name.db</code> because NFSN requires it, entered the other database info, and hit continue. At the next prompt, the Mail Configuration prompt, I selected sendmail, put in the path to it, <code>/usr/bin/sendmail/</code>, sent a test email, received the test email, and hit continue. The configuration file was successfully created so I hit continue there, and the configuration was finished!</p>
<p>Finally, I created an account, named my website, <code>chgrp web /home/public</code> so that my web server could write to it, told the prompt that I wanted my site at <code>/home/public</code>, selected the Professional Website theme, hit continue, and it was all done!</p>
<p>I then signed in and made my first post! =)</p>
<p>Sadly, this took me four times to get right.</p>
<p>The first time, I made the directory <code>/home/public/blog</code> and told Movable Type that I wanted my site there, not realizing that Movable Type is also a full-fledged Content Management System and that it would create a subdirectory called blog within <code>/home/public/blog</code> where my blog would lie.</p>
<p>The second time, I forgot to drop the movabletype MySQL database.</p>
<p>The third time, I got an error saying that my web server could not write to <code>/home/public/</code> which was true at the time. So, I chgrp&#8217;d it and continued, but the style changed to something other than Professional Website. I&#8217;m pretty sure I had changed it, so maybe this is a bug in Movable Type. I tried changing the style afterward but after selecting the Professional Blue style and publishing, the site was obviously missing elements and not how it was supposed to look. </p>
<p>The fourth time, I thought I had failed yet again because after the last step, I went to <code>http://www.whenbrainsfly.com</code> and got a 404. I thought that maybe if I wrote a post, it would appear, and sure enough, it did after saving my first entry.</p>
<p>References:<br />
<a href="http://www.movabletype.org/documentation/installation/quick-start.html">http://www.movabletype.org/documentation/installation/quick-start.html</a><br />
<a href="http://www.movabletype.org/documentation/installation/detailed-instructions.html">http://www.movabletype.org/documentation/installation/detailed-instructions.html</a><br />
<a href="http://www.superxm.com/2007/08/movable-type-4-installation-step-by-step-with-screenshots.html">http://www.superxm.com/2007/08/movable-type-4-installation-step-by-step-with-screenshots.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2009/01/installing-movable-type/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
