<?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>mark shroyer, dot com</title>
	<atom:link href="http://markshroyer.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://markshroyer.com</link>
	<description>this is where I keep my things</description>
	<lastBuildDate>Mon, 14 Nov 2011 11:12:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Pointfree style in Python</title>
		<link>http://markshroyer.com/2011/11/pointfree-style-in-python/</link>
		<comments>http://markshroyer.com/2011/11/pointfree-style-in-python/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 11:12:12 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=1071</guid>
		<description><![CDATA[I&#8217;ve been getting back into Python lately&#8230; I just wrote a small module that provides support for pointfree style programming with a combination of automatic partial function/method application and operator overloading for function composition: See the overview for a lengthier &#8230; <a href="http://markshroyer.com/2011/11/pointfree-style-in-python/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been getting back into Python lately&#8230; I just wrote a small module that provides support for <a href="http://www.haskell.org/haskellwiki/Pointfree">pointfree style</a> programming with a combination of automatic partial function/method application and operator overloading for function composition:</p>
<pre class="brush: python; title: ; notranslate">
&gt;&gt;&gt; from pointfree import *
&gt;&gt;&gt; from operator import add

&gt;&gt;&gt; fn = pfmap(len) \
         &gt;&gt; pfmap(lambda n: n**2) \
         &gt;&gt; pfreduce(add, initial=0)

&gt;&gt;&gt; fn([&quot;foo&quot;, &quot;barr&quot;, &quot;bazzz&quot;])
50
</pre>
<p>See <a href="http://markshroyer.com/docs/pointfree/latest/overview.html">the overview</a> for a lengthier introduction. You can install the pointfree module from the Python Package Index:</p>
<pre class="code">$ pip install pointfree</pre>
<p>Links:</p>
<ul>
<li><a href="http://markshroyer.com/docs/pointfree/latest/">Module documentation</a></li>
<li><a href="https://github.com/markshroyer/pointfree/">Github project page</a></li>
<li><a href="https://pypi.python.org/pypi/pointfree/">Python Package Index page</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2011/11/pointfree-style-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Martin Kleppmann: Accounting for Computer Scientists</title>
		<link>http://markshroyer.com/2011/03/accounting-compsci/</link>
		<comments>http://markshroyer.com/2011/03/accounting-compsci/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 03:43:01 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=1055</guid>
		<description><![CDATA[I just found a great blog post by Martin Kleppmann titled Accounting for Computer Scientists, a succinct introduction to double-entry accounting (although he doesn&#8217;t refer to it as such) in terms of basic graph theory: Eventually I figured it out: &#8230; <a href="http://markshroyer.com/2011/03/accounting-compsci/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just found a great blog post by Martin Kleppmann titled <a href="http://martin.kleppmann.com/2011/03/07/accounting-for-computer-scientists.html">Accounting for Computer Scientists</a>, a succinct introduction to double-entry accounting (although he doesn&#8217;t refer to it as such) in terms of basic graph theory:</p>
<blockquote><p>Eventually I figured it out: basic accounting is just graph theory. The traditional ways of representing financial information hide that structure astonishingly well, but once I had figured out that it was just a graph, it suddenly all made sense.</p></blockquote>
<p>He goes on to illustrate how a profit-and-loss statement and a balance sheet can be visualized on a simple DAG.  Good stuff&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2011/03/accounting-compsci/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenBSD Router Guide</title>
		<link>http://markshroyer.com/2011/02/openbsd-router-guide/</link>
		<comments>http://markshroyer.com/2011/02/openbsd-router-guide/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 05:22:03 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=1041</guid>
		<description><![CDATA[I&#8217;ve been using OpenBSD as a NAT router for a few years now. Here&#8217;s a guide showing how I got it up and running, in case anyone is interested in doing the same.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using OpenBSD as a NAT router for a few years now. <a href="http://markshroyer.com/guides/router/">Here&#8217;s a guide</a> showing how I got it up and running, in case anyone is interested in doing the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2011/02/openbsd-router-guide/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Updating your music collection with PowerShell</title>
		<link>http://markshroyer.com/2011/01/updating-music-with-powershell/</link>
		<comments>http://markshroyer.com/2011/01/updating-music-with-powershell/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 23:28:40 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=932</guid>
		<description><![CDATA[I&#8217;ve been banging my head against the wall on account of different music players which can&#8217;t play the subset of songs I have encoded as either Vorbis or AAC. So I&#8217;m slowly converting my entire music library over to MP3, &#8230; <a href="http://markshroyer.com/2011/01/updating-music-with-powershell/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been banging my head against the wall on account of different music players which can&#8217;t play the subset of songs I have encoded as either Vorbis or AAC. So I&#8217;m slowly converting my entire music library over to MP3, which works everywhere, even if it&#8217;s less efficient.</p>
<p>But before I go digging through my old CDs I need to identify which albums I have to re-encode. My music is organized in folders by artist and then album, e.g.:</p>
<p><code>~\Music\Library\Pixies\Surfer Rosa\Where Is My Mind.mp3</code></p>
<p>So this means I effectively have to list the names of folders containing non-MP3 music files. Fortunately Windows PowerShell makes this a one-liner (though admittedly it&#8217;s a pretty long line; the backtick is PowerShell&#8217;s line continuation syntax):</p>
<pre>
ls -r Music\Library `
| ?{ $_.PSIsContainer -And ( $_.GetFiles() `
| ?{ $_.Name -Match "\.(m4[ap]|ogg|wma)$" } ) } `
| %{ New-Object PSObject -Property `
@{ Artist = (gi $_.PSParentPath).Name; Album = $_.Name } }
</pre>
<p>This will give you a nice list of non-MP3 albums, like:</p>
<pre>
Album              Artist
-----              ------
That's Your Fire   Aloha
Noble Beast        Andrew Bird
Believe It Mammals Bats &#038; Mice
Charm School       Bishop Allen
[...]
</pre>
<p>And thanks to PowerShell&#8217;s object-oriented pipes, this is done without having to worry about any quoting or whitespace issues.</p>
<p>The more I learn PowerShell, the less I find myself relying on Cygwin for simple Windows administration tasks. I think Microsoft did a nice job balancing all the different requirements they had to meet with PowerShell. At the very least, it&#8217;s good to finally see a strong command shell built into Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2011/01/updating-music-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PXE booting OpenBSD on an ALIX via Ubuntu Live CD</title>
		<link>http://markshroyer.com/2010/12/openbsd-alix-via-ubuntu/</link>
		<comments>http://markshroyer.com/2010/12/openbsd-alix-via-ubuntu/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 02:38:55 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=879</guid>
		<description><![CDATA[Update: I&#8217;ve expanded the contents of this post into a full guide to running an OpenBSD router on an ALIX board. This is a quick guide to booting the OpenBSD installer on a PC Engines ALIX board with tinyBIOS (such &#8230; <a href="http://markshroyer.com/2010/12/openbsd-alix-via-ubuntu/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="margin: 1em 0; padding: 1em; background: #edeadc; font-style: italic;"><strong>Update:</strong> I&#8217;ve expanded the contents of this post into a <a href="http://markshroyer.com/guides/router/">full guide to running an OpenBSD router on an ALIX board</a>.</div>
<p>This is a quick guide to booting the OpenBSD installer on a PC Engines ALIX board with tinyBIOS (such as the <a href="http://www.pcengines.ch/alix2d3.htm">ALIX 2d3</a>) via PXE, using just the following:</p>
<ul>
<li>PC with two network interfaces. One of these needs to be Ethernet, and the other must connect to the Internet. For example, any standard PC laptop with both WiFi and Ethernet adapters will work if there&#8217;s a WiFi Internet connection available.</li>
<li>Null modem cable</li>
<li>Ethernet crossover cable</li>
<li>USB-serial adapter (unless your PC has a built-in RS-232 port)</li>
<li><a href="http://www.ubuntu.com/desktop/get-ubuntu/download">Ubuntu Linux 10.10 desktop live CD</a></li>
</ul>
<p>Thanks to the versatility of the Ubuntu live CD (specifically the use of AUFS to provide a writable root directory in RAM), you can set up the necessary PXE boot server without making any permanent changes to your PC.</p>
<h3>Ubuntu packages</h3>
<p>Boot the Ubuntu live CD and quit the installer. Ensure that Ubuntu has a working Internet connection, then enable the &#8220;universe&#8221; package repository by uncommenting the corresponding lines in <code>/etc/apt/sources.list.</code> Now open a terminal and run the following commands to install prerequisite packages:</p>
<pre>$ sudo -s
# apt-get update
# apt-get install dhcp3-server tftpd xinetd cu</pre>
<h3>Network configuration &amp; NAT</h3>
<p>Run this command to configure a static address on the Ethernet interface:</p>
<pre># ifconfig eth0 up 192.168.2.1 netmask 255.255.255.0</pre>
<p>I&#8217;ve found you may also need to configure the static address in the &#8220;Network Connections&#8221; dialog (under Preferences in the System menu) to prevent Network Manager from getting in the way. This is sort of hackish, but we only need it to work for the duration of the install.</p>
<p>Now enable routing and configure a simple NAT using iptables so that the ALIX board can access the internet through your PC&#8217;s wireless connection:</p>
<pre># echo 1 &gt; /proc/sys/net/ipv4/ip_forward
# iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
# iptables -A FORWARD -i eth0 -j ACCEPT
# iptables -A FORWARD -i wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT</pre>
<p>Connect your PC&#8217;s Ethernet port to the first port on your ALIX board using the crossover cable. On the ALIX 2d3, the first port is the one adjacent to the USB ports.</p>
<h3>DHCP server</h3>
<p>Replace <code>/etc/dhcp3/dhcpd.conf</code> with the following contents:</p>
<pre>authoritative;

shared-network LOCAL-NET {
    option domain-name-servers 8.8.8.8;

    subnet 192.168.2.0 netmask 255.255.255.0 {
        option routers 192.168.2.1;
	filename "pxeboot";
	range 192.168.2.100 192.168.2.200;
	default-lease-time 600;
	max-lease-time 7200;
    }
}</pre>
<p>Also, edit the file <code>/etc/default/dhcp3-server</code> so that the last line reads:</p>
<pre>INTERFACES="eth0"</pre>
<p>Now you can start the DHCP server.</p>
<pre># /etc/init.d/dhcp3-server start</pre>
<h3>TFTP server</h3>
<p>Create an xinetd file <code>/etc/xinetd.d/tftp</code> as:</p>
<pre>service tftp
{
    socket_type = dgram
    protocol = udp
    wait = yes
    user = root
    server = /usr/sbin/in.tftpd
    server_args = -s /tftpboot
}</pre>
<p>Next create the aforementioned directory <code>/tftpboot</code>. Download the files <code>bsd.rd</code> and <code>pxeboot</code> from the <code>/4.8/i386/</code> directory on your favorite <a href="http://www.openbsd.org/ftp.html">OpenBSD mirror</a> and copy them into this directory.</p>
<p>Restart xinetd to load the new configuration.</p>
<pre># /etc/init.d/xinetd restart</pre>
<h3>Serial console</h3>
<p>Connect your laptop&#8217;s serial port (or plugged-in USB-serial adapter) to the ALIX board&#8217;s serial port with your null modem cable, then use the <code>cu</code> command to connect to the serial console. For example, if you&#8217;re using a USB adapter and your ALIX&#8217;s BIOS has the default serial port settings:</p>
<pre># cu -e -o -s 38400 -l /dev/ttyUSB0</pre>
<h3>PXE boot</h3>
<p>With your serial console ready, plug in the ALIX board&#8217;s power adapter, and you should see the board begin to boot. While the memory check is being performed, press the &#8216;s&#8217; key to enter the tinyBIOS settings, and verify that PXE boot is enabled (if it isn&#8217;t, press &#8216;e&#8217; to toggle it).</p>
<p>After exiting the BIOS settings menu, the board will reboot. It should find your PXE server and bring you to an OpenBSD boot menu. Enter the following at this menu:</p>
<pre>boot&gt; stty com0 38400
boot&gt; set tty com0
boot&gt; bsd.rd</pre>
<p>The installer will boot from the <code>bsd.rd</code> image that you downloaded. Now perform the installation as normal, but remember to configure the serial port as your system console in the installer.</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2010/12/openbsd-alix-via-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advanced Kindle store search</title>
		<link>http://markshroyer.com/2010/12/kindle-search/</link>
		<comments>http://markshroyer.com/2010/12/kindle-search/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 04:31:53 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=873</guid>
		<description><![CDATA[I just found a great web site providing a better Kindle content search than what&#8217;s baked into Amazon: eReaderIQ.com. You can search by price, publication date, reading level, and whether the book you want is in the public domain, among &#8230; <a href="http://markshroyer.com/2010/12/kindle-search/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just found a great web site providing a better Kindle content search than what&#8217;s baked into Amazon: <a href="http://www.ereaderiq.com/">eReaderIQ.com</a>. You can search by price, publication date, reading level, and whether the book you want is in the public domain, among other things.</p>
<p>For example, <a href="http://www.amazon.com/s?ie=UTF8&amp;node=154606011&amp;p_15=public%20domain&amp;p_36=0-0&amp;kc=AG56TWVU5XWC2&amp;redirect=true">this query</a> lists only free Kindle books in the public domain. Very handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2010/12/kindle-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Outlook ruins my evening</title>
		<link>http://markshroyer.com/2010/12/outlook-ruins-evening/</link>
		<comments>http://markshroyer.com/2010/12/outlook-ruins-evening/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 02:44:19 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=564</guid>
		<description><![CDATA[I had a funny experience yesterday. I don&#8217;t typically use Microsoft Outlook with my home email account. But it was bundled with the copy of Office 2010 that I installed a few months ago, and I figured: heck, if I &#8230; <a href="http://markshroyer.com/2010/12/outlook-ruins-evening/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had a funny experience yesterday.</p>
<p>I don&#8217;t typically use Microsoft Outlook with my home email account. But it was bundled with the copy of Office 2010 that I installed a few months ago, and I figured: heck, if I have it anyway I might as well hook it up to my personal IMAP account. So I configured Outlook, played with it a bit, then promptly forgot all about it.</p>
<p>Fast forward to yesterday evening. I launch my copy of Outlook for the first time in months in order to try something with the calendar, but then I get distracted and walk away from the computer. Five minutes later my cell phone gets a message from my FreeBSD server:</p>
<blockquote><p>EMAIL SERVER HIJACKED &#8211; FIREWALLING POSTFIX</p></blockquote>
<p>Oh. Fun.</p>
<p>A slight digression before I can get on with the story: I try my very best to be a good Internet citizen, and that of course means not allowing oneself to become a spam relay. Because this email server exists only for my personal use, it was simple to write a Perl script that monitors my Postfix logs and, if it sees anything grossly out of the ordinary sent out through the server, reconfigures PF to block outbound connections to TCP port 25. It seemed the responsible thing to do, especially since some PHP applications on my web server have permission to relay through this Postfix instance; and let&#8217;s face it, WordPress has a less than stellar security track record.</p>
<p>This script has never given me a false positive. So this was definitely cause for concern.</p>
<p>I shelled into my VPS and went straight for the mail logs. I was dismayed to find more than twenty entries like this:</p>
<pre>Dec  8 23:35:38 frodo postfix/smtpd[13146]: 13DB43F4DC: \
    client=redacted[xxx.xxx.xxx.xxx], sasl_method=LOGIN, sasl_username=redacted
Dec  8 23:35:39 frodo postfix/cleanup[13148]: 13DB43F4DC: \
    replace: header Received: from noatun (redacted [xxx.xxx.xxx.xxx]) \
(Authenticated sender: redacted)
by frodo.paleogene.net (Postfix) with ESMTPSA id 13DB43F4DC
for &lt;redacted@example from redacted[xxx.xxx.xxx.xxx]; \
    from=&lt;redacted@example.com&gt; to=&lt;redacted@example.com&gt; \
    proto=ESMTP helo=&lt;noatun&gt;: Received: from auth-client.paleogene.net \
    (auth-client.paleogene.net [206.125.175.178])
(Authenticated sender: hidden)
by frodo.paleogene.net (Postfix) with ESMTPSA id 13DB43F4DC
for &lt;redacted@example.com&gt;; Wed,  8 Dec 2010 23:35:37 -0500 (EST)</pre>
<p>All of them sent within seconds of one another, and all of them to random Gmail accounts and other recipients that I absolutely did not recognize. Worse, the messages had been sent through a properly SASL authenticated connection from my laptop (HELO noatun). To quote that old horror flick: <em>They&#8217;re coming from inside the house!</em></p>
<p>I&#8217;ve heard tell of Windows viruses that will quietly send spam through the user&#8217;s configured Outlook mail account, so that the messages originate from a legitimate mail server and have a better chance of skipping recipients&#8217; spam folders. I have no idea whether this is actually a common occurrence in the real world, but it&#8217;s plausible enough, and I couldn&#8217;t think of any better explanation why 24 messages had been sent out from my computer in a matter of seconds, all to recipients I&#8217;d never heard of. I still could not fathom how a spam bot might have made its way onto my laptop despite my precautions, but better safe than sorry&#8230;</p>
<p>Process Explorer and TCPView failed to reveal anything suspicious, so I shut down the laptop, yanked out its hard drive, hooked that up to another machine via a USB-SATA adapter, and started a full offline virus scan.</p>
<p>Meanwhile I kept poking around on the mail server. I had a bit of luck when I checked <code>/var/spool/postfix/deferred</code> &#8212; a few messages had been caught in the Postfix outbound queue when my script added its firewall rule. I was morbidly curious what had been sent.</p>
<p>&#8230;it was a freaking <a title="E-mail tracking - Wikipedia" href="http://en.wikipedia.org/wiki/E-mail_tracking#Read-receipts">Message Disposition Notification</a>.</p>
<p>Now sure, I knew all about email read receipts, but I&#8217;d immediately ruled them out as the cause of this behavior because all of my email clients, Outlook included, are configured to at least ask my permission before sending one:</p>
<div id="attachment_668" class="wp-caption aligncenter" style="width: 580px"><a rel="attachment wp-att-668" href="http://markshroyer.com/2010/12/outlook-ruins-evening/outlook-tracking/"><img class="size-full wp-image-668  " title="Outlook tracking options" src="http://markshroyer.com/wp-content/uploads/2010/12/outlook-tracking.png" alt="Outlook tracking options, showing &quot;Ask each time whether to send a read receipt&quot;" width="570" height="285" /></a><p class="wp-caption-text">Outlook completely ignores this</p></div>
<p>And anyway, I hadn&#8217;t read or deleted any email messages in Outlook, so why would it want to send any MDNs in the first place?</p>
<p>I did some googling and the pieces slowly began falling into place. It turns out there&#8217;s a horrific bug in recent Outlook versions&#8217; handling of read receipts: unread messages deleted from an IMAP folder can send a &#8220;not read&#8221; MDN, <a href="http://www.emaildiscussions.com/showthread.php?t=51114">even if you&#8217;ve explicitly configured Outlook not to do so</a>.</p>
<p>And as I had just discovered, it isn&#8217;t even necessary to delete the messages from within Outlook itself to trigger this behavior. Months ago when I set up Outlook for my IMAP account, I was subscribed to several Debian and other technical mailing lists that I&#8217;ve since left (these days I prefer to use the <a title="Gmane -- Mail To News And Back Again" href="http://gmane.org/">Gmane</a> NNTP gateway to read such lists). Apparently when Outlook started up and noticed that these lists&#8217; mail folders no longer existed on my server, it decided to send a &#8220;not read&#8221; notification for each unread message that requested one in Outlook&#8217;s <em>old cached copy</em> of the folders.</p>
<p>Some searching of the mailing list archives confirmed my hypothesis. Every recipient of one of these mystery messages had posted something to one of these lists, presumably (probably unknowingly) including a <code>Disposition-Notification-To:</code> header in their posts.</p>
<p>I can&#8217;t find the words to describe just how wrongheaded this behavior is. Not only is it semantically incorrect &#8212; how can Outlook assume that just because a message has been deleted from the IMAP server, it wasn&#8217;t first read in some other mail client before being purged? &#8212; but it&#8217;s a horrendous privacy risk too, and a boon to email address harvesters.</p>
<p>And in this case, it led me to waste two hours of my time as I had to diagnose this unsolicited, seemingly spam bot-like burst of messages that went out through my server.</p>
<p>As much as it has improved over the years, I think this proves Outlook 2010 is still entirely untrustworthy as an email client. Avoid using it if at all possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2010/12/outlook-ruins-evening/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ars Technica &#8220;Getting to QED&#8221;</title>
		<link>http://markshroyer.com/2010/11/etting-to-qed/</link>
		<comments>http://markshroyer.com/2010/11/etting-to-qed/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 01:48:23 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=550</guid>
		<description><![CDATA[Ars Technica has a four-part introductory series on logic and argumentation, entitled &#8220;Getting to QED.&#8221; In some cases, there is a way to tell good arguments from bad using what is called informal logic. This name distinguishes it from formal &#8230; <a href="http://markshroyer.com/2010/11/etting-to-qed/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ars Technica has a four-part introductory series on logic and argumentation, entitled &#8220;<a href="http://arstechnica.com/tech-policy/guides/2010/11/getting-to-qed-part-1.ars/">Getting to QED</a>.&#8221;</p>
<blockquote><p>In some cases, there is a way to tell good arguments from bad using what is called informal logic. This name distinguishes it from formal logic, which is used in mathematics; natural language is less precise than mathematics, and does not always follow the same rules. Perhaps more surprisingly, the name also reflects the fact that there is a lot of disagreement over what it means. Informal logic is actually a fairly young discipline, developed in the 1960s, and intended to apply new techniques from formal logic to argument and critical thinking. Philosophers are still wrestling with this application, and there are several competing schools of thought.</p>
<p>For all the differences, there are some core elements upon which everyone agrees. This article is a tutorial introducing these basic ideas of informal logic. In particular, we focus on deductive reasoning, which is one of the cornerstones of analytical thought. Hopefully you will come away from this article with the tools to distinguish a productive debate from an acrimonious flame war.</p></blockquote>
<p>This should be required reading for anyone who&#8217;s engaged in debate on a mailing list or web forum.</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2010/11/etting-to-qed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jaimie&#8217;s giant robot project</title>
		<link>http://markshroyer.com/2010/11/giant-robot/</link>
		<comments>http://markshroyer.com/2010/11/giant-robot/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 04:31:27 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=537</guid>
		<description><![CDATA[This guy is the best kind of crazy&#8230; How am I just finding this now? He&#8217;s made major progress since filming that video; check out his YouTube channel for more. Seriously man, thumbs up&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://jamius.com/">This guy</a> is the best kind of crazy&#8230;</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/86Krv3gE-c4?fs=1&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/86Krv3gE-c4?fs=1&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>How am I just finding this now? He&#8217;s made major progress since filming that video; check out <a title="YouTube - JMEMantzel's Channel" href="http://www.youtube.com/user/JMEMantzel">his YouTube channel</a> for more. Seriously man, thumbs up&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2010/11/giant-robot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 hotfix for unnecessary chkdsk at boot</title>
		<link>http://markshroyer.com/2010/11/windows-7-hotfix-chkdsk/</link>
		<comments>http://markshroyer.com/2010/11/windows-7-hotfix-chkdsk/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 02:04:29 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=516</guid>
		<description><![CDATA[I&#8217;m posting this here so I can find it again later, because this one caused a surplus of annoyance before I finally found a solution&#8230; I have a Windows 7 x64 laptop which would randomly (once or twice a week) &#8230; <a href="http://markshroyer.com/2010/11/windows-7-hotfix-chkdsk/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m posting this here so I can find it again later, because this one caused a surplus of annoyance before I finally found a solution&#8230;</p>
<p>I have a Windows 7 x64 laptop which would randomly (once or twice a week) set the NTFS &#8220;dirty&#8221; bit on its C: drive, causing <code>chkdsk</code> to run at boot and find&#8230; well, no problem whatsoever. Sometimes this glitch would be heralded by a system tray / notification area message that the filesystem was allegedly corrupt, but often there would be no warning (aside from NTFS Event 55 messages in the system event log, or the output of</p>
<pre>fsutil dirty query c:</pre>
<p>if I bothered to run it manually), until <code>chkdsk</code> began its long run the next time I restarted the computer. Yeah, I know I could have used</p>
<pre>chkntfs /x c:</pre>
<p>to stop boot-time filesystem checks altogether, but then if there actually <em>were</em> a legitimate problem one day&#8230; :)</p>
<p>Anyway, after a couple months of this I finally hit upon <a title="WIndows 7, Event 55, NTFS corrupt" href="http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/8cdd3bd9-3c8e-4ddc-98f6-8e315ba390f2">this discussion</a> on Microsoft TechNet, which in turn led me to <a title="You receive an error message that states the file system is broken in Windows 7 or in Windows Server 2008 R2" href="http://support.microsoft.com/kb/982927">KB 982927</a>, including a hotfix (<a href="http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=982927&amp;kbln=en-us">Fix316593</a>). Microsoft makes you jump through some hoops to get the hotfix (you have to do an email confirmation thing and then even the download is password protected &#8212; why?), but after a month and a half I can say this has completely resolved the problem for me with no ill effects.</p>
<p>Hopefully Microsoft will roll this into SP1, since this is a longstanding, <a title="The Windows 7 chkdsk bug that won’t go away" href="http://www.pcpro.co.uk/blogs/2009/11/16/the-windows-7-chkdsk-bug-that-wont-go-away/">seemingly widespread</a> problem, but at least we have this in the meantime&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2010/11/windows-7-hotfix-chkdsk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GTK+ and Haskell (gtk2hs) on Windows</title>
		<link>http://markshroyer.com/2010/10/gtk2hs-on-windows/</link>
		<comments>http://markshroyer.com/2010/10/gtk2hs-on-windows/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 03:50:44 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=142</guid>
		<description><![CDATA[Update: Jacob Stanley has a great article on installing gtk2hs on Windows which goes into more detail, including a tutorial on GTK theming. Gtk2hs is my favorite way to do cross-platform GUI programming in Haskell &#8212; and it&#8217;s the toolkit &#8230; <a href="http://markshroyer.com/2010/10/gtk2hs-on-windows/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="margin: 1em 0; padding: 1em; background: #edeadc; font-style: italic;"><b>Update:</b> <a href="http://jystic.com/2010/10/20/installing-gtk2hs-on-windows/">Jacob Stanley has a great article</a> on installing gtk2hs on Windows which goes into more detail, including a tutorial on GTK theming.</div>
<p>Gtk2hs is my favorite way to do cross-platform GUI programming in Haskell &#8212; and it&#8217;s the toolkit to use if you want to work through the examples in the excellent <a href="http://book.realworldhaskell.org/"><em>Real World Haskell</em></a>. But the <a href="http://code.haskell.org/gtk2hs/INSTALL">official instructions</a> for building gtk2hs on Windows leave out some important information, so here&#8217;s how I got it all working on Windows 7&#8230;</p>
<h3>Haskell Platform</h3>
<p>First of all, if you haven&#8217;t done so already, download and install the latest release of the <a href="http://hackage.haskell.org/platform/">Haskell Platform</a> for Windows (version 2010.2.0.0 at the time of this writing). Opt for the installer to add GHC and friends to your <code>%PATH%</code>.</p>
<h3>GTK+</h3>
<p>Next download the <a href="http://www.gtk.org/download-windows.html">GTK+ 2.16 all-in-one bundle</a> and extract it to <code>C:\Gtk</code>, then add <code>C:\Gtk\bin</code> to <code>%PATH%</code> by hand. (Alas, I was unable to get gtk2hs 0.11 to build with GTK+ 2.22 &#8212; it failed complaining that <code>c:/devel/dist/win32/libpng-1.4.3-1/lib</code> doesn&#8217;t exist, and I didn&#8217;t feel like messing with it beyond that point.) If you have Cygwin stuff on your Windows path, make sure the Gtk directory has higher priority; you can use PowerShell&#8217;s <a href="http://technet.microsoft.com/en-us/library/ee176842.aspx">Get-Command</a> to check on this, e.g. run <code>get-command pkg-config</code> and make sure the one in <code>C:\Gtk\bin</code> is listed first.</p>
<p>Verify that the library is installed correctly by running:</p>
<pre>pkg-config.exe --modversion gtk+-2.0</pre>
<p>The above will report the version number of your installed GTK+ library, e.g. <code>2.16.6</code>. If you get an error message here then something is wrong&#8230;</p>
<p><span id="more-142"></span></p>
<h3>MinGW</h3>
<p>The gtk2hs documentation claims you don&#8217;t need MinGW installed to build on Windows, but this isn&#8217;t strictly true from our perspective: you&#8217;ll need MinGW&#8217;s <code>gpp</code> in order to build Haskell&#8217;s Cairo bindings, upon which the GTK module depends.</p>
<p>The good news is that all the MinGW components you need are already included with the Haskell Platform distribution, so just add its <code>mingw\bin</code> subdirectory to your path. Make sure that this, too, has a higher priority than any Cygwin (or <abbr title="Subsystem for Unix-based Applications">SUA</abbr>, for that matter) entries in the Windows environment variables; the Cabal installs we&#8217;ll be doing in a moment will attempt to invoke the <code>strip</code> command at the end of the build process, and things will go south if Cabal accidentally invokes Cygwin&#8217;s <code>strip</code> instead. (This had me scratching my head for longer than I care to admit&#8230;)</p>
<h3>gtk2hs</h3>
<p>Now you should have everything you need to install gtk2hs from Hackage:</p>
<pre>cabal update
cabal install gtk2hs-buildtools
cabal install gtk</pre>
<h3>Hello, world!</h3>
<p>You&#8217;re all set, assuming Cabal didn&#8217;t encounter any problems. Test it out by creating a file <code>Hello.hs</code> with the following:</p>
<p><script src="http://gist.github.com/657559.js?file=Hello.hs"></script></p>
<p>Build it with GHC:</p>
<pre>ghc.exe --make Hello.hs -o Hello</pre>
<p>And then run <code>Hello.exe</code>. You should see something like this:</p>
<p><a href="http://markshroyer.com/2010/10/gtk2hs-on-windows/gtk2hs/" rel="attachment wp-att-216"><img src="http://markshroyer.com/wp-content/uploads/2010/10/gtk2hs.png" alt="Hello, world from gtk2hs!" title="gtk2hs" width="257" height="136" class="aligncenter size-full wp-image-216" /></a></p>
<p>Happy hackage!</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2010/10/gtk2hs-on-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows tool to clean up OS X junk files</title>
		<link>http://markshroyer.com/2010/10/nosx/</link>
		<comments>http://markshroyer.com/2010/10/nosx/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 04:13:47 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://markshroyer.com/?p=104</guid>
		<description><![CDATA[I wrote a little old-school Windows HTA script to delete the .DS_Store, .Trashes, and ._* junk files and directories typically littered across non-HFS media by Mac OS X: You can download it from my GitHub account if you have a &#8230; <a href="http://markshroyer.com/2010/10/nosx/">Continue reading <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I wrote a little old-school Windows <abbr title="HyperText Application">HTA</abbr> script to delete the <code>.DS_Store</code>, <code>.Trashes</code>, and <code>._*</code> junk files and directories typically littered across non-HFS media by Mac OS X:</p>
<p><a rel="attachment wp-att-130" href="http://markshroyer.com/2010/10/nosx/nosx-2/"><img class="aligncenter size-full wp-image-130" title="nosx" src="http://markshroyer.com/wp-content/uploads/2010/10/nosx1.png" alt="nosx" width="512" height="289" /></a></p>
<p>You can <a href="http://github.com/markshroyer/nosx">download it from my GitHub account</a> if you have a use for this sort of thing. Written and tested with Windows 7 and IE 8; I&#8217;m not sure how it will work with earlier versions of either. Standard disclaimers apply: use at your own risk, etc.</p>
<p>Incidentally, I think HTAs are really underrated as Windows scripting goes. More on that topic later&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://markshroyer.com/2010/10/nosx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  markshroyer.com/feed/ ) in 0.16796 seconds, on Feb 23rd, 2012 at 12:50 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 23rd, 2012 at 1:50 am UTC -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  markshroyer.com/feed/ ) in 0.00058 seconds, on Feb 23rd, 2012 at 1:33 am UTC. -->
