<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Yabfog &#187; bugs</title>
	<atom:link href="http://yabfog.com/blog/tag/bugs/feed" rel="self" type="application/rss+xml" />
	<link>http://yabfog.com/blog</link>
	<description>Yet another blog full of gas</description>
	<lastBuildDate>Tue, 17 Apr 2012 18:51:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<cloud domain='yabfog.com' port='80' path='/blog/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>A Gotcha Using Node.js + Request In a Daemon</title>
		<link>http://yabfog.com/blog/2012/04/13/a-gotcha-using-node-js-request-in-a-daemon</link>
		<comments>http://yabfog.com/blog/2012/04/13/a-gotcha-using-node-js-request-in-a-daemon#comments</comments>
		<pubDate>Fri, 13 Apr 2012 16:14:37 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[request]]></category>

		<guid isPermaLink="false">http://yabfog.com/blog/?p=91778635</guid>
		<description><![CDATA[I have a Node.js program running as a daemon on a Linux VPS. Periodically, it polls a list of URLs using request. When it first starts, everything runs smoothly. But after running for a while, it starts getting 400 errors, and the longer it runs, the more URLs return 400 errors. I could not understand [...]]]></description>
			<content:encoded><![CDATA[<p>I have a <a href="http://nodejs.org">Node.js</a> program running as a daemon on a Linux VPS. Periodically, it polls a list of URLs using <code><a href="https://github.com/mikeal/request">request</a></code>. When it first starts, everything runs smoothly. But after running for a while, it starts getting <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1">400</a> errors, and the longer it runs, the more URLs return 400 errors.</p>
<p>I could not understand what was going on. My code was basically structured like this:</p>
<p><script src="https://gist.github.com/2377840.js?file=request-excerpt.js"></script></p>
<p>Given that code, we know the <code>req</code> object is initialized with each function call. So, how could this script degrade over time?</p>
<p>Well, I finally tracked it down: COOKIES!</p>
<p>Yup, <code>request</code> has cookies enabled by default. So, I think what was happening was that cookies were being set (presumably, top domain-level cookies having the same name at different URLs or subdomains on the same domain) but the values in request's cookie jar were not being returned properly. That means the remote host was getting invalid cookies -- hence the 400 response for a "Bad Request."</p>
<p>I haven't yet spent the time to figure out if this is a bug in <code>request</code>. It's on my TODO list.</p>
<p>In the meantime, I've disabled cookies in the <code>req</code> object:<br />
<code>var req = { url: url, timeout: options.timeout, jar: false };</code></p>
<p>It's now working as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2012/04/13/a-gotcha-using-node-js-request-in-a-daemon/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Fun with River2</title>
		<link>http://yabfog.com/blog/2011/02/11/fun-with-river2</link>
		<comments>http://yabfog.com/blog/2011/02/11/fun-with-river2#comments</comments>
		<pubDate>Fri, 11 Feb 2011 06:39:45 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[dde]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[opml]]></category>
		<category><![CDATA[palemoon]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[river2]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://yabfog.com/blog/?p=91778558</guid>
		<description><![CDATA[I decided to install Dave Winer's River2 to supplement my usual feed reading. Now that I can access it via its smart use of Dropbox, it should be good for feeds that I don't feel like I need to see every headline. One of the things I love about River2 is that it's an app [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to install Dave Winer's <a href="http://newsriver.org/river2.html">River2</a> to supplement my usual feed reading. Now that I can access it via its smart use of Dropbox, it should be good for feeds that I don't feel like I need to see every headline.</p>
<p>One of the things I love about River2 is that it's an app that runs in the <a href="http://editor.opml.org/">OPML Editor</a>, which means that it is endlessly hackable and (apropos to this post) you can fix your own bugs.</p>
<p>So here's a bug report. And fix. (Actually, it could be a workaround for a bug in another application, as I explain below).</p>
<ol>
<li>What I was doing: From the <code><strong>Tools > River2 > Pages</strong></code> menu, I selected a page to view (any one, it's the same bug no matter which page).</li>
<li>What I expected to happen: I expected the selected page to open in my default web browser, <a href="http://www.palemoon.org/">Pale Moon</a> (a Windows-optimized build of Firefox)</li>
<li>What actually happened: Nothing. Not even an error dialog.</li>
</ol>
<p>I immediately suspected that the problem was the communication between the OPML Editor and the Pale Moon browser. After all, there was a major bug for the longest time in Firefox's DDE implementation that required a workaround.</p>
<p>Bottom line: the OPML Editor's DDE implementation expects that the DDE service name is the same as the name of the executable with the filename suffix removed. So, for Excel, the service name is "excel," and for Firefox it's "firefox." But the service name is determined by the application, and the Pale Moon developers decided that its service name would be "Pale Moon," not "palemoon." A simple patch to <code>system.verbs.builtins.webBrowser.openURL</code> resolves the problem.</p>
<pre>
if string.lower (id) contains "palemoon" { // 2/11/11; 12:09:06 AM by DJM
	ddeName = "Pale Moon";
	return (webBrowser.callBrowser (ddeName, "WWW_OpenURL", s+",,0,0,,,,"))}
</pre>
<p>The function <code>webBrowser.callBrowser</code> expects ddeName to be the name of the executable, from which it attempts to remove the ".exe" suffix. Luckily, if the function is passed any string without an ".exe" suffix, it just accepts the passed string as the DDE service name.</p>
<p>Here's the full context:</p>
<p><a href="http://yabfog.com/blog/wp-content/uploads/2011/02/openurl.png"><img src="http://yabfog.com/blog/wp-content/uploads/2011/02/openurl-300x233.png" alt="system.verbs.builtins.webBrowser.openURL" title="system.verbs.builtins.webBrowser.openURL" width="300" height="233" class="size-medium wp-image-91778559" /></a></p>
<p>That ",,0,0,,,," nonsense is part of the DDE message that Pale Moon expects:</p>
<p><a href="http://yabfog.com/blog/wp-content/uploads/2011/02/palemoondde.png"><img src="http://yabfog.com/blog/wp-content/uploads/2011/02/palemoondde-288x300.png" alt="Pale Moon DDE" title="Pale Moon DDE" width="288" height="300" class="alignnone size-medium wp-image-91778571" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2011/02/11/fun-with-river2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://yabfog.com/blog/wp-content/uploads/2011/02/openurl-150x150.png" />
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2011/02/openurl.png" medium="image">
			<media:title type="html">openurl</media:title>
			<media:thumbnail url="http://yabfog.com/blog/wp-content/uploads/2011/02/openurl-150x150.png" />
		</media:content>
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2011/02/palemoondde.png" medium="image">
			<media:title type="html">Pale Moon DDE</media:title>
			<media:thumbnail url="http://yabfog.com/blog/wp-content/uploads/2011/02/palemoondde-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>BlackBerry Browser Bug with Mailto: Links</title>
		<link>http://yabfog.com/blog/2009/04/05/blackberry-browser-bug-with-mailto-links</link>
		<comments>http://yabfog.com/blog/2009/04/05/blackberry-browser-bug-with-mailto-links#comments</comments>
		<pubDate>Sun, 05 Apr 2009 18:47:58 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[fixes]]></category>

		<guid isPermaLink="false">http://yabfog.com/blog/?p=222</guid>
		<description><![CDATA[Mailto links give error dialog in browser when email address is missing .]]></description>
			<content:encoded><![CDATA[<p><a href="http://supportforums.blackberry.com/rim/board/message?board.id=browser_dev&#038;message.id=922">Mailto links give error dialog in browser when email address is missing </a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2009/04/05/blackberry-browser-bug-with-mailto-links/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Firefox 3 Display Bugs?</title>
		<link>http://yabfog.com/blog/2008/06/20/firefox-3-display-bugs</link>
		<comments>http://yabfog.com/blog/2008/06/20/firefox-3-display-bugs#comments</comments>
		<pubDate>Fri, 20 Jun 2008 16:39:06 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://yabfog.com/blog/?p=185</guid>
		<description><![CDATA[I've installed Firefox 3, and it looks like they may have rushed it out the door a bit. I'm seeing some sloppy display bugs that are kind of annoying. I'm running Windows XP Pro SP3. See for yourself: Note the clipping along the bottom of the statusbar, as underscores and descenders are cut off. But [...]]]></description>
			<content:encoded><![CDATA[<p>I've installed Firefox 3, and it looks like they may have rushed it out the door a bit. I'm seeing some sloppy display bugs that are kind of annoying. I'm running Windows XP Pro SP3. See for yourself:</p>
<p>Note the clipping along the bottom of the statusbar, as underscores and descenders are cut off.<br />
<img src="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug01.png" alt="" title="ff3-statusbar-bug01" width="516" height="25" class="alignnone size-full wp-image-188" /></p>
<p>But check this out. Same theme, but with XP Styles enabled (not my personal preference), and the clipping is gone.<br />
<img src="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug01-fix.png" alt="" title="ff3-statusbar-bug01-fix" width="513" height="20" class="alignnone size-full wp-image-189" /></p>
<p>Now, look at the noise in this shot. Where is that coming from?!<br />
<img src="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug02.png" alt="" title="ff3-statusbar-bug02" width="172" height="23" class="alignnone size-medium wp-image-186" /></p>
<p>Finally, check out the left-side alignment, as "<span style="text-decoration: underline;">W</span>ork offline" is not aligned with the other menu items.<br />
<img src="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-menubar-bug01-186x300.png" alt="" title="ff3-menubar-bug01" width="186" height="300" class="alignnone size-medium wp-image-187" /></p>
<p>That last one is only present when I use the Azerty III theme, but the other bugs appear in the Default theme, as well.</p>
<p>Seen any others?</p>
<p><strong><a name="ff3db_update">Update:</a></strong> Surprise, surprise! Went through the tedious process of disabling all add-ons then re-enabling each of them one by one, and it turns out that those statusbar display bugs were caused by Forecastfox and Foxclocks (not in combination, either one alone causes the display issues).</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2008/06/20/firefox-3-display-bugs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug01-150x25.png" />
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug01.png" medium="image">
			<media:title type="html">ff3-statusbar-bug01</media:title>
			<media:thumbnail url="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug01-150x25.png" />
		</media:content>
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug01-fix.png" medium="image">
			<media:title type="html">ff3-statusbar-bug01-fix</media:title>
			<media:thumbnail url="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug01-fix-150x20.png" />
		</media:content>
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-statusbar-bug02.png" medium="image">
			<media:title type="html">ff3-statusbar-bug02</media:title>
		</media:content>
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-menubar-bug01.png" medium="image">
			<media:title type="html">ff3-menubar-bug01</media:title>
			<media:thumbnail url="http://yabfog.com/blog/wp-content/uploads/2008/06/ff3-menubar-bug01-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>FreeNX with Fedora 8</title>
		<link>http://yabfog.com/blog/2007/11/16/freenx-with-fedora-8</link>
		<comments>http://yabfog.com/blog/2007/11/16/freenx-with-fedora-8#comments</comments>
		<pubDate>Sat, 17 Nov 2007 01:06:29 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[freenx]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://yabfog.com/wp/2007/11/16/freenx-with-fedora-8</guid>
		<description><![CDATA[Just finished installing Fedora 8 on one of my machines, only to find that one of my favorite tools, FreeNX (a VNC-like remote desktop protocol), would not work. Turns out Fedora 8 ships with a known bug. More info here. PITA.]]></description>
			<content:encoded><![CDATA[<p>Just finished installing <a href="http://fedoraproject.org/get-fedora">Fedora 8</a> on one of my machines, only to find that one of my favorite tools, <a href="http://freenx.berlios.de/info.php">FreeNX</a> (a VNC-like remote desktop protocol), would not work.</p>
<p>Turns out Fedora 8 ships with a <a href="https://bugzilla.redhat.com/show_bug.cgi?id=373771">known bug</a>. More info <a href="http://readlist.com/lists/kde.org/freenx-knx/0/2331.html">here</a>. PITA.</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2007/11/16/freenx-with-fedora-8/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>New York Times Home Page RSS Feed Driving Me Nuts</title>
		<link>http://yabfog.com/blog/2007/10/22/new-york-times-home-page-rss-feed-driving-me-nuts</link>
		<comments>http://yabfog.com/blog/2007/10/22/new-york-times-home-page-rss-feed-driving-me-nuts#comments</comments>
		<pubDate>Mon, 22 Oct 2007 21:42:36 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[feeddemon]]></category>
		<category><![CDATA[nytimes]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://yabfog.com/blog/2007/10/22/new-york-times-home-page-rss-feed-driving-me-nuts</guid>
		<description><![CDATA[The New York Times is doing a lot of great things with its website and RSS feeds. But somewhere along the way, they've introduced a bug in their code that generates the RSS feed for the home page. The bug is that the channel title switches back and forth between "NYT > NYTimes.com" and "NYT [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.nytimes.com">New York Times</a> is doing a lot of <a href="http://www.scripting.com/stories/2007/10/17/nyTimesMetadata.html">great things</a> with its website and RSS feeds. But somewhere along the way, they've introduced a bug in their code that generates the <a href="http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml">RSS feed for the home page</a>.</p>
<p>The bug is that the channel title switches back and forth between "NYT > NYTimes.com" and "NYT > Home Page". This alternates at least once an hour, all day long (as near as I can tell). This constant switching causes one of my feed readers (<a href="http://www.newsgator.com/Individuals/FeedDemon/Default.aspx">FeedDemon</a>) to alert me of the change every time it occurs. Of course this latter point is not directly the Times's fault, but it is driving me insane.</p>
<p>Screenshots to prove that I'm not already insane:<br />
<a href='http://yabfog.com/blog/wp-content/uploads/2007/10/nytrss01.png' title='nytrss01'><img src='http://yabfog.com/blog/wp-content/uploads/2007/10/nytrss01.png' alt='nytrss01' /></a><br />
<a href='http://yabfog.com/blog/wp-content/uploads/2007/10/nytrss02.png' title='nytrss02'><img src='http://yabfog.com/blog/wp-content/uploads/2007/10/nytrss02.png' alt='nytrss02' /></a><br />
<a href='http://yabfog.com/blog/wp-content/uploads/2007/10/nytrfd.png' title='nytfd'><img src='http://yabfog.com/blog/wp-content/uploads/2007/10/nytrfd.png' alt='nytfd' /></a></p>
<p>If you look closely at the raw RSS feeds, you will notice that they appear to be using two different tools to generate the same feed. So I guess the two tools are not configured exactly in sync with one another.</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2007/10/22/new-york-times-home-page-rss-feed-driving-me-nuts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://yabfog.com/blog/wp-content/uploads/2007/10/nytrss01.png" />
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2007/10/nytrss01.png" medium="image">
			<media:title type="html">nytrss01</media:title>
		</media:content>
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2007/10/nytrss02.png" medium="image">
			<media:title type="html">nytrss02</media:title>
		</media:content>
		<media:content url="http://yabfog.com/blog/wp-content/uploads/2007/10/nytrfd.png" medium="image">
			<media:title type="html">nytfd</media:title>
		</media:content>
	</item>
		<item>
		<title>Another Outlook feature disabled by Microsoft</title>
		<link>http://yabfog.com/blog/2007/01/30/another-outlook-feature-disabled-by-microsoft</link>
		<comments>http://yabfog.com/blog/2007/01/30/another-outlook-feature-disabled-by-microsoft#comments</comments>
		<pubDate>Tue, 30 Jan 2007 20:39:18 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[outlook]]></category>

		<guid isPermaLink="false">http://yabfog.com/wp/2007/01/30/another-outlook-feature-disabled-by-microsoft/</guid>
		<description><![CDATA[After deciding that we are too stupid to be permitted to receive certain kinds of attachments in Outlook, Microsoft has also decided that one the most important features offered by Outlook, saved searches, are too dangerous to be permitted. Welcome back to 1995!]]></description>
			<content:encoded><![CDATA[<p>After deciding that <a href="http://support.microsoft.com/kb/829982/en-us">we are too stupid to be permitted to receive certain kinds of attachments in Outlook</a>, Microsoft has also decided that one the most important features offered by Outlook, <a href="http://support.microsoft.com/kb/925542">saved searches, are too dangerous to be permitted</a>.</p>
<p>Welcome back to 1995!</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2007/01/30/another-outlook-feature-disabled-by-microsoft/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
	</channel>
</rss>

