<?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>fwaggle.org &#187; Internet</title>
	<atom:link href="http://www.fwaggle.org/blog/category/internet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fwaggle.org/blog</link>
	<description>the original fwagglechop</description>
	<lastBuildDate>Fri, 30 Jul 2010 06:33:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>The nightmare&#8217;s almost over&#8230;</title>
		<link>http://www.fwaggle.org/blog/internet/the-nightmares-almost-over</link>
		<comments>http://www.fwaggle.org/blog/internet/the-nightmares-almost-over#comments</comments>
		<pubDate>Sun, 11 Jul 2010 03:56:46 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=898</guid>
		<description><![CDATA[It&#8217;s been a really rough weekend (well, starting Thursday) for MumbleDog and Sabrienix. We&#8217;ve been toiling away at fixing all the bugs in our Murmur services, and there&#8217;s finally a light at the end of the tunnel. The problems started about a week or so ago when a nasty UTF8 exploit was released that let [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a really rough weekend (well, starting Thursday) for MumbleDog and Sabrienix. We&#8217;ve been toiling away at fixing all the bugs in our Murmur services, and there&#8217;s finally a light at the end of the tunnel.</p>
<p>The problems started about a week or so ago when a nasty UTF8 exploit was released that let people crash the Murmur process &#8211; because we use real virtual hosting instead of that godawful TCAdmin script that was floating around, the unfortunate side effect would mean that if one Murmur blew up, they all would in the same location. Needless to say, we hop on security issues ASAP to make sure that doesn&#8217;t happen.</p>
<p>We got that fix all built out, tested it, and then placed the updated binary in place of the old one so if someone did blow up our Murmurs, they&#8217;d restart impervious to the attack. We figured that&#8217;d be better than just restarting at an arbitrary time and pissing someone off (because there&#8217;s never a good time to restart a bunch of voice servers), and it&#8217;d give us time to look at the second exploit.</p>
<p>The second one&#8217;s particularly nasty. It looks like it&#8217;s a bug in QT&#8217;s QSslSocket, and indeed that&#8217;s what most everyone&#8217;s billing it as &#8211; however it also looks like the bug is either fixed or mitigated by updating OpenSSL. I&#8217;m personally not clever enough to figure out where the bug is or how it&#8217;s fixed, all I know is that OpenSSL upgrades stopped the exploit that was in the wild from working (which anyone can download and point at any of the public servers and make them eat shit, so that&#8217;s not fun) so that was good enough for now until more information comes around.</p>
<p>After a lot of messing around with QT&#8217;s weirdness with regards SSL, we finally got it working so we restarted the servers with updated versions ready. The reason we restarted on purpose after this update is the second exploit doesn&#8217;t crash the server, it makes them go into an infinite loop, so they just sit there. Our monitoring systems would go crazy, but they wouldn&#8217;t actually restart the process because it&#8217;d still be running. <img src='http://www.fwaggle.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>The downside to this was that the same upgraded OpenSSL that broke the exploit also broke public server registration. So our current servers that are up and running right now, none of them can be listed in the public server list. After a lot of messing around and hacking, we think we&#8217;ve gotten a completely bug free Murmur, but I&#8217;m running on very little sleep so we&#8217;re going to do a little more testing before we restart the servers again.</p>
<p>For what it&#8217;s worth, prior to these nasty bugs rearing their ugly heads, our servers have been up constantly for basically the entire year. We had a few spats of network issues here and there, but our datacenter staff have been taking the <a class="pu2b" href="http://www.vitamins.net/">best vitamins</a> and on strict health regimens to make sure they&#8217;re swift to react to them.</p>
<p>I might wait until monday or so, just to get past the &#8220;premium&#8221; gaming time, before we restart the servers. I mean yeah, it is summer, but those of us who work don&#8217;t particularly want to be in the middle of a raid or something and have our server reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/the-nightmares-almost-over/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spamemrs are getting crafty!</title>
		<link>http://www.fwaggle.org/blog/internet/spamemrs-are-getting-crafty</link>
		<comments>http://www.fwaggle.org/blog/internet/spamemrs-are-getting-crafty#comments</comments>
		<pubDate>Sat, 12 Jun 2010 02:50:00 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=877</guid>
		<description><![CDATA[I&#8217;ve been getting a ton of almost-on-topic spam comments lately. I say almost because most of them aren&#8217;t quite completely on-topic, but they&#8217;re doing a pretty great job of it. Say you write about getting shar pei dogs, there will be a post almost on topic and a link to say &#8220;wrinkle cream reviews&#8221; in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been getting a ton of almost-on-topic spam comments lately. I say almost because most of them aren&#8217;t quite completely on-topic, but they&#8217;re doing a pretty great job of it.</p>
<p>Say you write about getting shar pei dogs, there will be a post almost on topic and a link to say &#8220;<a href="http://www.wrinklecream-reviews.net/" class="pu2b">wrinkle cream reviews</a>&#8221; in the name/url section. Okay, maybe they&#8217;re not that badly off-topic, some of the comments and article subjects I&#8217;ve noted:</p>
<ul>
<li>VOIP Telephony links on posts about Mumble.</li>
<li>iPhone on posts about Windows Mobile smartphones.</li>
</ul>
<p>I&#8217;m sure there&#8217;s a few others but I don&#8217;t feel like going through the spam buckets on my other WordPress sites. The funny thing is they all manage to sneak past Akismet (probably because they&#8217;re all uniquely written), but they do all end in three random punctuation marks, like this:</p>
<p style="padding-left: 30px;"><em>Hi I liek ur phones I hope to one day own 1&#8242;-,</em></p>
<p>It&#8217;ll be interesting, given the wealth of keywords in this post, what they decide to try and link it to now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/spamemrs-are-getting-crafty/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thinking about trying adSense :(</title>
		<link>http://www.fwaggle.org/blog/internet/thinking-about-trying-adsense</link>
		<comments>http://www.fwaggle.org/blog/internet/thinking-about-trying-adsense#comments</comments>
		<pubDate>Fri, 28 May 2010 19:36:14 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=854</guid>
		<description><![CDATA[One of the great things people love about our Hungry Hacker website is the lack of obtrusive web advertising&#8230; the site is something like 7 years old now on it&#8217;s current domain, and it&#8217;s had exactly one banner ad on it, and that was only on one article page and was just to see how [...]]]></description>
			<content:encoded><![CDATA[<p>One of the great things people love about our <a href="http://www.hungryhacker.com/">Hungry Hacker</a> website is the lack of obtrusive web advertising&#8230; the site is something like 7 years old now on it&#8217;s current domain, and it&#8217;s had exactly <em>one</em> banner ad on it, and that was only on one article page and was just to see how it performed. We&#8217;ve never had pop-ups, pop-unders or anything on it.</p>
<p>For the longest time we did quite well with eBay&#8217;s <a class="pu2b" href="http://www.sharewealth.com/">affiliate marketing network</a> via Commission Junction (it&#8217;s now called the eBay Partner Network and run in-house at eBay) &#8211; we realized we were never going to get rich but we made a few bucks a month we could spend on new projects here and there.</p>
<p>Then a while back, they switched from paying us on a per-action basis (so if someone bought a PS3 from one of our links we&#8217;d make a few bucks), to paying per-click on a quality basis. Most of the people who read our site are looking for the cheap way to do something, so very few of them actually bust out the ol&#8217; Paypal account on eBay. In fact so few of them do, our quality of clicks has been stuck at zero for months, which is terrible because I <em>know </em>we&#8217;ve sent at least some quality traffic their way but we&#8217;re still stuck at zero.</p>
<p>So I&#8217;ve been thinking about adSense, because apparently it&#8217;s pretty fire-and-forget, assuming you don&#8217;t get the boot for fraud clicks. The only things holding me back is that I won&#8217;t have fine-grained control over what the links are, where they go, or how relevant they are (as I do with eBay) and it&#8217;d kind of be breaking our site&#8217;s creedo of not having &#8220;super-liminal&#8221; advertising.</p>
<p>So combine that moral dilemma with the fact I might either a) make no real money on it or b) get booted for click-fraud like so many other legitimate advertisers seem to be doing, and it&#8217;s pretty easy to see why I&#8217;m dragging my feet.</p>
<p>Can anyone forecast approximately what the income would be? We&#8217;re down to about 2k visitors and 3k page views per month right now, and we&#8217;re not tracking ebay click-through rates at the moment, but in the past it&#8217;s been between 1 and 5%. I&#8217;m assuming that as fancy as Google&#8217;s system is, it&#8217;s not as good at picking out relevant stuff as a real author doing so, but still. <img src='http://www.fwaggle.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/thinking-about-trying-adsense/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lolgentoo</title>
		<link>http://www.fwaggle.org/blog/internet/lolgentoo</link>
		<comments>http://www.fwaggle.org/blog/internet/lolgentoo#comments</comments>
		<pubDate>Fri, 28 May 2010 04:26:10 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=852</guid>
		<description><![CDATA[I was involved in a discussion about OSes today and the subject of Gentoo came up &#8211; it&#8217;s funny how Gentoo always manages to attract flak from just about anyone who isn&#8217;t a Gentoo user. I&#8217;m thinking maybe that watching all that shit scroll by while they install something makes people think they know more [...]]]></description>
			<content:encoded><![CDATA[<p>I was involved in a discussion about OSes today and the subject of Gentoo came up &#8211; it&#8217;s funny how Gentoo always manages to attract flak from just about anyone who isn&#8217;t a Gentoo user. I&#8217;m thinking maybe that watching all that shit scroll by while they install something makes people think they know more than what they really do, so they start making outlandish claims and wind up looking stupid.</p>
<p>Personally, I&#8217;m still not a huge fan of Open Source OSes for the desktop. Like I said earlier today, security notwithstanding most every other criticism of Windows just plain isn&#8217;t true any more&#8230; I haven&#8217;t had to do the daily-reboot thing with any NT-based OS starting from NT4.</p>
<p>For server OSes, FreeBSD&#8217;s my thing&#8230; a Daemon&#8217;s always going to be cooler than a <a class="pu2b" href="http://www.formaltux.com/">tuxedo</a> penguin, but really it&#8217;s all about the <a href="http://www.manpages.info/freebsd/hier.7.html">hier(7)</a>. For that reason, I really can&#8217;t conceive of why something like debian/kfreebsd exists &#8211; if anything I&#8217;d prefer the wide swath of hardware support covered by a nice clean BSD userland, not the other way around.</p>
<p>I seriously cringe every time someone goes &#8220;oh, you like FreeBSD? You should try Gentoo &#8211; it&#8217;s a lot like BSD&#8221;. Seriously, no&#8230; stop saying this. <img src='http://www.fwaggle.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/lolgentoo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You all are probably getting sick of this&#8230;</title>
		<link>http://www.fwaggle.org/blog/internet/you-all-are-probably-getting-sick-of-this</link>
		<comments>http://www.fwaggle.org/blog/internet/you-all-are-probably-getting-sick-of-this#comments</comments>
		<pubDate>Mon, 26 Apr 2010 01:04:31 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=820</guid>
		<description><![CDATA[&#8230;but I&#8217;m on an optimization kick and can&#8217;t stop talking about it. Hungry Hacker just gobbled down another fistful of slimming pills now in the form of a removed jQuery library from Arthemia. Well that&#8217;s not strictly accurate, because Arthemia doesn&#8217;t included jQuery by default &#8211; the bottom right portion of the footer contains a [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;but I&#8217;m on an optimization kick and can&#8217;t stop talking about it. Hungry Hacker just gobbled down another fistful of <a class="pu2b" href="http://leptovox.com/">slimming pills</a> now in the form of a removed jQuery library from Arthemia. Well that&#8217;s not strictly accurate, because Arthemia doesn&#8217;t included jQuery by default &#8211; the bottom right portion of the footer contains a box that lists the &#8220;most popular articles&#8221;, which is powered by the WP-PageViews plugin which&#8230; you guessed it, uses jQuery.</p>
<p>To me it&#8217;s almost a case of &#8220;everything looks like a nail&#8221; with respect to jQuery &#8211; it&#8217;s one hell of a fat (cool, but fat) library for just ensuring a script is called without cache control. The same thing could be fixed with a transparent image, or a lightweight home-brew AJAX call-home without the entirety of the library included for every page view.</p>
<p>Disabling this plugin lopped off 25% of the average page&#8217;s uncompressed total file size &#8211; to be fair, with gzip compression on it was probably closer to about 5KB actually saved (though I have no idea how much jQuery weighs gzipped) but the fact is we saved another HTTP request, and a script request in the &lt;head&gt; of the page no less.</p>
<p>Median page-load times according to the PageSpeed plugin for Firebug look to be between 600ms and 1 second &#8211; I think that&#8217;s good enough, actually. I just need to think of something to put in the unoccupied territory of every page now, and then I should probably get back to work putting up content.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/you-all-are-probably-getting-sick-of-this/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Premium Themes &#8211; Turbocharged</title>
		<link>http://www.fwaggle.org/blog/internet/premium-themes-turbocharged</link>
		<comments>http://www.fwaggle.org/blog/internet/premium-themes-turbocharged#comments</comments>
		<pubDate>Sat, 24 Apr 2010 01:21:06 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=818</guid>
		<description><![CDATA[As I wrote about earlier, I spent the better part of the last couple of days trying out various tricks to soup-up WordPress websites. One of the things I managed to do was re-imagine the thumbnailer common to a good portion of those &#8220;premium themes&#8221;, to allow it to serve mostly-static content instead of relying [...]]]></description>
			<content:encoded><![CDATA[<p>As I wrote about earlier, I spent the better part of the last couple of days trying out various tricks to soup-up WordPress websites. One of the things I managed to do was re-imagine the thumbnailer common to a good portion of those &#8220;premium themes&#8221;, to allow it to serve mostly-static content instead of relying on PHP all the time.</p>
<p>The results are pretty freakin&#8217; awesome &#8211; based on some rough benchmarks I&#8217;m expecting somewhere between ten to fifty times as much users during load when it&#8217;s teamed up with nginx.</p>
<p>Of course it has some serious caveats, not entirely unlike the <a class="pu2b" href="http://sideeffectsofdietpills.net/">side effects of diet pills</a> (pooing out fatty jelly isn&#8217;t entirely out of the question) and it&#8217;s rather annoying to have to edit your theme every time you want to change your look&#8230; but I think the results are worth it.</p>
<p>I&#8217;ve released the instructions for <a href="http://www.hungryhacker.com/sw/super-caching-with-timthumb/">Super-caching TimThumb</a> on Hungry Hacker, it&#8217;d be awesome if it were somehow rolled into the main script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/premium-themes-turbocharged/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx &#8211; I think I&#8217;m in love!</title>
		<link>http://www.fwaggle.org/blog/internet/nginx-i-think-im-in-love</link>
		<comments>http://www.fwaggle.org/blog/internet/nginx-i-think-im-in-love#comments</comments>
		<pubDate>Fri, 23 Apr 2010 06:17:48 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=816</guid>
		<description><![CDATA[Well, it&#8217;s no secret to anyone reading my blog that we&#8217;ve been experimenting with building dig-proof sites. Today, those experiments took a huge leap forward. It&#8217;s probably also no secret that I&#8217;m a bit of an Apache fanboy &#8211; I&#8217;ve been using it for well over a decade now, and I&#8217;m a little reluctant to [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s no secret to anyone reading my blog that we&#8217;ve been experimenting with building dig-proof sites. Today, those experiments took a huge leap forward. It&#8217;s probably also no secret that I&#8217;m a bit of an Apache fanboy &#8211; I&#8217;ve been using it for well over a decade now, and I&#8217;m a little reluctant to let go of it.</p>
<p>However, Apache has to take a back seat for some of our sites now (at the time of writing, Hungry Hacker is the only one) as we&#8217;re giving nginx a test drive. The preliminary results are stunning &#8211; <em>absolutely stunning</em>.</p>
<p>At first I wasn&#8217;t convinced, because on my little home test server (a celeron with measly amounts of RAM) it appeared like both Apache (event MPM, tons of modules removed, all kinds of speed hacks) and nginx (out of the box from ports) both appeared to run out of steam around the same time.</p>
<p>A short time later I realized that while the benchmarks on both machines appeared to choke up around the same place, the box was a whole lot more responsive with nginx under siege. While Apache was able to keep up with nginx (something to the tune of 2-4% behind it), the shell on the machine was pretty unstable during it.</p>
<p>So I decided to give it a shot on a live server, with a live site (hungry hacker), considering there&#8217;s very little involved in building nginx at all. With a bit of config-fudging, I managed to build a reverse proxy out of nginx for dynamic pages, with super-cached pages being served directly via nginx. The results are like night and day (it should be stressed these are non-keepalive requests):</p>
<p>Apache: <strong>684.73</strong> [#/sec] (mean)<br />
nginx+Apache: <strong>10027.18</strong> [#/sec] (mean)</p>
<p>Without gzip enabled (I&#8217;m working on some nginx-config-fu to selectively serve pre-compressed super-cache files to browsers that&#8217;ll accept it, so far without much success), the ~10,027 requests/second resulted an almost-saturated gig-e port.</p>
<p>If we can pre-cache the text-based data (average savings of ~65% or so on Hungry Hacker), I&#8217;m pretty optimistic we can host absolutely surge-proof WordPress sites.</p>
<p>Akismet&#8217;s still proving itself useful, blocking a ton of shit like <a class="pu2b" href="http://www.lipofuzeconsumerreviews.net/">lipofuze review</a>s and other diet pill crap along with the usual suspects of &#8220;I really enjoyed your blog! I will check back often&#8221; on what&#8217;s usually the most boring page on the site. The real irony was that a good proportion of the spam is aimed at <a href="http://www.hungryhacker.com/sw/hitting-back-at-spammers-with-openbsd-and-spamd/">Strykar&#8217;s article on screwing over spammers</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/nginx-i-think-im-in-love/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More WordPress gripes :(</title>
		<link>http://www.fwaggle.org/blog/internet/more-wordpress-gripes</link>
		<comments>http://www.fwaggle.org/blog/internet/more-wordpress-gripes#comments</comments>
		<pubDate>Mon, 19 Apr 2010 21:53:49 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=814</guid>
		<description><![CDATA[We&#8217;ve been hacking a lot on WordPress lately, spread out over various sites&#8230; and I really have to wonder who made some of the design decisions or if, like most of the PHP I (and a good portion of the world) write, some parts of it were never designed and were instead grown. The result [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been hacking a <em>lot</em> on <a href="http://www.wordpress.org/">WordPress</a> lately, spread out over various sites&#8230; and I really have to wonder who made some of the design decisions or if, like most of the PHP I (and a good portion of the world) write, some parts of it were never designed and were instead <em>grown</em>. The result is some really idiotic default behavior for which there&#8217;s no easy workaround when you want to do something remotely out of the norm.</p>
<p>Take, for example, <a href="http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure">using category stubs as part of your perma-link URLs</a>. A good many advanced themes have &#8220;meta categories&#8221; &#8211; <a href="http://michaelhutagalung.com/2008/05/arthemia-magazine-blog-wordpress-theme-released/">Arthemia</a>, for example, which we&#8217;ve hacked up for <a href="http://www.hungryhacker.com/">Hungry Hackers</a>, has two: &#8220;headline&#8221; of which the latest post is shown up the top left, and &#8220;featured&#8221; of which several are shown on the top right.</p>
<p>It stands to reason you&#8217;re going to add these categories first, and then as your site develops you&#8217;ll be adding more later on. Well, when constructing a perma-link URL for a post, if you&#8217;re using /%category%/%postname%/, the <em>lowest</em> ID category is chosen for the &#8220;main&#8221; category, whose stub will be used to craft the perma-link &#8211; and there doesn&#8217;t appear to be any way to change that.</p>
<p>Sure you could make all your categories first, and then the &#8220;meta&#8221; ones later &#8211; but what happens later on when you want to add another category to an established site? Nightmare category juggling, or having featured articles having the URL /featured/some-great-article/. The worst part is, if an article is in two categories and you try to access it via the stub of a different one, it 404s. So at some point you have a really popular featured article, it gets a shitload of back-links, then you move it out of the &#8220;featured&#8221; group for some reason &#8211; all those back-links are useless. They 404.</p>
<p>Even if you&#8217;re not using any &#8220;meta&#8221; categories, in my opinion this is still silly behavior. It stands to reason that in most sites that grow in a sane way, the highest IDed category is going to be the most significantly relevant category. Think about it, your site is small and you start out writing about Flowers, putting all your articles in &#8220;/flowers/&#8221;. Later on, you add two new categories for &#8220;indoor&#8221; and &#8220;outdoor&#8221; &#8211; it&#8217;d make more sense for the URL to be based off the more specific category&#8230; except of course you have that whole 404 thing going on if you so much as move a post to another category.</p>
<p>I started out hacking on the WP-core, it&#8217;s simply a matter of swapping two comparison operators in _usort_terms_by_ID() and the highest ID category&#8217;s selected. Of course this might break shit in future, and would cause a ton of URLs to 404 if I update the WordPress core at some point and neglect to re-hack the change. But it&#8217;s really quite an easy hack in wp-includes/category-template.php (swap the underlined operators):</p>
<p><code>function _usort_terms_by_ID( $a, $b ) {<br />
if ( $a-&gt;term_id <span style="text-decoration: underline;">&gt;</span> $b-&gt;term_id )<br />
return 1;<br />
elseif ( $a-&gt;term_id <span style="text-decoration: underline;">&lt;</span> $b-&gt;term_id )</code></p>
<p>I reverted that though, because I didn&#8217;t want to have to remember to do it with every WP patch. The very first &#8220;<a class="pu2b" href="http://www.weightlosspill-s.net/">click here</a> to update&#8221; notice could spell a whole lot of un-indexed content in search engines&#8230;</p>
<p>In the end, I ended up just re-numbering my meta categories to 999 and 1000, and hoping I don&#8217;t ever create 999 categories to cause a conflict. It was simply a matter of removing all posts from those categories, then editing the SQL database tables.</p>
<p>Update the term_ids in wp_terms and make them match in wp_term_taxonomy, and you&#8217;re good to go. That is, until such a time as you end up making your 999th category, so perhaps I should have selected a number just a little higher? ;D</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/more-wordpress-gripes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ARGH WordPress! ;(</title>
		<link>http://www.fwaggle.org/blog/internet/argh-wordpress</link>
		<comments>http://www.fwaggle.org/blog/internet/argh-wordpress#comments</comments>
		<pubDate>Sun, 18 Apr 2010 22:24:05 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=812</guid>
		<description><![CDATA[Maybe someone else can explain why this is such a fantastic idea &#8211; for Hungry Hacker, I wanted to have the page title before the site title, and I wanted it separated by a hyphen. Doesn&#8217;t seem too hard to do, wp_title() accepts a few arguments just perfect for the purpose. So I reverse the [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe someone else can explain why this is such a fantastic idea &#8211;  for Hungry Hacker, I wanted to have the page title before the site  title, and I wanted it separated by a hyphen. Doesn&#8217;t seem too hard to  do, <a href="http://codex.wordpress.org/Template_Tags/wp_title">wp_title()</a> accepts a few arguments just perfect for the purpose.</p>
<p>So I reverse  the two tags, and change wp_title() to wp_title(&#8216;-&#8217;, 1, &#8216;right&#8217;), which  puts the separator on the right hand side instead of the left. Awesome!</p>
<p>Wait,  something&#8217;s not quite right &#8211; the dash is a little longer than the one  before &#8220;Mozilla Firefox&#8221;. I go to check another page &#8211; Google&#8217;s  Webmaster Tools &#8211; and they&#8217;re using a plain ol&#8217; hyphen and it looks the  same. What the fuck is this? I check the source of my rendered WP blog,  and it&#8217;s not a hyphen at all.</p>
<p>For some reason, if you set  wp_title&#8217;s &#8220;sep&#8221; parameter to &#8216;-&#8217;, it arbitrarily changes it to an &#8220;en  dash&#8221; (<em>&amp;ndash;</em> or a dash the width of an &#8220;n&#8221;). Considering that the  default is <em>&amp;raquo;</em>, I can&#8217;t for the life of me figure out who the  hell thought this would be a good idea.</p>
<p>Can someone explain it to me? If I meant to have an <em>&amp;ndash;</em>, I&#8217;d  have put one!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/argh-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hungry Hacker Paintball</title>
		<link>http://www.fwaggle.org/blog/internet/hungry-hacker-paintball</link>
		<comments>http://www.fwaggle.org/blog/internet/hungry-hacker-paintball#comments</comments>
		<pubDate>Sun, 18 Apr 2010 00:08:43 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.fwaggle.org/blog/?p=810</guid>
		<description><![CDATA[Since we&#8217;re hopefully going to be playing more than one or two games this summer, I started taking inventory of what&#8217;s required to get my paintball gun in tip-top working condition. Since I was doing that, I decided to take the various parts of my old paintball pages from Hungry Hacker and update them to [...]]]></description>
			<content:encoded><![CDATA[<p>Since we&#8217;re hopefully going to be playing more than one or two games this summer, I started taking inventory of what&#8217;s required to get my paintball gun in tip-top working condition.</p>
<p>Since I was doing that, I decided to take the various parts of my old paintball pages from Hungry Hacker and update them to put on the new site. We decided to make a whole knew section for Paintball, and since OtterSC Customs&#8217; domain has expired, I&#8217;m also going to be putting together somewhat of a &#8220;<a href="http://www.hungryhacker.com/paintball/">Spyder Bible</a>&#8221; since I can&#8217;t really see too much in the way of sites like that at the moment.</p>
<p>It&#8217;s funny to see the neighbours&#8217; reactions when I go out and test-fire our paintguns in the back yard. Especially the welfare trash across the street (though to be fair, some of them are stuck on <a href="http://www.allsup.com/" class="pu2b">social security disability</a>, hopefully for good reason) &#8211; those jerks always glare at us for no reason. <img src='http://www.fwaggle.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fwaggle.org/blog/internet/hungry-hacker-paintball/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
