<?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; Work</title>
	<atom:link href="http://jamesoff.net/site/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesoff.net/site</link>
	<description>you heard</description>
	<lastBuildDate>Thu, 01 Sep 2011 17:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Risk Disk and Squid</title>
		<link>http://jamesoff.net/site/2008/09/10/risk-disk-and-squid/</link>
		<comments>http://jamesoff.net/site/2008/09/10/risk-disk-and-squid/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 15:06:18 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[riskdisk]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/?p=357</guid>
		<description><![CDATA[We use RiskDisk at work to see if a company we&#8217;re going to do business with is trustworthy, but recently it was complaining HTTP Error 417: Expectation Failed when it tried to do any online lookups. I tracked this down to it sending Expect: 100-continue in the headers of the request it sent to its [...]]]></description>
			<content:encoded><![CDATA[<p>We use <a href="http://www.riskdisk.com/">RiskDisk</a> at work to see if a company we&#8217;re going to do business with is trustworthy, but recently it was complaining <code>HTTP Error 417: Expectation Failed</code> when it tried to do any online lookups.</p>

<p>I tracked this down to it sending <code>Expect: 100-continue</code> in the headers of the request it sent to its server. However, it was going via our web proxy at work, which is <a href="http://www.squid-cache.org/">Squid</a>. Recently I upgraded Squid to 2.7, and this seems to be the cause of the problems. Squid 2.7 is less forgiving about that particular header (which is apparently an RFC violation on the part of the client).</p>

<p>It&#8217;s easily fixed by adding <code>ignore_expect_100 on</code> to your Squid configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2008/09/10/risk-disk-and-squid/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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>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> JKDEFRAG=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> JKDEFRAGOPTS=-a 3
<span style="color: #808080; font-style: italic;">
REM Process we don't want running</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> AVOID=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> <span style="color: #33cc33;">&gt;</span> <span style="color: #0000ff; font-weight: bold;">NUL</span> 2<span style="color: #33cc33;">&gt;</span> <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> == 0 <span style="color: #00b100; font-weight: bold;">goto</span> skip
<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> end
&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>Murdering dogs</title>
		<link>http://jamesoff.net/site/2007/04/16/murdering-dogs/</link>
		<comments>http://jamesoff.net/site/2007/04/16/murdering-dogs/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 10:25:10 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/04/16/murdering-dogs/</guid>
		<description><![CDATA[I&#8217;ve been having some problems with the &#8220;Search Assistant&#8221; (the stupid dog thing in Explorer on Windows XP when you use the Find thingy) at work. For some reason recently opening the search sidebar results in Explorer crashing with a Data Execution Prevention error. Disabling the DEP stuff for explorer.exe just results in a regular [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having some problems with the &#8220;Search Assistant&#8221; (the stupid dog thing in Explorer on Windows XP when you use the Find thingy) at work. For some reason recently opening the search sidebar results in Explorer crashing with a Data Execution Prevention error. Disabling the DEP stuff for explorer.exe just results in a regular crash. Alas, to disable the dog thing you need to be able to open the search panel&#8230; or just stick this in your registry.</p>


<div class="wp_syntax"><div class="code"><pre class="reg" style="font-family:monospace;"><span style="color: #000000;">&#91;</span><span style="color: #800000;">HKEY_CURRENT_USER</span>\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState<span style="color: #000000;">&#93;</span>
&nbsp;
<span style="color: #0000FF;">&quot;FullPathAddress&quot;</span><span style="color: #000000;">=</span><span style="color: #0000FF;">dword:00000001</span>
<span style="color: #0000FF;">&quot;Use Search Asst&quot;</span><span style="color: #000000;">=</span><span style="">&quot;no&quot;</span></pre></div></div>


<p>Log off and back on again and the dog has been slaughtered.</p>

<p>Stupid yapping thing.  :fuckoff:</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/04/16/murdering-dogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting localparts in Exchange Recipient Policies</title>
		<link>http://jamesoff.net/site/2007/01/29/setting-localparts-in-exchange-recipient-policies/</link>
		<comments>http://jamesoff.net/site/2007/01/29/setting-localparts-in-exchange-recipient-policies/#comments</comments>
		<pubDate>Mon, 29 Jan 2007 09:05:41 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Exim and email]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/01/29/setting-localparts-in-exchange-recipient-policies/</guid>
		<description><![CDATA[It&#8217;s taken me too long to find this. (For the uninitiated, Exchange Recipient Policies tell Active Directory how to automatically generate email addresses for your users.) If you want to tell a recipient policy in Exchange 2003 (and presumably 2007) how to generate the localpart other then just username, use these expanos: %s : Surname [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s taken me too long to find this.</p>

<p>(For the uninitiated, Exchange Recipient Policies tell Active Directory how to automatically generate email addresses for your users.)</p>

<p>If you want to tell a recipient policy in Exchange 2003 (and presumably 2007) how to generate the localpart other then just <code>username</code>, use these expanos:</p>

<blockquote>
  <p>%s : Surname (last name)</p>
  
  <p>%g : Given name (first name)</p>
  
  <p>%i : Middle initial</p>
  
  <p>%d : Display name</p>
  
  <p>%m : Exchange 2003 alias</p>
  
  <p>%rxy : Replace all subsequent characters x with character y in username. If x = y, the character will be deleted.</p>
</blockquote>

<p>There are other things you can do like chopping the string to a certain number of characters, see the full article for details.</p>

<p>No longer will I have to manually add <code>first.last@domain.com</code> to every user I create :D</p>

<p><a href="http://support.microsoft.com/Default.aspx?kbid=822447">http://support.microsoft.com/Default.aspx?kbid=822447</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/01/29/setting-localparts-in-exchange-recipient-policies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorry, what?</title>
		<link>http://jamesoff.net/site/2006/12/19/sorry-what/</link>
		<comments>http://jamesoff.net/site/2006/12/19/sorry-what/#comments</comments>
		<pubDate>Tue, 19 Dec 2006 14:52:19 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/12/19/sorry-what/</guid>
		<description><![CDATA[The disc is created. Remove the disc and label it &#8220;VGN-SZ3VMP_X Application Recovery Disc&#8221; That&#8217;s easy for you to say, Sony.]]></description>
			<content:encoded><![CDATA[<blockquote>
  <p>The disc is created.</p>
  
  <p>Remove the disc and label it</p>
  
  <p>&#8220;VGN-SZ3VMP_X Application Recovery Disc&#8221;</p>
</blockquote>

<p>That&#8217;s easy for you to say, Sony.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/12/19/sorry-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quite telling</title>
		<link>http://jamesoff.net/site/2006/12/05/quite-telling/</link>
		<comments>http://jamesoff.net/site/2006/12/05/quite-telling/#comments</comments>
		<pubDate>Tue, 05 Dec 2006 10:57:40 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/12/05/quite-telling/</guid>
		<description><![CDATA[In the kitchen at work, a box has appeared with a riddle on it, inviting people to submit their answers for a prize draw. What is brown, has a head and a tail but no legs? The girls agree it&#8217;s a one or two pence coin. The consensus among the boys seems to be that [...]]]></description>
			<content:encoded><![CDATA[<p>In the kitchen at work, a box has appeared with a riddle on it, inviting people to submit their answers for a prize draw.</p>

<blockquote>
  <p>What is brown, has a head and a tail but no legs?</p>
</blockquote>

<p>The girls agree it&#8217;s a one or two pence coin.</p>

<p>The consensus among the boys seems to be that it&#8217;s a turd.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/12/05/quite-telling/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>APC features</title>
		<link>http://jamesoff.net/site/2006/10/10/apc-features/</link>
		<comments>http://jamesoff.net/site/2006/10/10/apc-features/#comments</comments>
		<pubDate>Tue, 10 Oct 2006 13:39:16 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[internets]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/10/10/apc-features/</guid>
		<description><![CDATA[While rummaging around the APC site to find information on Uninterruptible Power Supplies, I noted that one of the features was &#8220;ERROR: No Translation Found&#8221;: I&#8217;m not sure if an error is a feature I do or don&#8217;t want, to be honest.]]></description>
			<content:encoded><![CDATA[<p>While rummaging around the APC site to find information on Uninterruptible Power Supplies, I noted that one of the features was &#8220;ERROR: No Translation Found&#8221;:</p>

<p><img id="image255" src="http://blog.jamesoff.net/wp-content/uploads/2006/10/apc.png" alt="apc.png" /></p>

<p>I&#8217;m not sure if an error is a feature I do or don&#8217;t want, to be honest.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/10/10/apc-features/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Small World</title>
		<link>http://jamesoff.net/site/2006/09/06/small-world/</link>
		<comments>http://jamesoff.net/site/2006/09/06/small-world/#comments</comments>
		<pubDate>Wed, 06 Sep 2006 21:49:04 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/09/06/small-world/</guid>
		<description><![CDATA[While chatting with my new boss at lunchtime the other day, she said that her favourite restaurant was in Tring, which I mentioned was near where I came from. When I said I came from Aylesbury (because most people have heard of that) she said Oh, I went to school in Aylesbury &#8220;Me too!&#8221; I [...]]]></description>
			<content:encoded><![CDATA[<p>While chatting with my new boss at lunchtime the other day, she said that her favourite restaurant was in Tring, which I mentioned was near where I came from. When I said I came from Aylesbury (because most people have heard of that) she said</p>

<blockquote>
  <p>Oh, I went to school in Aylesbury</p>
</blockquote>

<p>&#8220;Me too!&#8221; I replied, &#8220;Which school did you go to?&#8221;</p>

<blockquote>
  <p><a href="http://en.wikipedia.org/wiki/Aylesbury_Grammar_School">Aylesbury Grammar</a></p>
</blockquote>

<p>:fry: This might seem a little odd since AGS is an all-boys school, and Viv isn&#8217;t any boy at all. However, all is explained by the fact that she started there <em>before</em> the girls split off and formed <a href="http://en.wikipedia.org/wiki/Aylesbury_High_School">Aylesbury High</a> over the road.</p>

<p>It&#8217;s a small world after all.</p>

<p>(That last line was added especially for simsea.)</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/09/06/small-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

