<?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>LardBucket</title>
	<atom:link href="http://lardbucket.org/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://lardbucket.org/blog</link>
	<description>My Blog</description>
	<lastBuildDate>Sun, 27 Dec 2009 22:45:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress 2.9 Image/Media Upload Problems</title>
		<link>http://lardbucket.org/blog/archives/2009/12/27/wordpress-2-9-imagemedia-upload-problems/</link>
		<comments>http://lardbucket.org/blog/archives/2009/12/27/wordpress-2-9-imagemedia-upload-problems/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 22:45:41 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=211</guid>
		<description><![CDATA[So, as I just spent a half hour fixing friends&#8217; blogs after the upgrade to WordPress 2.9, perhaps this will help someone else if it gets indexed by the search engines:
We were having problems with WordPress thinking that it was accepting uploads of images and trying to display them, but the files didn&#8217;t actually exist [...]]]></description>
			<content:encoded><![CDATA[<p>So, as I just spent a half hour fixing friends&#8217; blogs after the upgrade to WordPress 2.9, perhaps this will help someone else if it gets indexed by the search engines:</p>
<p>We were having problems with WordPress thinking that it was accepting uploads of images and trying to display them, but the files didn&#8217;t actually exist where they should have, throwing a file not found in the browser. It was a bit weird, because the only errors in the server log were that the browser couldn&#8217;t find the file, but the AJAX image editor in WordPress seemed to work. It turns out that somehow the settings got changed. If you&#8217;re having the same problem, follow these steps:</p>
<p><span id="more-211"></span></p>
<ol>
<li>Go to the WordPress Dashboard (your administration panel, where you can create new posts, etc.)</li>
<li>Click &#8220;Settings&#8221; on the sidebar.</li>
<li>Choose &#8220;Miscellaneous&#8221; as a subcategory.</li>
<li>Change &#8220;Store uploads in this folder&#8221; to something correct for your server. In general, this should be &#8220;wp-content/uploads&#8221;, which is supposedly the default.</li>
</ol>
<p>And that&#8217;s it. Image/media uploads will work again.</p>
<p>Andy Schmitz</p>
<p>(It&#8217;s not clear whether the problem was triggered by the upgrade to 2.9 or had existed for some time, but from reports that image uploading worked recently, I&#8217;m inclined to think it may indeed have been the automatic upgrade to 2.9 that caused the problems.)</p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/12/27/wordpress-2-9-imagemedia-upload-problems/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>For All the People Back on Earth</title>
		<link>http://lardbucket.org/blog/archives/2009/12/25/for-all-the-people-back-on-earth/</link>
		<comments>http://lardbucket.org/blog/archives/2009/12/25/for-all-the-people-back-on-earth/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 06:01:48 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=172</guid>
		<description><![CDATA[If you&#8217;re old enough (well, not that old), odds are that you watched this live, or at some point. In what, as far as I can tell, was the first human non-terrestrial Christmas greeting, Frank Borman, Jim Lovell, and William Anders, after noting the lonely view below, read off Genesis 1:1-10, then,
&#8220;And from the crew [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re old enough (well, not <em>that</em> old), odds are that you watched this live, or at some point. In what, as far as I can tell, was the first human non-terrestrial Christmas greeting, Frank Borman, Jim Lovell, and William Anders, after noting the lonely view below, read off Genesis 1:1-10, then,</p>
<blockquote><p>&#8220;And from the crew of Apollo 8, we close with good night, good luck,  a Merry Christmas, and God bless all of you &#8211; all of you on the good Earth.&#8221;</p></blockquote>
<p>And, of course, for anyone who has been persuaded otherwise, just under three hours later, after performing the Trans-Earth Injection on the far side of the moon, Lovell reported back, &#8220;Please be informed, there is a Santa Claus.&#8221; (Houston / Mattingly accepted the information, saying, &#8220;That&#8217;s affirmative. You&#8217;re the best ones to know.&#8221;)</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="320" height="262" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://video.lardbucket.org/FlowPlayer.swf?config=%7Bembedded%3Atrue%2CmenuItems%3A%5Bfalse%2Ctrue%2Ctrue%2Cfalse%2Cfalse%2Ctrue%5D%2CshowFullScreenButton%3Afalse%2CplayList%3A%5B%7Burl%3A%27ctp%2Ejpg%27%7D%2C%7Burl%3A%27getVideo%2F354641874%27%7D%5D%2CbaseURL%3A%27http%3A%2F%2Fvideo%2Elardbucket%2Eorg%2F%27%2CshowPlayListButtons%3Afalse%2CshowLoopButton%3Afalse%2CinitialScale%3A%27orig%27%2Cloop%3Afalse%2CautoPlay%3Afalse%7D" /><param name="bgcolor" value="111111" /><param name="src" value="http://video.lardbucket.org/FlowPlayer.swf?config=%7Bembedded%3Atrue%2CmenuItems%3A%5Bfalse%2Ctrue%2Ctrue%2Cfalse%2Cfalse%2Ctrue%5D%2CshowFullScreenButton%3Afalse%2CplayList%3A%5B%7Burl%3A%27ctp%2Ejpg%27%7D%2C%7Burl%3A%27getVideo%2F354641874%27%7D%5D%2CbaseURL%3A%27http%3A%2F%2Fvideo%2Elardbucket%2Eorg%2F%27%2CshowPlayListButtons%3Afalse%2CshowLoopButton%3Afalse%2CinitialScale%3A%27orig%27%2Cloop%3Afalse%2CautoPlay%3Afalse%7D" /><embed type="application/x-shockwave-flash" width="320" height="262" src="http://video.lardbucket.org/FlowPlayer.swf?config=%7Bembedded%3Atrue%2CmenuItems%3A%5Bfalse%2Ctrue%2Ctrue%2Cfalse%2Cfalse%2Ctrue%5D%2CshowFullScreenButton%3Afalse%2CplayList%3A%5B%7Burl%3A%27ctp%2Ejpg%27%7D%2C%7Burl%3A%27getVideo%2F354641874%27%7D%5D%2CbaseURL%3A%27http%3A%2F%2Fvideo%2Elardbucket%2Eorg%2F%27%2CshowPlayListButtons%3Afalse%2CshowLoopButton%3Afalse%2CinitialScale%3A%27orig%27%2Cloop%3Afalse%2CautoPlay%3Afalse%7D" bgcolor="111111" data="http://video.lardbucket.org/FlowPlayer.swf?config=%7Bembedded%3Atrue%2CmenuItems%3A%5Bfalse%2Ctrue%2Ctrue%2Cfalse%2Cfalse%2Ctrue%5D%2CshowFullScreenButton%3Afalse%2CplayList%3A%5B%7Burl%3A%27ctp%2Ejpg%27%7D%2C%7Burl%3A%27getVideo%2F354641874%27%7D%5D%2CbaseURL%3A%27http%3A%2F%2Fvideo%2Elardbucket%2Eorg%2F%27%2CshowPlayListButtons%3Afalse%2CshowLoopButton%3Afalse%2CinitialScale%3A%27orig%27%2Cloop%3Afalse%2CautoPlay%3Afalse%7D"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/12/25/for-all-the-people-back-on-earth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MIPS and spimbot</title>
		<link>http://lardbucket.org/blog/archives/2009/11/20/mips-and-spimbot/</link>
		<comments>http://lardbucket.org/blog/archives/2009/11/20/mips-and-spimbot/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 20:38:50 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=204</guid>
		<description><![CDATA[So, the CS232 spimbot competition was today. My partner (Connor Simmons) and I made a robot (actually just a piece of code) that came in second out of 37 (or 38?). It was a rather interesting competition. The page on it that I&#8217;ve set up (complete with MIT-licensed source code) is right here.
I remain impressed [...]]]></description>
			<content:encoded><![CDATA[<p>So, the CS232 spimbot competition was today. My partner (Connor Simmons) and I made a robot (actually just a piece of code) that came in second out of 37 (or 38?). It was a rather interesting competition. The page on it that I&#8217;ve set up (complete with MIT-licensed source code) is <a href="http://lardbucket.org/projects/spimbot/">right here</a>.</p>
<p>I remain impressed by the only team to beat us (and their come-from-behind win), whose inventive approach used an attack on the time-based seed of the random number generator to find where the tokens could be placed within the 50 minutes the competition was run. The one-second resolution used as a seed for the random number generator gave a small enough number of possible locations for tokens that they were able to accurately predict where all the tokens would be given just one token&#8217;s location. This strategy meant they lost a number of matches (I assume to slow calculations, but I may be wrong), including to our robot, but in the end, they were able to win more often (or by more tokens), so congratulations to them.</p>
<p>Andy Schmitz</p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/11/20/mips-and-spimbot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Illinois Basic Skills Test</title>
		<link>http://lardbucket.org/blog/archives/2009/11/14/the-illinois-basic-skills-test/</link>
		<comments>http://lardbucket.org/blog/archives/2009/11/14/the-illinois-basic-skills-test/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 21:28:56 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=200</guid>
		<description><![CDATA[The Illinois Certification Testing System&#8217;s Basic Skills Test is required for admission to any secondary education (high school, middle school) teaching program in Illinois. (Notably, I&#8217;m taking it today.) It has 126 questions:

48 Reading Comprehension Questions
42 Language Arts Questions
35 Mathematics Questions
1 Writing Assignment

So, nearly everyone taking the test has also taken the ACT (required in [...]]]></description>
			<content:encoded><![CDATA[<h2 style="font-size: 1.5em;"><span style="font-weight: normal; font-size: 13px;">The <a href="http://www.icts.nesinc.com/index.asp">Illinois Certification Testing System</a>&#8217;s Basic Skills Test is required for admission to any secondary education (high school, middle school) teaching program in Illinois. (Notably, I&#8217;m taking it today.) It has 126 questions:</span></h2>
<ul>
<li>48 Reading Comprehension Questions</li>
<li>42 Language Arts Questions</li>
<li>35 Mathematics Questions</li>
<li>1 Writing Assignment</li>
</ul>
<p>So, nearly everyone taking the test has also taken the ACT (required in Illinois for high school graduation in most cases). On the ACT, these sets should take:</p>
<ul>
<li>48 Reading Questions &#8211; 42 minutes (48 questions * (35 minutes / 40 questions)) [<a href="http://www.actstudent.org/testprep/descriptions/readdescript.html">reference</a>]</li>
<li>42 Language Arts [English] Questions &#8211; 25.2 minutes (42 questions * (45 minutes / 75 questions)) [<a href="http://www.actstudent.org/testprep/descriptions/engdescript.html">reference</a>]</li>
<li>35 Mathematics Questions &#8211; 35 minutes (35 questions * (60 minutes / 60 questions)) [<a href="http://www.actstudent.org/testprep/descriptions/mathdescript.html">reference</a>]</li>
<li>1 Writing Assignment &#8211; 30 minutes [<a href="http://www.actstudent.org/testprep/descriptions/writingdescript.html">reference</a>]</li>
</ul>
<p>And yes, they&#8217;re about the same difficulty (see: PDF list of tested skills for <a href="http://www.icts.nesinc.com/PDFs/IL_fld096R_FW.pdf">ICTS Basic Skills Test</a> and the <a href="http://www.act.org/standard/pdf/CRS.pdf">ACT</a>). Having looked through the materials for both, I&#8217;d put the ICTS Basic Skills Test somewhere around the middle of the ACT&#8217;s level of questions, if a bit toward the higher end in some cases. (I looked mainly at the math questions, but the same seemed to hold for the reading and English questions as well).</p>
<p>So, that&#8217;s about 132.2 minutes. So, just over two hours. Say 2.5. Except the ICTS Basic Skills Test gives twice that. 5 hours. To answer 125 questions and write a short (five-paragraph is fine) essay. That just seems wrong. And the Basic Skills Test also allows the person taking it to skip around in the sections as much as they like (so there&#8217;s no lost time in waiting for a section to end, which is effectively expected in the ACT).</p>
<p>(Notably, the ACT&#8217;s &#8220;Services for Students with Disabilities&#8221; gives time-and-a-half testing as their <a href="http://www.act.org/aap/disab/index.html">standard extended time solution</a>. The Basic Skills Test default is more than time-and-a-half, and <a href="http://www.icts.nesinc.com/IL14_altarrangements.asp">also allows time extensions</a> for test takers with disabilities.)</p>
<p>Somehow, it seems as though the Basic Skills Test doesn&#8217;t really do anything. It&#8217;s effectively &#8220;easier&#8221; than the ACT for most (all?) students who got into a college, so adding it as a requirement makes little sense. A &#8220;passing&#8221; Basic Skills Test is 240 out of a scaled 100-300 score, with lower minimum requirements on each section.  It&#8217;s unlikely to be scaled in the same way the ACT test is (which actually is scaled from 1-36 as far as I can tell, although few students score below an 11), but if it were, that would be equivalent to roughly a 24 on the ACT, assuming a quick Google calculation was correct. However, I would also say it&#8217;s easier to do well on the basic skills test, with the extra time and fewer types of questions, not to mention at least an extra year of knowledge.</p>
<p>Does anyone else see any value in this? I assume (but haven&#8217;t verified) that there are additional qualifications once one wants to actually get certified to teach (rather than simply to learn how to), so is there any reason for this requirement? I&#8217;m also not particularly happy that the website for such a supposedly impartial (and necessary) test is listed as &#8220;Copyright © 2009 Pearson Education, Inc. or its affiliate(s).&#8221;</p>
<p>Andy Schmitz</p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/11/14/the-illinois-basic-skills-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Notes: Time, USPS</title>
		<link>http://lardbucket.org/blog/archives/2009/11/13/notes-time-usps/</link>
		<comments>http://lardbucket.org/blog/archives/2009/11/13/notes-time-usps/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 22:30:29 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=199</guid>
		<description><![CDATA[Time
For some reason my computer&#8217;s clock got set a good 12 minutes ahead. I&#8217;m not exactly sure why, but it appears to have happened around a restart, perhaps due to a hardware clock that&#8217;s off, and the NTP daemon didn&#8217;t correct it. To manually reset the time based on a time server in Ubuntu, run
sudo [...]]]></description>
			<content:encoded><![CDATA[<h2>Time</h2>
<p>For some reason my computer&#8217;s clock got set a good 12 minutes ahead. I&#8217;m not exactly sure why, but it appears to have happened around a restart, perhaps due to a hardware clock that&#8217;s off, and the NTP daemon didn&#8217;t correct it. To manually reset the time based on a time server in Ubuntu, run</p>
<pre>sudo /etc/init.d/ntp stop
sudo ntpdate ntp.ubuntu.com
sudo /etc/init.d/ntp start</pre>
<p>If you don&#8217;t stop the NTP daemon first, you&#8217;ll get &#8220;ntpdate[<em>pid</em>]: the NTP socket is in use, exiting&#8221;. Notably, <a href="http://lists.debian.org/debian-user/2002/12/msg04091.html">don&#8217;t do this in a cron job</a>, as ntpd should be enough. (It&#8217;s not clear why ntpd didn&#8217;t resolve the issue in the first place, but I&#8217;m blaming that on some configuration bug.)</p>
<h2>BOINC and Time</h2>
<p>BOINC seems to have had a bit of a problem with the time shift. (It was normally set at 80% usage, and jumped to 100% with absurd remaining times.) That turns out to be pretty easy to fix:</p>
<pre>sudo /etc/init.d/boinc-client restart</pre>
<p>And it should be good to go. It may still have some strange estimates for time (it would likely be safer to stop boinc-client before updating the time and then start it afterward, if I realized that would be an issue), but that&#8217;ll be fixed after the current workunits complete.</p>
<h2>USPS Tracking</h2>
<p>If you have a label number for a USPS package you want to track, you can bookmark this URL (obviously, put your number at the end) or keep it open in a tab. It&#8217;s not the result of a form submission, so refreshing won&#8217;t prompt for a resubmit, and loading the page again won&#8217;t ask for the tracking number.</p>
<pre>http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=[Your tracking number]</pre>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/11/13/notes-time-usps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GraphSketch: 30,000 Graphs, and Parametric</title>
		<link>http://lardbucket.org/blog/archives/2009/10/03/graphsketch-parametric/</link>
		<comments>http://lardbucket.org/blog/archives/2009/10/03/graphsketch-parametric/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 15:41:15 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Ego]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=193</guid>
		<description><![CDATA[Yesterday, GraphSketch passed over 30,000 graphs rendered. That&#8217;s quite a few. Thanks to everyone for making it so popular.
It also seemed like a good time to release something I&#8217;ve been working on smoothing out for the past few weeks:
Yep, you can now graph parametric equations. Just head over to http://graphsketch.com/parametric (or click the &#8220;Parametric&#8221;mode just [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, <a title="GraphSketch" href="http://graphsketch.com">GraphSketch</a> passed over 30,000 graphs rendered. That&#8217;s quite a few. Thanks to everyone for making it so popular.</p>
<p>It also seemed like a good time to release something I&#8217;ve been working on smoothing out for the past few weeks:</p>
<p><img class="aligncenter size-full wp-image-192" title="GraphSketch Parametric" src="http://lardbucket.org/blog/wp-content/uploads/2009/10/graph_20091003_002500.png" alt="GraphSketch Parametric" width="300" height="300" />Yep, you can now graph parametric equations. Just head over to <a title="GraphSketch Parametric" href="http://graphsketch.com/parametric">http://graphsketch.com/parametric</a> (or click the &#8220;Parametric&#8221;mode just above the equations on the main GraphSketch page).</p>
<p>To keep things simple, you can only graph three parametric sets of equations at the same time. You can choose the range for t, and it defaults to a reasonable -10 to 10.</p>
<p>Also, while I was updating the website, I made the text a bit smaller (about the difference of going from a 12pt font to a 10pt font) and added a (hopefully unobtrusive) section pointing out the availability of posters, should anyone be interested. Polar graphing should come soon, hopefully, but it is somewhat possible using parametric equations by setting x=r*cos(t) and y=r*sin(t), too.</p>
<p>Andy Schmitz</p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/10/03/graphsketch-parametric/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Posters</title>
		<link>http://lardbucket.org/blog/archives/2009/10/02/posters/</link>
		<comments>http://lardbucket.org/blog/archives/2009/10/02/posters/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 05:29:14 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Ego]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=194</guid>
		<description><![CDATA[A number of you who know me in real life have probably seen a number of my posters. Three of them currently adorn my dorm room. I had been offering them to friends I knew, but not to everyone, because I hadn&#8217;t gotten around to it. But that has changed now, with posters.lardbucket.org.

The website itself [...]]]></description>
			<content:encoded><![CDATA[<p>A number of you who know me in real life have probably seen a number of my posters. Three of them currently adorn my dorm room. I had been offering them to friends I knew, but not to everyone, because I hadn&#8217;t gotten around to it. But that has changed now, with <a title="Lardbucket Posters" href="http://posters.lardbucket.org/">posters.lardbucket.org</a>.</p>
<p style="text-align: center;"><a href="http://posters.lardbucket.org/"><img class="aligncenter" title="Poster 001" src="http://posters.lardbucket.org/001/thumb.jpg" alt="" width="200" height="150" /></a></p>
<p>The website itself is (purposely) a bit sparse, but it will let you browse the four existing posters, and grab one for yourself from <a title="Zazzle" href="http://www.zazzle.com/?rf=238118109842721973">Zazzle</a> at fairly reasonable prices. (I really only make a few dollars from each one, depending on size.) Other than taking a while to ship, Zazzle&#8217;s processing has been fairly good, and the three large prints I have from them are reasonably high quality, even on their &#8220;basic poster&#8221; paper.</p>
<p>Each of the posters on <a title="posters.lardbucket.org" href="http://posters.lardbucket.org/">posters.lardbucket.org</a> was created by me, using a reasonably high-powered computer to do the rendering. Each of the posters is a mathematically-defined rendering, and could theoretically be rendered at any size and not lose any detail. Therefore, the large posters are still high quality images.</p>
<p>So, if you&#8217;d like to get a neat-looking poster and send a few dollars my way at the same time, have a look at <a title="posters.lardbucket.org" href="http://posters.lardbucket.org/">posters.lardbucket.org</a>.</p>
<p>Thanks,<br />
Andy Schmitz</p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/10/02/posters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PvPGN for a Private LAN</title>
		<link>http://lardbucket.org/blog/archives/2009/07/07/pvpgn-for-a-private-lan/</link>
		<comments>http://lardbucket.org/blog/archives/2009/07/07/pvpgn-for-a-private-lan/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 04:43:48 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=189</guid>
		<description><![CDATA[A few notes on setting up PvPGN (the continuation of bnetd) for a private LAN. (The reason I&#8217;m setting it up is that I don&#8217;t expect to have an Internet connection for connecting to Battle.net proper, and would like to have the capabilities it provides, especially ladder games.) This post is generally much more technical [...]]]></description>
			<content:encoded><![CDATA[<p>A few notes on setting up <a href="http://pvpgn.berlios.de/">PvPGN</a> (the continuation of bnetd) for a private LAN. (The reason I&#8217;m setting it up is that I don&#8217;t expect to have an Internet connection for connecting to Battle.net proper, and would like to have the capabilities it provides, especially ladder games.) This post is generally much more technical than most of my previous posts, so you may want to skip it if you&#8217;re not really sure what&#8217;s going on. You won&#8217;t miss much.</p>
<p>So, my setup involves a router with <a href="http://dd-wrt.com/">DD-WRT</a>, and an <a href="http://laptop.org/en/laptop/index.shtml">OLPC XO</a>. The XO is set up using <a href="http://www.olpcnews.com/forum/index.php?topic=4053.0">Ubuntu Intrepid on an SD card</a>.</p>
<p><span id="more-189"></span>XO: Installed packages &#8220;build-essential&#8221;, &#8220;libz-dev&#8221;, and &#8220;cmake&#8221;. Grabbed the latest development snapshot of PvPGN (1.99 r521), and compiled it using cmake, make, sudo make install. Configuration gets installed in /usr/local/etc, other files in /usr/local/var. The PvPGN support files (also available from their download website) need to be extracted into /usr/local/var/files. Also from /usr/local/var/files, use bnftp to grab the relevant update files for the latest version. Edit /usr/local/etc/bnetd.conf to satisfaction. I also ran &#8220;chmod -R a+w /usr/local/var&#8221; and &#8220;chmod -R a+w /usr/local/etc&#8221;, though it&#8217;s likely that only the former is necessary, and not even that if you tune users properly. This was more of a quick hack than something I&#8217;d use for a long-term server. I grabbed the newest <a href="http://cvs.berlios.de/cgi-bin/viewcvs.cgi/pvpgn/pvpgn/conf/autoupdate.conf?view=co">autoupdate.conf</a> and <a href="http://cvs.berlios.de/cgi-bin/viewcvs.cgi/pvpgn/pvpgn/conf/versioncheck.conf?view=co">versioncheck.conf</a> files from the PvPGN CVS server, and uncommented the links to the files I&#8217;d downloaded in autoupdate.conf. I also found that for the StarCraft entries, I needed to create one without the version number extension, to allow earlier versions of StarCraft to update (for some reason, it wasn&#8217;t being caught by versioncheck.conf, even after I uncommented the right sections). That meant adding a line like &#8220;IX86    STAR    STAR        STAR_IX86_1xx_1161.mpq&#8221; to autoupdate.conf. Watch out for duplicate instructions for the same version but different updates though, I&#8217;m not sure what that could do. (This last portion was only useful because I am redirecting the pre-patch battle.net server to PvPGN, and wouldn&#8217;t help most people.)</p>
<p>Router: Set up fairly trivial wireless encryption, mainly to make it clear that the AP isn&#8217;t useful to most people. Added a static lease to dhcpd under DD-WRT&#8217;s Services menu, giving the XO a fixed IP address outside the standard DHCP address range (by MAC address). Enabled dnsmasq to let me redirect battle.net domains, adding the lines &#8220;address=/europe.battle.net/192.168.1.50&#8243; and &#8220;address=/exodus.battle.net/192.168.1.50&#8243; to the dnsmasq configuration options, redirecting the Europe Battle.net server to my XO, as well as pointing the default pre-patching server (for StarCraft, anyway) to the same location. (The other battle.net subdomains are uswest, useast, and asia.) For some reason, &#8220;Apply Settings&#8221; didn&#8217;t work for me, but &#8220;Reboot Router&#8221; after applying the settings did work.</p>
<p>Clients: Nothing here was necessary, but I did perform a few tests. Things worked almost immediately. Automatic updates worked fine, even from unpatched installs (of StarCraft 1.05), after adding the lines above to autoupdate.conf.</p>
<p>So, it should work reasonably well. I don&#8217;t feel bad about redirecting the battle.net domains, because nobody would be using the router without knowing that was the case. It&#8217;s also not really allowing illegal copies of the games, because I can make sure there&#8217;s a legitimate copy of the game for everyone connecting to the router when I give out the encryption keys. Overall, it should work out reasonably well. The one thing I&#8217;m not thrilled about is the fact that the Marvell Wi-Fi  drivers on the XO don&#8217;t seem to support Master (AP) mode. If that were the case, I could have the PvPGN server and router on one laptop, and not even need power at all, but unfortunately, that doesn&#8217;t seem like it will work at the moment.</p>
<p>Andy</p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/07/07/pvpgn-for-a-private-lan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GraphSketch: Ten Thousand</title>
		<link>http://lardbucket.org/blog/archives/2009/05/12/graphsketch-ten-thousand/</link>
		<comments>http://lardbucket.org/blog/archives/2009/05/12/graphsketch-ten-thousand/#comments</comments>
		<pubDate>Tue, 12 May 2009 20:24:34 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Ego]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[graphsketch]]></category>
		<category><![CDATA[milestone]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=185</guid>
		<description><![CDATA[In under three weeks since it was launched, GraphSketch has now been used to create (over) 10,000 graphs. It also has had over 3,500 visitors, coming from every continent except Antarctica, though many visitors haven&#8217;t graphed anything (and many visitors have graphed far more than average). Work on new features (parametric and polar graphing, among [...]]]></description>
			<content:encoded><![CDATA[<p>In under three weeks since it was launched, <a href="http://graphsketch.com/">GraphSketch</a> has now been used to create (over) 10,000 graphs. It also has had over 3,500 visitors, coming from every continent except Antarctica, though many visitors haven&#8217;t graphed anything (and many visitors have graphed far more than average). Work on new features (parametric and polar graphing, among others) will likely resume after school is over, as I still have three finals remaining, and am now off to continue studying for a math final.</p>
<p>At any rate, thanks to everyone who has promoted <a href="http://graphsketch.com/">GraphSketch</a> in one place or another for making it so successful.</p>
<p>Andy Schmitz</p>
<p>P.S. If you have any suggestions for <a href="http://graphsketch.com/">GraphSketch</a> itself, <a href="http://lardbucket.org/blog/archives/2009/03/24/graphsketch/">the original post on it</a> is still probably the best place to leave them, as I&#8217;ll check back there for ideas when I&#8217;m working on it. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/05/12/graphsketch-ten-thousand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GraphSketch</title>
		<link>http://lardbucket.org/blog/archives/2009/03/24/graphsketch/</link>
		<comments>http://lardbucket.org/blog/archives/2009/03/24/graphsketch/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 00:48:47 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://lardbucket.org/blog/?p=181</guid>
		<description><![CDATA[So, I spent the last few days working on GraphSketch, a new, free, online grapher. It&#8217;s available at http://graphsketch.com/ . Go check it out for a minute. Try graphing something like &#8220;(x-3)(x+10)(x-14)/100&#8221; or &#8220;tan(pi*x/10)&#8220;. I&#8217;ll wait.

Done? That&#8217;s pretty much it: Enter an equation, choose some settings, and graph it. There are a number of functions [...]]]></description>
			<content:encoded><![CDATA[<p>So, I spent the last few days working on <a href="http://graphsketch.com/">GraphSketch</a>, a new, free, online grapher. It&#8217;s available at <a href="http://graphsketch.com/">http://graphsketch.com/</a> . Go check it out for a minute. Try graphing something like &#8220;<a href="http://graphsketch.com/(x-3)(x%2B10)(x-14)/100">(x-3)(x+10)(x-14)/100</a>&#8221; or &#8220;<a href="http://graphsketch.com/tan%28pi*x/10%29">tan(pi*x/10)</a>&#8220;. I&#8217;ll wait.</p>
<p><img class="aligncenter size-full wp-image-182" title="(x-3)(x+10)(x-14)/100" src="http://lardbucket.org/blog/wp-content/uploads/2009/03/graph_20090324_185126.png" alt="(x-3)(x+10)(x-14)/100" width="850" height="525" /></p>
<p>Done? That&#8217;s pretty much it: Enter an equation, choose some settings, and graph it. There are a number of functions you can use to plot, you can save the graphs to use later (in documents, worksheets, etc.), you can create a permanent link to them to share with others, and a few other nice little things (like getting a quick graph by going to an address like <a href="http://graphsketch.com/sqrt(x)">http://graphsketch.com/sqrt(x)</a> ). Details on how below.</p>
<p><span id="more-181"></span><a href="http://graphsketch.com">GraphSketch</a> is mostly written in <a title="PHP" href="http://php.net">PHP</a>, with the actual graphing done in <a href="http://gnuplot.info">gnuplot</a>. Some manipulation is done in PHP before things are passed to gnuplot to account for odd roots, implicit multiplication, and so forth. In gnuplot, I&#8217;m using the pngcairo terminal, implemented in the not-yet-released gnuplot 4.3 CVS code (it&#8217;s public but not a &#8220;stable&#8221; release), to get <a href="http://en.wikipedia.org/wiki/Anti-aliasing">anti-aliased</a> graphs, because aliased graphs (especially with low graph widths) tend to look relatively poor.</p>
<p>Programming and debugging for the first version took just a few days, which was relatively quick compared to other such applications I&#8217;ve made. The main interface is almost entirely one PHP file along with some JavaScript that uses <a href="http://prototypejs.org">prototype</a> and <a href="http://script.aculo.us">script.aculo.us</a> to make things work smoothly. Automatically preloaded graphs like the link above are handled through a relatively simple mod_rewrite rule. Naming and the domain name were debated among a few people and decided upon in under an hour, which was also pretty quick.</p>
<p>So, if you have any questions, comments, or suggestions about <a href="http://graphsketch.com">GraphSketch</a>, feel free to leave a comment below or email me at andy.schmitz at gmail.com.</p>
<p>Thanks,<br />
Andy Schmitz</p>
<p><strong>Update 05/12</strong>: GraphSketch now has delivered <a href="http://lardbucket.org/blog/archives/2009/05/12/graphsketch-ten-thousand/">over 10,000 graphs</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lardbucket.org/blog/archives/2009/03/24/graphsketch/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>
