<?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>jamesoff.net &#187; Coding</title>
	<atom:link href="http://jamesoff.net/site/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesoff.net/site</link>
	<description>you heard</description>
	<lastBuildDate>Wed, 16 Dec 2009 10:32:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Delphi documentation</title>
		<link>http://jamesoff.net/site/2008/04/11/delphi-documentation/</link>
		<comments>http://jamesoff.net/site/2008/04/11/delphi-documentation/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 11:43:26 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[delphi]]></category>
		<category><![CDATA[wtf]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/?p=352</guid>
		<description><![CDATA[While writing some Delphi code at work, I spotted this in the documentation. Not sure if I want to call that function or not now&#8230;]]></description>
			<content:encoded><![CDATA[<p>While writing some Delphi code at work, I spotted this in the documentation. Not sure if I want to call that function or not now&#8230;</p>

<p><a href='http://jamesoff.net/site/wp-content/uploads/2008/04/delphi.png'><img src="http://jamesoff.net/site/wp-content/uploads/2008/04/delphi.png" alt="" title="delphi documentation" width="350" height="264" class="aligncenter size-full wp-image-353" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2008/04/11/delphi-documentation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Irssi typing speed script</title>
		<link>http://jamesoff.net/site/2008/04/10/irssi-typing-speed-script/</link>
		<comments>http://jamesoff.net/site/2008/04/10/irssi-typing-speed-script/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 13:40:45 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[my stuff]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[irssi]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/?p=351</guid>
		<description><![CDATA[I have written an irssi script which measures how fast you type on IRC and reports both words per minute and characters per minute. More details and download: WPM script.]]></description>
			<content:encoded><![CDATA[<p>I have written an irssi script which measures how fast you type on IRC and reports both words per minute and characters per minute.</p>

<p>More details and download: <a href="/site/irssi-scripts/wpm/">WPM script</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2008/04/10/irssi-typing-speed-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BBC News Stylish script</title>
		<link>http://jamesoff.net/site/2008/04/01/bbc-news-stylish-script/</link>
		<comments>http://jamesoff.net/site/2008/04/01/bbc-news-stylish-script/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 10:02:13 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[internets]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[stylish]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/?p=341</guid>
		<description><![CDATA[The new BBC News layout seems to be causing some people to stress out a bit &#8211; but then all new redesigns do until they get used to them. I quite like it, but for a friend I knocked this up quickly to get rid of the two banners across the top of the page. [...]]]></description>
			<content:encoded><![CDATA[<p>The new <a href="http://news.bbc.co.uk">BBC News</a> layout seems to be causing some people to stress out a bit &#8211; but then all new redesigns do until they get used to them. I quite like it, but for a friend I knocked this up quickly to get rid of the two banners across the top of the page.</p>

<p>You&#8217;ll need <a href="http://userstyles.org/stylish/">Stylish</a> and then stick this in a userscript for it. You may need to adjust the domain (2nd line) if you don&#8217;t use <code>news.bbc.co.uk</code> to access the site.</p>

<p><span id="more-341"></span></p>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@namespace url(http://www.w3.org/1999/xhtml);</span>
&nbsp;
<span style="color: #a1a100;">@-moz-document domain(&quot;news.bbc.co.uk&quot;) {</span>
&nbsp;
<span style="color: #cc00cc;">#blq-displayoptions</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#blq-accessibility-help</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#blq-mast</span> <span style="color: #00AA00;">&#123;</span> 
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.newsbanner</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>


<p>The first block (<code>#blq-displayoptions</code> et al) is for the grey banner; the second block is for the red BBC News one.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2008/04/01/bbc-news-stylish-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GuardChan now bans</title>
		<link>http://jamesoff.net/site/2008/02/17/guardchan-now-bans/</link>
		<comments>http://jamesoff.net/site/2008/02/17/guardchan-now-bans/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 23:31:55 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[eggdrop]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2008/02/17/guardchan-now-bans/</guid>
		<description><![CDATA[After a user request on IRC, my guardchan script can now actually ban as well as kicking when it detects an unauthorised user joining the channel. (The page for the script incorrectly said that it kickbanned already, but that was an error due to me writing the script about a thousand years ago.) Hope it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>After a user request on IRC, my <a href="/site/code/eggdrop-scripts/guardchan">guardchan</a> script can now actually ban as well as kicking when it detects an unauthorised user joining the channel.</p>

<p>(The page for the script incorrectly said that it kickbanned already, but that was an error due to me writing the script about a thousand years ago.)</p>

<p>Hope it&#8217;s of some use :)</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2008/02/17/guardchan-now-bans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A productive day</title>
		<link>http://jamesoff.net/site/2007/10/28/a-productive-day/</link>
		<comments>http://jamesoff.net/site/2007/10/28/a-productive-day/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 22:52:46 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[my stuff]]></category>
		<category><![CDATA[bmotion]]></category>
		<category><![CDATA[ds]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/10/28/a-productive-day/</guid>
		<description><![CDATA[What a productive day (for a Sunday): Released bMotion 0.1.0 &#8211; only about 3 years after I planned on it originally. 0.1.0 is greatly improved over the previous version, and a few weeks ago I finally decided I should stop pointless tinkering with it and get a stable releasable version :) Finished Zelda: Phantom Hourglass [...]]]></description>
			<content:encoded><![CDATA[<p>What a productive day (for a Sunday):</p>

<ol>
<li><p>Released <a href="http://bmotion.net">bMotion 0.1.0</a> &#8211; only about 3 years after I planned on it originally. 0.1.0 is greatly improved over the previous version, and a few weeks ago I finally decided I should stop pointless tinkering with it and get a stable releasable version :)</p></li>
<li><p>Finished <a href="http://www.zelda.com/phantomhourglass/">Zelda: Phantom Hourglass</a> on the DS &#8211; mainly in celebration of releasing bMotion.</p></li>
<li><p>Started using my Simple Monitor project at home and on my colo, and it&#8217;s working well so far. The only problem was that both machines needed Python updating to support the native sqlite class. Once that was fixed, both worked fine and are now monitoring their services. Once I get some other features I&#8217;m planning on written in, I&#8217;ll release it for other people to try.</p></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/10/28/a-productive-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking for another process before starting JKDefrag</title>
		<link>http://jamesoff.net/site/2007/10/23/checking-for-another-process-before-starting-jkdefrag/</link>
		<comments>http://jamesoff.net/site/2007/10/23/checking-for-another-process-before-starting-jkdefrag/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 14:22:58 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/10/23/checking-for-another-process-before-starting-jkdefrag/</guid>
		<description><![CDATA[A user on the JKDefrag forum was asking about not running JKDefrag if another process is running (as they don&#8217;t play nice together), so I whipped this up. You&#8217;ll need PsList from SysInternals in your path somewhere. Change the three SET lines to point to jkdefrag, give the parameters you want to use, and the [...]]]></description>
			<content:encoded><![CDATA[<p>A user on the <a href="http://www.kessels.com/forum/viewtopic.php?t=695">JKDefrag forum</a> was asking about not running JKDefrag if another process is running (as they don&#8217;t play nice together), so I whipped this up.</p>

<p>You&#8217;ll need <a href="http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsList.mspx">PsList</a> from SysInternals in your path somewhere.</p>

<p>Change the three SET lines to point to jkdefrag, give the parameters you want to use, and the name of the program to avoid. (Get the name of the program from PsList.)</p>

<p>The &#8220;>2 NUL&#8221; sends stderr to NUL to avoid printing the PsList banner. It works on Vista, not sure about XP/2003. If it doesn&#8217;t just remove it and live with the PsList banner showing up.</p>

<p>Making this check for more than one process is an exercise for the reader. Also, you could use this with PsExec to check for the process on a remote host and then launch JKDefrag over there.</p>


<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> off
<span style="color: #808080; font-style: italic;">
REM Only run jkdefrag if another process is not running</span>
<span style="color: #808080; font-style: italic;">
REM Path to jkdefrag</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">JKDEFRAG</span>=c:\jkdefrag\jkdefrag.exe
<span style="color: #808080; font-style: italic;">
REM Options for jkdefrag</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">JKDEFRAGOPTS</span>=-a <span style="color: #cc66cc;">3</span>
<span style="color: #808080; font-style: italic;">
REM Process we don't want running</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> <span style="color: #448844;">AVOID</span>=explorer
<span style="color: #808080; font-style: italic;">
&nbsp;
REM Here we go!</span>
&nbsp;
pslist <span style="color: #33cc33;">%</span><span style="color: #448888;">AVOID</span><span style="color: #33cc33;">%</span> &gt; <span style="color: #0000ff; font-weight: bold;">NUL</span> <span style="color: #cc66cc;">2</span>&gt; <span style="color: #0000ff; font-weight: bold;">NUL</span>
<span style="color: #00b100; font-weight: bold;">if</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">ERRORLEVEL</span><span style="color: #33cc33;">%</span> == <span style="color: #cc66cc;">0</span> <span style="color: #00b100; font-weight: bold;">goto</span> <span style="color: #b100b1; font-weight: bold;">skip</span>
<span style="color: #808080; font-style: italic;">
REM If we made it here, pslist didn't find the process</span>
<span style="color: #b1b100; font-weight: bold;">echo</span> Couldn't find <span style="color: #33cc33;">%</span><span style="color: #448888;">AVOID</span><span style="color: #33cc33;">%</span> running, starting jkdefrag...
<span style="color: #33cc33;">%</span><span style="color: #448888;">JKDEFRAG</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">JKDEFRAGOPTS</span><span style="color: #33cc33;">%</span>
<span style="color: #00b100; font-weight: bold;">goto</span> <span style="color: #b100b1; font-weight: bold;">end</span>
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">skip</span>
<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">AVOID</span><span style="color: #33cc33;">%</span> is running, <span style="color: #000000; font-weight: bold;">not</span> running jkdefrag
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/10/23/checking-for-another-process-before-starting-jkdefrag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TASK: Shoot yourself in the foot</title>
		<link>http://jamesoff.net/site/2007/07/21/task-shoot-yourself-in-the-foot/</link>
		<comments>http://jamesoff.net/site/2007/07/21/task-shoot-yourself-in-the-foot/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 18:57:15 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/07/21/task-shoot-yourself-in-the-foot/</guid>
		<description><![CDATA[I found this online somewhere while I was working at Grey Matter, and I&#8217;ve had it printed out ever since. So I can recycle the hardcopy, I&#8217;m reproducing it here. Feel free to add your own contributions in the comments :) TASK: Shoot yourself in the foot C: You shoot yourself in the foot C++: [...]]]></description>
			<content:encoded><![CDATA[<p>I found this online somewhere while I was working at Grey Matter, and I&#8217;ve had it printed out ever since. So I can recycle the hardcopy, I&#8217;m reproducing it here. Feel free to add your own contributions in the comments :)</p>

<p><em>TASK: Shoot yourself in the foot</em></p>

<ul>
<li><p>C: You shoot yourself in the foot</p></li>
<li><p>C++: You accidentally create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can&#8217;t tell which are bitwise copies and which are just pointing at others and saying, &#8220;That&#8217;s me, over there.&#8221;</p></li>
<li><p>FORTRAN: You shoot yourself in each toe iteratively until you run out toes, then you read in the next foot and repeat. If you run out of bullets, you continue with the attempts to shoot yourself anyway because you have no exception-handling capability.</p></li>
<li><p>Pascal: The compiler won&#8217;t let you shoot yourself in the foot.</p></li>
<li><p>Ada: After correctly packing your foot, you attempt to concurrently load the gun, pull the trigger, scream, and shoot yourself in the foot. When you try, however, you discover you can&#8217;t because your foot is of the wrong type.</p></li>
<li><p>COBOL: Using a COLT 45 HANDGUN, AIM gun at LEG, THEN place ARM.HAND.FINGER on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to HOLSTER. CHECK whether SHOELACE needs to be RE-TIED.</p></li>
<li><p>LISP: You shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which &#8230;</p></li>
<li><p>FORTH: Foot in yourself shoot.</p></li>
<li><p>Prolog: You tell your program that you want to be shot in the foot. The program figures out how to do it, but the syntax doesn&#8217;t permit it to explain it to you.</p></li>
<li><p>BASIC: Shoot yourself in the foot with a water pistol. On large systems, continue until entire lower body is waterlogged.</p></li>
<li><p>Visual Basic: You&#8217;ll only appear to have shot yourself in the foot, but you&#8217;ll have had so much fun doing it that you won&#8217;t care.</p></li>
<li><p>HyperTalk: Put the first bullet of the gun into foot left of log of you. Answer the result.</p></li>
<li><p>Motif: You spend days writing a UIL description of your foot, the bullet, its trajectory, and the intricate scrollwork on the ivory handles of the gun. When you finally get around to pulling the trigger, the gun jams.</p></li>
<li><p>APL: You shoot yourself in the foot, then spend all day figuring out how to do it in fewer characters.</p></li>
<li><p>SNOBOL: If you succeed, shoot yourself in the left foot. If you fail, shoot yourself in the right foot.</p></li>
<li><p>Concurrent Euclid: You shoot yourself in somebody else&#8217;s foot.</p></li>
<li><p>370 JCL: You send your foot down to MIS and include a 400-page document explaining exactly how you want it to be shot. Three years later, your foot comes back deep fried.</p></li>
<li><p>Paradox: Not only can you shoot yourself in the foot, but your users can too.</p></li>
<li><p>Access: You try to point the gun at your foot, but it shoots holes in all your Borland distributions diskettes instead.</p></li>
<li><p>Revelation: You&#8217;re sure you&#8217;re going to be able to shoot yourself in the foot, just as soon as you figure out what all these nifty little bullet thingies are for.</p></li>
<li><p>Assembler: You try to shoot yourself in the foot, only to discover you must first invent the gun, the bullet, the trigger, and your foot.</p></li>
<li><p>Modula2: After realising that you can&#8217;t actually accomplish anything in this language, you shoot yourself in the head.</p></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/07/21/task-shoot-yourself-in-the-foot/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Testing posting from Vimpress</title>
		<link>http://jamesoff.net/site/2007/07/16/testing-posting-from-vimpress/</link>
		<comments>http://jamesoff.net/site/2007/07/16/testing-posting-from-vimpress/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 10:27:50 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[internets]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/07/16/testing-posting-from-vimpress/</guid>
		<description><![CDATA[Is this thing on? It looks like I can post from vim, but there&#8217;s something in one of my posts that makes Python&#8217;s xmlrpc library burst into tears and I can&#8217;t view a list of my posts :(]]></description>
			<content:encoded><![CDATA[<p>Is this thing on?</p>

<p>It looks like I can post from vim, but there&#8217;s something in one of my posts that makes Python&#8217;s xmlrpc library burst into tears and I can&#8217;t view a list of my posts :(</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/07/16/testing-posting-from-vimpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>windowtidy for irssi</title>
		<link>http://jamesoff.net/site/2007/04/26/windowtidy-for-irssi/</link>
		<comments>http://jamesoff.net/site/2007/04/26/windowtidy-for-irssi/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 11:11:37 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[internets]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/04/26/windowtidy-for-irssi/</guid>
		<description><![CDATA[Finally got around to writing a script for irssi which closes all empty windows. It&#8217;s over here]]></description>
			<content:encoded><![CDATA[<p>Finally got around to writing a script for irssi which closes all empty windows.</p>

<p><a href="http://jamesoff.net/site/projects/irssi-scripts/windowtidy/">It&#8217;s over here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/04/26/windowtidy-for-irssi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reformatting SomethingAwful forums</title>
		<link>http://jamesoff.net/site/2007/02/24/reformatting-somethingawful-forums/</link>
		<comments>http://jamesoff.net/site/2007/02/24/reformatting-somethingawful-forums/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 20:00:28 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[internets]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/02/24/reformatting-somethingawful-forums/</guid>
		<description><![CDATA[I&#8217;ve just found the Stylish extension for Firefox, which is to CSS what Greasemonkey is to JavaScript, or something. It lets you define CSS snippets for pages. Admitted what can be done with this can be done by hacking up your userContent.css file but this makes it so much easier. Go see userstyles.org for an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just found the <a href="https://addons.mozilla.org/firefox/2108/">Stylish</a> extension for Firefox, which is to CSS what Greasemonkey is to JavaScript, or something. It lets you define CSS snippets for pages. Admitted what can be done with this can be done by hacking up your userContent.css file but this makes it so much easier.</p>

<p>Go see <a href="http://userstyles.org">userstyles.org</a> for an index of snippets you can download. Meanwhile, I present my own one for the SomethingAwful forums. It does the following:</p>

<ul>
<li>Highlights the thread row under the mouse on a forum page</li>
<li>Moves the &#8220;somenick fucked around with this page&#8221; text off to the right and makes it less intrusive</li>
<li>Moves the paginator from the bottom of the page to be hovering bottom right at all times; semi-transparent mostly but opaque when moused over. This works on both forum views and reading a thread.</li>
<li>Hides the post buttons (edit/quote/report) except for the post your mouse is over.</li>
</ul>

<p>BEHOLD!</p>

<p><img src='http://blog.jamesoff.net/wp-content/uploads/2007/02/snapshot8.png' alt='snapshot8.png' /></p>

<p><img src='http://blog.jamesoff.net/wp-content/uploads/2007/02/snapshot9.png' alt='snapshot9.png' /></p>

<p>To install, create a new blank style in Stylish and dump this into it:</p>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@namespace url(http://www.w3.org/1999/xhtml);</span>
&nbsp;
<span style="color: #a1a100;">@-moz-document domain(&quot;forums.somethingawful.com&quot;) {</span>
&nbsp;
	tr<span style="color: #6666ff;">.thread</span><span style="color: #3333ff;">:hover </span>td <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff7df</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.postbody</span> <span style="color: #6666ff;">.mainbodytextsmall</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span> !important<span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#555</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	div<span style="color: #00AA00;">&#91;</span>class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;pages bottom&quot;</span><span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">fixed</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff7df</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
		-moz-opacity<span style="color: #00AA00;">:</span> .50<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	div<span style="color: #00AA00;">&#91;</span>class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;pages bottom&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
		-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	table<span style="color: #00AA00;">&#91;</span>class~<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #00AA00;">&#93;</span> <span style="color: #6666ff;">.postbuttons</span> <span style="color: #00AA00;">&#123;</span>
		-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	table<span style="color: #00AA00;">&#91;</span>class~<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #00AA00;">&#93;</span><span style="color: #3333ff;">:hover </span><span style="color: #6666ff;">.postbuttons</span> <span style="color: #00AA00;">&#123;</span>
		-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/02/24/reformatting-somethingawful-forums/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
