<?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>Mr Chimp Learns to Write</title>
	<atom:link href="http://www.deviouschimp.co.uk/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.deviouschimp.co.uk/blog</link>
	<description>&#34;This website is my breathing in, rattling great layout and perfect content material .&#34; -A Spambot.</description>
	<lastBuildDate>Mon, 30 Apr 2012 20:07:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Pun</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=646</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=646#comments</comments>
		<pubDate>Mon, 30 Apr 2012 20:07:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=646</guid>
		<description><![CDATA[I was looking around the countryside on Google Maps. There&#8217;s little there.]]></description>
			<content:encoded><![CDATA[<p>I was looking around the countryside on Google Maps. There&#8217;s little there.</p>
<p><a href="http://www.deviouschimp.co.uk/blog/wp-content/uploads/2012/04/little.png"><img src="http://www.deviouschimp.co.uk/blog/wp-content/uploads/2012/04/little.png" alt="" title="little" width="400" height="300" class="alignnone size-full wp-image-647" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=646</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mr Chimp&#8217;s First Law of Slashdot</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=642</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=642#comments</comments>
		<pubDate>Mon, 02 Apr 2012 17:51:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blogroll]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=642</guid>
		<description><![CDATA[If the title of an article on slashdot.org is a question then, unless grammatically incorrect*, it can be answered with some variation of &#8220;no&#8221;, i.e. &#8220;no, not yet&#8221; or &#8220;no, not necessarily&#8221;. For example: Does Higher Health Care Spending Lead To Better Patient Outcome? Do E-Readers Spell the Demise Of Traditional Schooling? *(i.e. Does not [...]]]></description>
			<content:encoded><![CDATA[<p>If the title of an article on slashdot.org is a question then, unless grammatically incorrect*, it can be answered with some variation of &#8220;no&#8221;, i.e. &#8220;no, not yet&#8221; or &#8220;no, not necessarily&#8221;.</p>
<p>For example:<br />
<a href="http://science.slashdot.org/story/12/04/02/1551203/does-higher-health-care-spending-lead-to-better-patient-outcomes?utm_source=feedburnerGoogle+Reader&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+Slashdot%2Fslashdot+%28Slashdot%29&#038;utm_content=Google+Reader">Does Higher Health Care Spending Lead To Better Patient Outcome?</a><br />
<a href="http://news.slashdot.org/story/11/12/27/0329234/do-e-readers-spell-the-demise-of-traditional-schooling">Do E-Readers Spell the Demise Of Traditional Schooling?</a></p>
<p>*(i.e. Does not apply to &#8220;Ask Slashdot&#8221; posts such as &#8220;what is the best&#8230;&#8221;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=642</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MapBasic Directories and Paths</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=636</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=636#comments</comments>
		<pubDate>Wed, 28 Mar 2012 15:25:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MapBasic]]></category>
		<category><![CDATA[Mapping]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=636</guid>
		<description><![CDATA[MapBasic provides a few functions for getting part of a path. Here&#8217;s how you use them to do some common things with the output as comments:]]></description>
			<content:encoded><![CDATA[<p>MapBasic provides a few functions for getting part of a path. Here&#8217;s how you use them to do some common things with the output as comments:</p>
<pre class="brush: vb; title: ; notranslate">
Open Table &quot;C:\folder\file.tab&quot; as MyTable

Dim path as string
path = TableInfo(MyTable, TAB_INFO_TABFILE) ' C:\folder\file.tab

print PathToFileName$(path) ' file.tab
print PathToDirectory$(path) ' C:\folder\
print PathToTableName$(path) ' file
print TempFileName$(&quot;&quot;) ' C:\Users\MrChimp\AppData\Local\Temp\MIPRO\MapInfo.Application_1900\~MAP0004.TMP
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=636</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Language</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=634</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=634#comments</comments>
		<pubDate>Mon, 26 Mar 2012 12:00:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=634</guid>
		<description><![CDATA[68.54% of visitors to this site are located in the United Kingdom. 75.28% of users have their language set to EN-US. So either a lot of you have your computer&#8217;s language set wrong or there is a disproportionate amount of American visitors living in the UK.]]></description>
			<content:encoded><![CDATA[<p>68.54% of visitors to this site are located in the United Kingdom. </p>
<p>75.28% of users have their language set to EN-US.</p>
<p>So either a lot of you have your computer&#8217;s language set wrong or there is a disproportionate amount of American visitors living in the UK.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=634</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;For each record in table&#8221; and Layer Numbers</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=626</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=626#comments</comments>
		<pubDate>Wed, 14 Mar 2012 15:04:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MapBasic]]></category>
		<category><![CDATA[Mapping]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=626</guid>
		<description><![CDATA[For each record in table Sometimes in MapInfo/MapBasic you want to do something to each record in a table in turn. If you&#8217;re anything like me you don&#8217;t have to it very often so when it comes to doing it you&#8217;ve forgotten how you did it the last time. There are a number of ways [...]]]></description>
			<content:encoded><![CDATA[<p><strong>For each record in table</strong></p>
<p>Sometimes in MapInfo/MapBasic you want to do something to each record in a table in turn. If you&#8217;re anything like me you don&#8217;t have to it very often so when it comes to doing it you&#8217;ve forgotten how you did it the last time. There are a number of ways to do this depending on your situation but here&#8217;s a simple method using a Do While loop. You may require a different method, for example if you are using a progress bar. I&#8217;ll try and include some other methods at some point.</p>
<p><strong>Do While loop method</strong></p>
<pre class="brush: vb; title: ; notranslate">
Fetch First From MyTable

Do While Not EOT(MyTable)
  Print MyTable.Col1
  Fetch Next From MyTable
Loop
</pre>
<p><strong>Getting a layer number</strong></p>
<p>Each layer in a MapInfo mapper window has a layer number. This is to identify individual layers in a mapper and is different from the table&#8217;s ID number. Here is a function to get the layer number from a given layer name and window number. The FrontWindow() part is just an example of how to get a window ID and call the function.</p>
<pre class="brush: vb; title: ; notranslate">
Function GetLayerNum(ByVal LayerName as String, ByVal WindowNum as Integer)
  For i = 1 To Numlayers
    If WindowInfo(WindowNum, WIN_INFO_NAME) = LayerName Then
      GetlayerNum = x
      Exit Function
    End If
  Next
End Function

Dim layer_num as Integer
GetLayerNum(&quot;MyTableName&quot;, FrontWindow())
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=626</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pointless Batch File Exercise</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=622</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=622#comments</comments>
		<pubDate>Wed, 25 Jan 2012 17:29:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=622</guid>
		<description><![CDATA[Create a new text file. Name it &#8220;implode.bat&#8221;. Open it in a text editor. Type the following: DEL "%~f0" Save the file and close your text editor. Locate the file in your browser. Double click on it. Haha! Now you&#8217;ll have to start again. Sucker.]]></description>
			<content:encoded><![CDATA[<p>Create a new text file.</p>
<p>Name it &#8220;implode.bat&#8221;.</p>
<p>Open it in a text editor.</p>
<p>Type the following:</p>
<p><code>DEL "%~f0"</code></p>
<p>Save the file and close your text editor.</p>
<p>Locate the file in your browser.</p>
<p>Double click on it.</p>
<p>Haha! Now you&#8217;ll have to start again. Sucker.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=622</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Tools for the Indecisive TV Viewer</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=614</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=614#comments</comments>
		<pubDate>Mon, 23 Jan 2012 10:09:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Chimpcom]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=614</guid>
		<description><![CDATA[More news from Chimpcom. Not long ago I added the reddwarf command which displayed the name of a random episode, to help you pick on to watch. I briefly considered creating a complex algorithm to take into account which episodes you&#8217;d already seen. I could also implement ratings &#8211; per-user and cloud-sourced average &#8211; and [...]]]></description>
			<content:encoded><![CDATA[<p>More news from <a href="http://deviouschimp.co.uk/cmd/?cmd=shows" title="Chimpcom">Chimpcom</a>.</p>
<p>Not long ago I added the <a href="http://deviouschimp.co.uk/cmd/?cmd=reddwarf">reddwarf</a> command which displayed the name of a random episode, to help you pick on to watch.</p>
<p>I briefly considered creating a complex algorithm to take into account which episodes you&#8217;d already seen. I could also implement ratings &#8211; per-user and cloud-sourced average &#8211; and weight the probabilities based on that.</p>
<p>I may well do that but not quite yet.</p>
<p>In the meantime I&#8217;ve generalised the command and given it a new name: <code>choose</code>. &#8220;Why?&#8221; you ask, &#8220;what does that achieve?&#8221; Well&#8230;</p>
<p>Now, if I type <a href="http://deviouschimp.co.uk/cmd/?cmd=choose%20reddwarf">&#8220;choose reddwarf&#8221;</a> (the series&#8217; name must be one word at the moment&#8230;I&#8217;m working on that) you will get a random episode name, along with some extra info.</p>
<p><strong>But the bonus is you can now type <a href="http://deviouschimp.co.uk/cmd/?cmd=choose%2024">&#8220;choose 24&#8243;</a> or <a href="http://deviouschimp.co.uk/cmd/?cmd=choose%20bigbangtheory">&#8220;choose bigbangtheory&#8221;</a> or <a href="http://deviouschimp.co.uk/cmd/?cmd=choose%20fastshow">&#8220;choose fastshow&#8221;</a> or any one of over 6000 other TV shows.</strong></p>
<p>Of course, even though it&#8217;s not case-sensitive and there is some fuzziness to the searching, the names aren&#8217;t going to be quite how you type them on your first go. To make this a bit more straight-forward I&#8217;ve added the <a href="http://deviouschimp.co.uk/cmd/?cmd=shows">shows</a> command.</p>
<p>For a full list of shows type <a href="http://deviouschimp.co.uk/cmd/?cmd=shows">&#8220;shows&#8221;</a>. To search for a show name, type e.g. <a href="http://deviouschimp.co.uk/cmd/?cmd=shows%20dwarf">&#8220;shows dwarf&#8221;</a> to find the Red Dwarf. Only one search word is currently allowed.</p>
<p>Handy hint: if you only get one result when you use the <a href="http://deviouschimp.co.uk/cmd/?cmd=shows">shows</a>  command, you can use your search term with the <a href="http://deviouschimp.co.uk/cmd/?cmd=choose">choose</a> command. E.g. <a href="http://deviouschimp.co.uk/cmd/?cmd=choose%20dwarf">&#8220;shows dwarf&#8221;</a> finds only Red Dwarf. Therefore <a href="http://deviouschimp.co.uk/cmd/?cmd=choose%20dwarf">&#8220;choose dwarf&#8221;</a> would pick an episode of Red Dwarf. However <a href="http://deviouschimp.co.uk/cmd/?cmd=choose%20red">&#8220;choose red&#8221;</a> would pick a random episode from the first show that matches the word &#8220;red&#8221; &#8211; whatever that is &#8211; which probably isn&#8217;t what you want.</p>
<p>Listings are provided by <a href="http://epguides.com/">epguides.com/</a>.</p>
<p>Next on the list is tab-completion. Watch this space.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=614</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pointless Function is Pointless</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=604</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=604#comments</comments>
		<pubDate>Wed, 14 Dec 2011 15:46:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=604</guid>
		<description><![CDATA[Syntax UnitAbbr$( unit_name ) unit_name is a string representing a standard MapInfo Professional unit name (for example, “km”). Return Value String expression, representing an abbreviated unit name (for example, “km”) So you put in &#8220;km&#8221; and you get back &#8220;km&#8221;. How did I survive without this function?! [Ok, so I think it's supposed to be [...]]]></description>
			<content:encoded><![CDATA[<blockquote>
<pre><strong>Syntax</strong>
UnitAbbr$( unit_name )
unit_name is a string representing a standard MapInfo Professional unit name (for example, “km”).
<strong>Return Value</strong>
String expression, representing an abbreviated unit name (for example, “km”)</pre>
</blockquote>
<p>So you put in &#8220;km&#8221; and you get back &#8220;km&#8221;. How did I survive without this function?!</p>
<p>[Ok, so I think it's supposed to be for converting the English version of a unit to another language. They could have used a better example though.]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=604</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Knife Fork Spoon &#8211; The Full Story</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=599</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=599#comments</comments>
		<pubDate>Mon, 05 Dec 2011 21:39:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=599</guid>
		<description><![CDATA[One three-panel comic. How far can I take the puns. In script for for no very good reason. &#160; &#160; INT. ROOM &#8211; NIGHT TONY lies on the sofa flipping a coin and trying to catch it on his nose. FRANK enters with a harassed expression. FRANK Dave&#8217;s been knifed! TONY leaps up, throws the [...]]]></description>
			<content:encoded><![CDATA[<p>One three-panel comic. How far can I take the puns. In script for for no very good reason.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>INT. ROOM &#8211; NIGHT</p>
<p>TONY lies on the sofa flipping a coin and trying to catch it on his nose. FRANK enters with a harassed expression.</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">Dave&#8217;s been knifed!</p>
<p>TONY leaps up, throws the coin through the window and kicks the cat at the fridge.</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">Knifed?! That&#8217;s forking terrible!</p>
<p style="text-align: left;">FRANK stares in disbelief.</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">[looking concerned]</p>
<p style="text-align: center;">What, too spoon?</p>
<p style="text-align: left;">FRANK shakes his head as if to say &#8220;what the fuck is wrong with you&#8221;.</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">What the fuck is wrong with you?</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">Well, what happened? Did they mug him?</p>
<p style="text-align: left;">FRANK strides away, and launches into the story]</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">Yeah, they just&#8230; Wait.</p>
<p style="text-align: left;">He stops and turns around. TONY&#8217;s grinning like a cunt.</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">That was another pun, wasn&#8217;t it.</p>
<p style="text-align: left;">TONY&#8217;s smile instantly disappears and he looks concerned.</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">No, I just&#8230;</p>
<p style="text-align: center;">[He tails off and sighs in exasperation]</p>
<p style="text-align: center;">Look, did you call the cups?</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">[starting to lose it]</p>
<p style="text-align: center;">I&#8217;m serious! They almost got me, too!</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">Well, <em>were </em>you mugged? You know I always told him you you should just wok away.</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">Do you want me to fucking punch you?</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">That&#8217;s a whisk I&#8217;m willing to take.</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">He&#8217;s dead, Tony!</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">Oh. Shit! Well&#8230;I guess I&#8217;ll mark the day on my colander.</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">For fuck&#8217;s sake, man-</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">Sorry, I&#8217;m just&#8230;</p>
<p style="text-align: center;">[he searches for the word]</p>
<p style="text-align: center;">&#8230;bowled over, you know. It&#8217;s not a pretty pitcher.</p>
<p style="text-align: center;">FRANK</p>
<p style="text-align: center;">Fuck you.</p>
<p style="text-align: center;">[He storms out]</p>
<p style="text-align: center;">TONY</p>
<p style="text-align: center;">Ladle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=599</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDF Font Embedding</title>
		<link>http://www.deviouschimp.co.uk/blog/?p=597</link>
		<comments>http://www.deviouschimp.co.uk/blog/?p=597#comments</comments>
		<pubDate>Mon, 14 Nov 2011 13:26:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.deviouschimp.co.uk/blog/?p=597</guid>
		<description><![CDATA[I thought that the idea of PDF &#8211; standing, as it does, for Portable Document Format and with portable in this context basically meaning that it should be the same under a variety of circumstances &#8211; would look the same whenever it is viewed. This is not the case. I have also recently learned that [...]]]></description>
			<content:encoded><![CDATA[<p>I thought that the idea of PDF &#8211; standing, as it does, for Portable Document Format and with portable in this context basically meaning that it should be the same under a variety of circumstances &#8211; would look the same whenever it is viewed. This is not the case.</p>
<p>I have also recently learned that as well as the original PDF format there are five subsets:<br />
PDF/X &#8211; PDF for exchange<br />
PDF/A &#8211; PDF for archive<br />
PDF/E &#8211; PDF for engineering<br />
PDF/VT &#8211; PDF for exchange of variable data and transactional (VT) printing<br />
PDF/UA &#8211; PDF for universal access.</p>
<p>There&#8217;s also the non-standard PDF/H &#8211; PDF for healthcare &#8211; which presumably nurses you back to sanity after you&#8217;ve been dealing with PDF files.</p>
<p>Most of the time you won&#8217;t need to know or care about the above but sometimes you&#8217;ll be in a position &#8211; as I was last Thursday &#8211; when you send your document to the printers and they come back to you saying that the fonts need to be embedded. Which is odd when the only font being used is Arial.</p>
<p>The trick &#8211; at least in my case &#8211; is to force your PDF exporter to use PDF/X or PDF/A. because /A and /X are designed for exchange and archiving respectively they require fonts to be embedded. This is usually a case of checking a box in your export/print dialogue. Mine is in a section called &#8220;Standards&#8221; with the label &#8220;PDF/A-1b (Acrobat 5.0 Compatible)&#8221;. Yours may be slightly different, but just look for PDF/A, PDF/X or ISO Standard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deviouschimp.co.uk/blog/?feed=rss2&#038;p=597</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

