<?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>ANDREW PENG &#187; Notes</title>
	<atom:link href="http://andrewpeng.net/posts/category/notes/feed" rel="self" type="application/rss+xml" />
	<link>http://andrewpeng.net</link>
	<description>I live to eat</description>
	<lastBuildDate>Mon, 19 Jul 2010 11:14:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Minidlna and custom upnp icons</title>
		<link>http://andrewpeng.net/posts/2010/03/19536-536.html</link>
		<comments>http://andrewpeng.net/posts/2010/03/19536-536.html#comments</comments>
		<pubDate>Fri, 19 Mar 2010 22:22:43 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=536</guid>
		<description><![CDATA[After a few hours of digging into hex and binary conversion tools, I have completed my task. If you download and compile Minidlna on a Linux box, it will show a Tux penguin for it&#8217;s upnp icon (for instance, if you were browsing over the network on the PS3). Since my Minidlna server is PowerMac [...]]]></description>
			<content:encoded><![CDATA[<p>After a few hours of digging into hex and binary conversion tools, I have completed my task. If you download and compile <a href="http://minidlna.sourceforge.net/" target="_blank">Minidlna</a> on a Linux box, it will show a <a href="http://images.google.com/images?hl=en&amp;gbv=2&amp;tbs=isch:1&amp;sa=1&amp;q=Tux+&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=&amp;gs_rfai=&amp;start=0" target="_blank">Tux penguin</a> for it&#8217;s upnp icon (for instance, if you were browsing over the network on the PS3). Since my Minidlna server is <a href="http://lowendmac.com/ppc/sawtooth-power-mac-g4-agp.html" target="_blank"> PowerMac G4</a> running <a href="http://www.debian.org/" target="_blank">Debian</a>, I converted a few PNG images of the Apple logo into it&#8217;s hexadecimal equivalent, changed the source file <em>icons.c</em>, and recompiled it. Done! Click <a href="http://www.andrewpeng.net/downloads/icons_apple.zip" target="_blank">here</a> to get the updated <em>icons.c</em> file.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2010/03/19536-536.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing miniDLNA on Ubuntu PowerPC</title>
		<link>http://andrewpeng.net/posts/2010/03/04522-installing-minidlna-on-ubuntu-powerpc.html</link>
		<comments>http://andrewpeng.net/posts/2010/03/04522-installing-minidlna-on-ubuntu-powerpc.html#comments</comments>
		<pubDate>Thu, 04 Mar 2010 08:00:32 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[compootin']]></category>
		<category><![CDATA[Linu]]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=522</guid>
		<description><![CDATA[I don&#8217;t think I&#8217;ve seen anyone maintaining packages for the excellent MiniDLNA media server for Debian or Ubuntu. The instructions provided here should work for both Intel and PPC builds (maybe others?) of Ubuntu and Debian Linux. Run this command to get the pre-req packages needed to build MiniDLNA: sudo apt-get install libexif-dev libjpeg62-dev libid3tag0-dev [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t think I&#8217;ve seen anyone maintaining packages for the excellent <a href="http://minidlna.sourceforge.net/" target="_blank">MiniDLNA </a>media server for <a href="http://www.debian.org" target="_blank">Debian</a> or <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>. The instructions provided here should work for both Intel and PPC builds (maybe others?) of Ubuntu and Debian Linux.</p>
<ol>
<li>Run this command to get the pre-req packages needed to build MiniDLNA:
<ul>
<li>sudo apt-get install libexif-dev libjpeg62-dev libid3tag0-dev libflac-dev libvorbis-dev libsqlite3-dev libavformat-dev cvs make</li>
</ul>
</li>
<li>Log in and check out (download) the source code for MiniDLNA from SourceForge:
<ul>
<li>cvs -z3 -d:pserver:anonymous@minidlna.cvs.sourceforge.net:/cvsroot/minidlna co -P minidlna</li>
</ul>
</li>
<li>Change into the directory and build, then install it!
<ul>
<li>make</li>
<li>sudo make install</li>
</ul>
</li>
<li>That&#8217;s it!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2010/03/04522-installing-minidlna-on-ubuntu-powerpc.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Boston via cameraphone &#8211; Friday Feb. 26</title>
		<link>http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html</link>
		<comments>http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html#comments</comments>
		<pubDate>Sat, 27 Feb 2010 04:23:47 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Pictures]]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=424</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/10' title='10'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/10-150x150.jpg" class="attachment-thumbnail" alt="10" title="10" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/11' title='11'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/11-150x150.jpg" class="attachment-thumbnail" alt="11" title="11" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/12' title='12'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/12-150x150.jpg" class="attachment-thumbnail" alt="12" title="12" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/13' title='13'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/13-150x150.jpg" class="attachment-thumbnail" alt="13" title="13" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/14' title='14'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/14-150x150.jpg" class="attachment-thumbnail" alt="14" title="14" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/15' title='15'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/15-150x150.jpg" class="attachment-thumbnail" alt="15" title="15" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/16' title='16'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/16-150x150.jpg" class="attachment-thumbnail" alt="16" title="16" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/17' title='17'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/17-150x150.jpg" class="attachment-thumbnail" alt="17" title="17" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/18' title='18'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/18-150x150.jpg" class="attachment-thumbnail" alt="18" title="18" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/19' title='19'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/19-150x150.jpg" class="attachment-thumbnail" alt="19" title="19" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/20' title='20'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/20-150x150.jpg" class="attachment-thumbnail" alt="20" title="20" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/21' title='21'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/21-150x150.jpg" class="attachment-thumbnail" alt="21" title="21" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/22' title='22'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/22-150x150.jpg" class="attachment-thumbnail" alt="22" title="22" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/23' title='23'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/23-150x150.jpg" class="attachment-thumbnail" alt="23" title="23" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/24' title='24'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/24-150x150.jpg" class="attachment-thumbnail" alt="24" title="24" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/25' title='25'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/25-150x150.jpg" class="attachment-thumbnail" alt="25" title="25" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/26' title='26'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/26-150x150.jpg" class="attachment-thumbnail" alt="26" title="26" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/27' title='27'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/27-150x150.jpg" class="attachment-thumbnail" alt="27" title="27" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/28' title='28'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/28-150x150.jpg" class="attachment-thumbnail" alt="28" title="28" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/attachment/29' title='29'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/29-150x150.jpg" class="attachment-thumbnail" alt="29" title="29" /></a>

]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2010/02/26424-boston-via-cameraphone-friday-feb-26.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boston via cameraphone &#8211; Thursday Feb. 25</title>
		<link>http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html</link>
		<comments>http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html#comments</comments>
		<pubDate>Sat, 27 Feb 2010 04:20:22 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Pictures]]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=414</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/01' title='01'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/01-150x150.jpg" class="attachment-thumbnail" alt="01" title="01" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/02' title='02'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/02-150x150.jpg" class="attachment-thumbnail" alt="02" title="02" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/03' title='03'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/03-150x150.jpg" class="attachment-thumbnail" alt="03" title="03" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/04' title='04'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/04-150x150.jpg" class="attachment-thumbnail" alt="04" title="04" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/05' title='05'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/05-150x150.jpg" class="attachment-thumbnail" alt="05" title="05" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/06' title='06'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/06-150x150.jpg" class="attachment-thumbnail" alt="06" title="06" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/07' title='07'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/07-150x150.jpg" class="attachment-thumbnail" alt="07" title="07" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/08' title='08'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/08-150x150.jpg" class="attachment-thumbnail" alt="08" title="08" /></a>
<a href='http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/attachment/09' title='09'><img width="150" height="150" src="http://andrewpeng.net/wp-content/uploads/2010/02/09-150x150.jpg" class="attachment-thumbnail" alt="09" title="09" /></a>

]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2010/02/26414-boston-via-cameraphone-thursday-feb-25.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERAU Nukes My E-Mail Account, Says &#8220;Too Bad&#8221;</title>
		<link>http://andrewpeng.net/posts/2009/07/01313-erau-nukes-my-e-mail-account-says-too-bad.html</link>
		<comments>http://andrewpeng.net/posts/2009/07/01313-erau-nukes-my-e-mail-account-says-too-bad.html#comments</comments>
		<pubDate>Thu, 02 Jul 2009 07:35:47 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Wait]]></category>
		<category><![CDATA[what?]]></category>
		<category><![CDATA[compootin']]></category>
		<category><![CDATA[tinfoil hat]]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=313</guid>
		<description><![CDATA[4 years, over 100 grand, and endless repetition &#8220;you must use your e-mail account&#8221;, then after graduating and 6 months later, they delete it. I was too busy in the midst of relocating my life halfway across the country, never mind accepting a new job the education helped to provide, and now my account was [...]]]></description>
			<content:encoded><![CDATA[<p>4 years, over 100 grand, and endless repetition &#8220;you must use your e-mail account&#8221;, then after graduating and 6  months later, they delete it. I was too busy in the midst of relocating my life halfway across the country, never mind accepting a new job the education helped to provide, and now my account was nuked.</p>
<p>I called up their tech support line, hoping to get it reactivated for just a week or two, so I can move services that were associated with that account over to a new email account, but it&#8217;s a no-can-do. They&#8217;ve killed it for good and were unwilling to re-activate it. I even offered to pay, since working at the school I also know that the services their email servers provide aren&#8217;t free. Come on guys, I just need it turned on for a week.</p>
<p>Honestly I was hoping they would treat their alumni better, but they still don&#8217;t mind calling every now and then to ask for money. To make it worse, I can&#8217;t sign up on their alumni website either.</p>
<p>What a bunch of jerks. FYI any recent graduates, your account expires in 180 days.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2009/07/01313-erau-nukes-my-e-mail-account-says-too-bad.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FaceBook &#8211; Set Your Username!</title>
		<link>http://andrewpeng.net/posts/2009/06/12295-facebook-set-your-username.html</link>
		<comments>http://andrewpeng.net/posts/2009/06/12295-facebook-set-your-username.html#comments</comments>
		<pubDate>Sat, 13 Jun 2009 07:39:48 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[compootin']]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=295</guid>
		<description><![CDATA[If you haven&#8217;t already, head on over to FaceBook and set your username, so you can get (ugh) MySpace style pages &#8211; for example my FaceBook page is now http://www.thefacebook.com/andrewpeng Also, apparently since I am old school, I keep logging in to http://erau.thefacebook.com. Yep.]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t already, head on over to FaceBook and set your username, so you can get (ugh) MySpace style pages &#8211; for example my FaceBook page is now <a href="http://www.thefacebook.com/andrewpeng" target="_blank">http://www.thefacebook.com/andrewpeng</a></p>
<p>Also, apparently since I am old school, I keep logging in to <a href="http://erau.thefacebook.com" target="_blank">http://erau.thefacebook.com</a>.</p>
<p>Yep.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2009/06/12295-facebook-set-your-username.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SERO 500 + Palm Pre, part II</title>
		<link>http://andrewpeng.net/posts/2009/05/26285-sero-500-palm-pre-part-ii.html</link>
		<comments>http://andrewpeng.net/posts/2009/05/26285-sero-500-palm-pre-part-ii.html#comments</comments>
		<pubDate>Wed, 27 May 2009 02:55:30 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[electronicals]]></category>
		<category><![CDATA[palm pre]]></category>
		<category><![CDATA[tinfoil hat]]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=285</guid>
		<description><![CDATA[In my previous post, I discussed somehow squirreling a Palm Pre onto my excellent SERO 500 plan. As promised, I went to a local Sprint store and asked one of their sales agents if I could activate a non-contractual Palm Pre (purchased at the full retail price) on the SERO 500 plan. The agent was [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://andrewpeng.net/posts/2009/05/25283-sero-500-palm-pre.html" target="_blank">my previous post</a>, I discussed somehow squirreling a Palm Pre onto my excellent SERO 500 plan.</p>
<p>As promised, I went to a local Sprint store and asked one of their sales agents if I could activate a non-contractual Palm Pre (purchased at the full retail price) on the SERO 500 plan. The agent was very understanding, and agreed that they were all instructed to NOT activate any Palm Pre&#8217;s unless the plan has the word &#8220;Everything&#8221; in it. He also said that while Sprint stores would be well stocked, Best Buy locations would be getting around a max of 5 per store. He then told me that if I did want to get a Palm Pre activated on SERO I should buy one at Best Buy at the non-contract price and attempt to activate it online.  </p>
<p>Apparently he doesn&#8217;t know if there are any specific checks in their system to disallow activating the Palm Pre yourself, but it would most likely not work and ask you to call customer service. What he said next suprised me: apparently there are around 35000 customer service reps in call centers &#8211; he suggested that not all of them know the policy or care about the policy and I would have a very good chance of getting it activated that way.</p>
<p>To add some relief &#8211; he then told me that the Palm Pre should be available for employee-referral type plans after 60 days from launch, much like the Instinct was. Happy Pre-hunting!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2009/05/26285-sero-500-palm-pre-part-ii.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent spoofing sessions with public-key encryption</title>
		<link>http://andrewpeng.net/posts/2009/05/16280-prevent-spoofing-sessions-with-public-key-encryption.html</link>
		<comments>http://andrewpeng.net/posts/2009/05/16280-prevent-spoofing-sessions-with-public-key-encryption.html#comments</comments>
		<pubDate>Sun, 17 May 2009 06:57:12 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[compootin']]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=280</guid>
		<description><![CDATA[More updates working on implementing a mod_rewrite\Apache implementation of mod_secdownload &#8211; just finished coding in a public key encryption verification for the script, basically the same method as implemented in mod_secdownload. Whew, I&#8217;m pooped, goin&#8217; to sleep.]]></description>
			<content:encoded><![CDATA[<p>More updates working on implementing a mod_rewrite\Apache implementation of mod_secdownload &#8211; just finished coding in a <a href="http://en.wikipedia.org/wiki/Public-key_cryptography" target="_blank">public key encryption</a> verification for the script, basically the same method as implemented in mod_secdownload. Whew, I&#8217;m pooped, goin&#8217; to sleep.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2009/05/16280-prevent-spoofing-sessions-with-public-key-encryption.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure, fast, low-resource file delivery</title>
		<link>http://andrewpeng.net/posts/2009/05/16278-secure-fast-low-resource-file-delivery.html</link>
		<comments>http://andrewpeng.net/posts/2009/05/16278-secure-fast-low-resource-file-delivery.html#comments</comments>
		<pubDate>Sun, 17 May 2009 02:13:05 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[compootin']]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=278</guid>
		<description><![CDATA[Here&#8217;s the problem. I have a handful of files between 500MB-800MB that I need to host up on my website. I need to get these files to people that belong to a certain vBulletin community, and only people of that vBulletin community. Furthermore, the people of that community aren&#8217;t the sharpest knives in the drawer, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the problem. I have a handful of files between 500MB-800MB that I need to host up on my website. I need to get these files to people that belong to a certain <a href="http://www.vbulletin.com/" target="_blank">vBulletin</a> community, and only people of that <a href="http://www.vbulletin.com/" target="_blank">vBulletin</a> community. Furthermore, the people of that community aren&#8217;t the sharpest knives in the drawer, so it has to be easy. I have limited resources, which include a <a href="http://www.dreamhost.com" target="_blank">shared LAMP webserver</a>, and a <a href="http://www.dreamhost.com/hosting-vps.html" target="_blank">150/150 VPS</a>.</p>
<p>The requirements? Just a few:</p>
<ul>
<li>Must be able to track users to sessions to monitor and log abuse</li>
<li>Links generated should be anti-leech and secured with one-time use tokens</li>
<li>Links generated can only be accessible from this <a href="http://www.vbulletin.com/" target="_blank">vBulletin</a> community</li>
<li>Links must be easy to use</li>
</ul>
<p>The limitations? It&#8217;s like being handcuffed to a telephone pole:</p>
<ul>
<li>Hosting is done on <a href="http://www.dreamhost.com" target="_blank">shared hosting</a> (no <a href="http://us2.php.net/readfile" target="_blank">persistant readfile() sessions</a> in PHP or other ugly CPU intensive scipting)</li>
<li>Hosting can also be done on <a href="http://www.dreamhost.com/hosting-vps.html" target="_blank">150/150 VPS</a>. I&#8217;ve used <a href="http://www.lighttpd.net/" target="_blank">lighttpd</a>, but it chokes on sending files that are bigger than my RAM capacity</li>
</ul>
<p>Things I&#8217;ve tried, and failed to work:</p>
<ul>
<li>Doing the classic <a href="http://us2.php.net/readfile" target="_blank">PHP readfile() and writing to the buffer</a>
<ul>
<li>Far too slow</li>
<li>Persistant PHP session isn&#8217;t nice to shared hosting</li>
<li><a href="http://us2.php.net/readfile" target="_blank">readfile()</a> in <a href="http://www.lighttpd.net/" target="_blank">lighttpd</a> and <a href="http://httpd.apache.org/" target="_blank">Apache</a> cause the process to consume massive amounts of memory for large files, doesn&#8217;t work in VPS</li>
<li>More than 5 users or so and the load spikes to high heaven. <a href="http://www.acadweb.wwu.edu/dbrunner/P7040177.JPG" target="_blank">Server /suicides</a></li>
</ul>
</li>
<li>Using <a href="http://www.lighttpd.net/" target="_blank">lighttpd</a> and <a href="http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSecDownload" target="_blank">mod_secdownload</a>
<ul>
<li>Far faster than PHP <a href="http://us2.php.net/readfile" target="_blank">readfile()</a></li>
<li>Will only work on VPS as shared hosting is <a href="http://httpd.apache.org/" target="_blank">Apache</a> only</li>
<li>If you don&#8217;t have enough RAM (which I don&#8217;t on the VPS) &#8211; the process with explode and hang. I can&#8217;t kill it, and the server refuses connections until the watchdog resets the process or until I reboot the VPS. <a href="http://www.acadweb.wwu.edu/dbrunner/P7040177.JPG" target="_blank">Server /suicides again</a>.</li>
</ul>
</li>
<li>Using <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html" target="_blank">mod_rewrite</a> in conjunction with <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemap" target="_blank">rewritemap and prg</a> in <a href="http://httpd.apache.org/" target="_blank">Apache</a>
<ul>
<li>Sounds perfect &#8211; you can create tokens, and then revoke them with the <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemap" target="_blank">rewritemap</a> program, then use <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> to hide path source!</li>
<li>&#8230;Until you realize that you need to modify your apache.conf to specify the <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritemap" target="_blank">rewritemap</a> program (requires root or sudo, not happening on either VPS or shared)</li>
<li>Your rewrite program is executed on server start, and is persistent &#8211; which is not allowed on shared hosting anyways. I /suicide</li>
</ul>
</li>
<li><a href="http://httpd.apache.org/" target="_blank">Apache</a> with <a href="http://tn123.ath.cx/mod_xsendfile/" target="_blank">mod_xsendfile</a>
<ul>
<li>Can&#8217;t install custom modules on <a href="http://httpd.apache.org/" target="_blank">Apache</a> in shared or VPS hosting</li>
<li><a href="http://httpd.apache.org/" target="_blank">Apache</a> is still a fat hog of a server, and using <a href="http://httpd.apache.org/" target="_blank">Apache</a> to send binary files is about as efficient as using Humvees for mass transit.</li>
</ul>
</li>
<li>Dynamic <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html" target="_blank">mod_rewrite</a> definitions in <a href="http://httpd.apache.org/docs/1.3/howto/htaccess.html" target="_blank">.htaccess</a> files
<ul>
<li>Use a manual lockfile with a SQL database to dynamically generate <a href="http://httpd.apache.org/docs/1.3/howto/htaccess.html" target="_blank">.htaccess</a> <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html" target="_blank">mod_rewrite</a> definitions</li>
<li>Each rewrite entry for a unique URL a time limit</li>
<li>Each successful request for token updates both the database and the .htaccess file</li>
<li>This seems like the best solution &#8211; it will work with the most hosting environments too</li>
<li>This behavior is basically <strong>emulating <a href="http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModSecDownload" target="_blank">mod_secdownload</a> for <a href="http://www.lighttpd.net/" target="_blank">lighttpd</a> in <a href="http://httpd.apache.org/" target="_blank">Apache</a> with <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html" target="_blank">mod_rewrite</a></strong></li>
</ul>
</li>
</ul>
<p>The last entry (emulating <a href="http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModSecDownload" target="_blank">mod_secdownload</a> in <a href="http://httpd.apache.org/" target="_blank">Apache</a> with <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html" target="_blank">mod_rewrite</a>) looks good, and is probably going to be what I&#8217;m going to use &#8211; I&#8217;ll be posting the results here as soon as I finish coding it. Weeeee!</p>
<blockquote>
<ul></ul>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2009/05/16278-secure-fast-low-resource-file-delivery.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fears of swine flu worse than swine flu itself</title>
		<link>http://andrewpeng.net/posts/2009/05/07261-fears-of-swine-flu-worse-than-swine-flu-itself.html</link>
		<comments>http://andrewpeng.net/posts/2009/05/07261-fears-of-swine-flu-worse-than-swine-flu-itself.html#comments</comments>
		<pubDate>Thu, 07 May 2009 21:18:09 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[h1n1]]></category>
		<category><![CDATA[swine flu]]></category>
		<category><![CDATA[tinfoil hat]]></category>

		<guid isPermaLink="false">http://andrewpeng.net/?p=261</guid>
		<description><![CDATA[Why is everyone absolutely going nuts. Each day, 2700 people die of malaria, but it doesn&#8217;t make national news. To date, less than 30 people have died of swine flu, oh, sorry, H1N1, and out of that 30  or so, only one has died in the US, and it wasn&#8217;t a US citizen to begin [...]]]></description>
			<content:encoded><![CDATA[<p>Why is everyone absolutely going nuts. Each day, 2700 people die of malaria, but it doesn&#8217;t make national news. To date, less than 30 people have died of swine flu, oh, sorry, H1N1, and out of that 30  or so, only one has died in the US, and it wasn&#8217;t a US citizen to begin with. It was an infant that came from Mexico.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewpeng.net/posts/2009/05/07261-fears-of-swine-flu-worse-than-swine-flu-itself.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
