<?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/"
	>

<channel>
	<title>Newspeak</title>
	<atom:link href="http://www.newspeak.org.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.newspeak.org.uk</link>
	<description></description>
	<pubDate>Mon, 21 Sep 2009 11:23:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tele Atlas fail to name Carneddau correctly</title>
		<link>http://www.newspeak.org.uk/2009/09/21/tele-atlas-carneddau/</link>
		<comments>http://www.newspeak.org.uk/2009/09/21/tele-atlas-carneddau/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 11:17:09 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/?p=86</guid>
		<description><![CDATA[
In January 2008 I contacted Tele Atlas to tell them that their data on where Carnedd Llewelyn and Carnedd Dafydd are was wrong. They emailed me back and said.
&#8220;To insure [sic] that the quality of our data meets the highest standards, the change you have suggested may take several months to be completed. Tele Atlas [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="Image of incorrectly named Carneddau" src="http://maps.google.com/maps/api/staticmap?center=53.13637,-4.000225&amp;zoom=13&amp;size=400x400&amp;maptype=terrain&amp;key=ABQIAAAAinkLe3KSMjfHwduyB6i6tRRwpccBjAUms5MLKSu0UGRJF-KnvhRDN7PZhgmHGMqyd3MWcPQiqaAURA&amp;sensor=false" alt="" width="400" height="400" /></p>
<p>In January 2008 I contacted Tele Atlas to tell them that their data on where Carnedd Llewelyn and Carnedd Dafydd are was wrong. They emailed me back and said.</p>
<blockquote><p><em>&#8220;To insure </em>[sic]<em> that the quality of our data meets the highest standards, the change you have suggested may take several months to be completed. <span class="il">Tele</span> <span class="il">Atlas</span> makes updates to its database every day and the application providers receive new versions of our product every three months. They will integrate the new data into their products and update their maps, which usually takes from a few weeks to a few months, depending on the application provider. Once we inform you about the change in our database, please contact your application provider to learn when the update for your application will be available.&#8221;</em></p></blockquote>
<p>20 Months have passed since they sent me that email. I&#8217;ve climbed both mountains since then and can guarentee to you that they have not changed much in that time, neither however have Tele Atlas&#8217;s labels for them, which are just as wrong.</p>
<p>Here are some links to maps that have the Carneddau in the correct locations.</p>
<ul>
<li><a href="Open Street Maps" target="_blank">Open Street Maps</a></li>
<li><a href="http://wtp2.appspot.com/wheresthepath.htm?lat=53.14630702243106&amp;lon=-3.987436294555664&amp;gz=14&amp;oz=7&amp;gt=3" target="_blank">Ordnance Survey</a> (next to Google Terrain map from Where&#8217;s the path)</li>
<li><a href="http://www.multimap.com/s/MP5g1LE8" target="_blank">Ordnance Survey</a> (on Multimap)</li>
<li><a href="http://www.bing.com/maps/default.aspx?v=2&amp;FORM=LMLTCP&amp;cp=53.151609~-3.979797&amp;style=r&amp;lvl=13&amp;tilt=-90&amp;dir=0&amp;alt=-1000&amp;phx=0&amp;phy=0&amp;phscl=1&amp;encType=1" target="_blank">Bing Maps</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2009/09/21/tele-atlas-carneddau/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Guardian&#8217;s Idea of a Joke?</title>
		<link>http://www.newspeak.org.uk/2009/05/25/guardians-idea-of-a-joke/</link>
		<comments>http://www.newspeak.org.uk/2009/05/25/guardians-idea-of-a-joke/#comments</comments>
		<pubDate>Mon, 25 May 2009 09:11:18 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/?p=84</guid>
		<description><![CDATA[A book about Hitler by Ian Kershaw is being advertised on Guardian Books with an image of Barack Obama&#8217;s autobiography &#8220;The Audacity of Hope&#8221;.

]]></description>
			<content:encoded><![CDATA[<p>A book about Hitler by Ian Kershaw is being advertised on Guardian Books with an image of Barack Obama&#8217;s autobiography &#8220;The Audacity of Hope&#8221;.</p>
<p><a href="http://www.newspeak.org.uk/img/Guardian-Obama.png"><img class="alignnone" title="Guardian Book - Obamas book labelled hitler" src="http://www.newspeak.org.uk/img/Guardian-Obama-sm.png" alt="" width="303" height="243" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2009/05/25/guardians-idea-of-a-joke/feed/</wfw:commentRss>
		</item>
		<item>
		<title>British National Party Voters Don&#8217;t Exist</title>
		<link>http://www.newspeak.org.uk/2009/05/13/british-national-party-voters-dont-exist/</link>
		<comments>http://www.newspeak.org.uk/2009/05/13/british-national-party-voters-dont-exist/#comments</comments>
		<pubDate>Wed, 13 May 2009 16:20:16 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/2009/05/13/british-national-party-voters-dont-exist/</guid>
		<description><![CDATA[In the last few days the British Nationalist Party (BNP) have started to deliver their campaign leaflets. There are at least two varieties but they are both quite similar and their main campaigning point is against immigration. You can see leaflets delivered by the BNP around the UK thanks to The Straight Choice a website [...]]]></description>
			<content:encoded><![CDATA[<p>In the last few days the British Nationalist Party (BNP) have started to deliver their campaign leaflets. There are at least two varieties but they are both quite similar and their main campaigning point is against immigration. You can see <a title="BNP Election Leaflets" href="http://www.thestraightchoice.org/leaflets.php?p=990" target="_blank">leaflets delivered by the BNP</a> around the UK thanks to <a href="http://www.thestraightchoice.org/" target="_blank">The Straight Choice</a> a website dedicated to mapping campaign leaflets. The current leaflets feature a section titled &#8220;Why we&#8217;re all voting BNP&#8221; with photos accompanied by a bit of text, presumably this is to encourage people to think BNP voters are just like you. Unfortunately for the BNP none of these voters are real and you can prove it by using web-based reverse image searches.</p>
<p><img src="http://www.newspeak.org.uk/img/bnp/2-doctor.png" alt="" width="221" height="213" align="right" /></p>
<h2>The Doctor</h2>
<p><em>&#8220;I&#8217;m voting BNP because I see what immigration has done to the NHS. As a Doctor I want to see an end to &#8216;health tourists&#8217; and to make sure British nurses are employed and paid fairly.&#8221;</em></p>
<p><a href="http://tineye.com/search/1bd98fbe8cb9afd0b57df5b70c367ef7f899c866" target="_blank">Search for this image on tineye</a> and you&#8217;ll quickly find out that this image has been used on a number of websites and that you can buy it to use royalty free from a stock photo website. The image was taken by an American photographer probably in 2006.</p>
<p><img src="http://www.newspeak.org.uk/img/bnp/3-couple.png" alt="" width="218" height="214" align="right" /></p>
<h2>The Pensioners</h2>
<p><em>&#8220;We&#8217;ve seen how this country has declined under the present government and we&#8217;re voting BNP because they will put pensioners before asylum seekers and ensure our future.&#8221;</em></p>
<p><em>&#8220;We&#8217;re with the British National Party because it&#8217;s not fair that people who&#8217;ve worked hard and paid in all their lives are pushed to the back of the queue behind bogus asylum seekers.&#8221;</em></p>
<p><a href="http://tineye.com/search/faa8ab550de7561bcd3901c1fe4caa1ba6be1ed7" target="_blank">Search for this image on tineye</a> and lo and behold it is available from the same stock photo website.  Looking at the stock photo website you can find out the models are called Deanna and Mario.</p>
<h2><img src="http://www.newspeak.org.uk/img/bnp/4-soldier.png" alt="" width="157" height="162" align="right" />The Soldier</h2>
<p><em>&#8220;We&#8217;re fed up of being sent ill-equipped into foreign wars. The BNP will bring our troops home and ensure that British soldiers are not abused on the streets of our cities by Muslims.&#8221;</em></p>
<p>Again, <a href="http://tineye.com/search/8852358ba2174948adee5dcd6dc9220010d80efb" target="_blank">search using tineye</a> you can find that it&#8217;s <a href="http://www.fotosearch.com/SIX011/peo-058/" target="_blank">from a different stock photo website</a>. What&#8217;s particularly amusing here is that the photo is of an Irish guardsman, which is funny because the Irish are not British, Britain is made up of England, Scotland and Wales.</p>
<p>UPDATE: At least one commenter has pointed out that this is actually a Scots Guard, I assumed that the picture&#8217;s title was correct when I wrote the article. The photo has since been reported by the <a href="http://www.thesun.co.uk/sol/homepage/news/article2436087.ece" target="_blank">Sun to be Stuart Walker who has stated he does not back the statement attributed to him in the leaflet</a>.</p>
<p><img src="http://www.newspeak.org.uk/img/bnp/5-mother.png" alt="" width="167" height="166" align="right" /></p>
<h2>The Mother</h2>
<p><em>&#8220;As a mother and wife I want to ensure that our children have a future. Our taxes should be invested in education and job creation, not wasted on paying bureaucrats or bankers&#8217; bonuses.&#8221;</em></p>
<p><a href="http://tineye.com/search/5060a895637ac78136ab5f0901607d9e768237cd" target="_blank">Searching tineye</a> once again tells us this photo is entitled &#8220;Love my Mommy!&#8221; and was taken by another American photographer.</p>
<p>The only conclusion I can make is that  no real BNP voters were keen enough to appear on the leaflets.</p>
<p>The BNP are not the first people to send out leaflets with fake people on, when there was a decision to be made on whether Manchester should have city centre congestion charging leaflets were printed encouraging people to vote &#8216;YES&#8217; with case studies showing how people would be better off, again, none of the people were real (<a href="http://www.manchestereveningnews.co.uk/news/s/1010/1010798_ccharge_locals_dont_exist.html" target="_blank">Manchester Evening News: C-charge &#8216;locals&#8217; don&#8217;t exist</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2009/05/13/british-national-party-voters-dont-exist/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Images you won&#8217;t find on Street View</title>
		<link>http://www.newspeak.org.uk/2009/04/03/images-you-wont-find-on-street-view/</link>
		<comments>http://www.newspeak.org.uk/2009/04/03/images-you-wont-find-on-street-view/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 11:30:14 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/2009/04/03/images-you-wont-find-on-street-view/</guid>
		<description><![CDATA[The Time - Village mob thwarts Google Street View car
Images of Broughton can be found on Panoramio and loc.alize.us.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://technology.timesonline.co.uk/tol/news/tech_and_web/article6022902.ece">The Time - Village mob thwarts Google Street View car</a></p>
<p>Images of Broughton can be found on <a href="http://www.panoramio.com/map/#lt=52.049535&amp;ln=-0.687718&amp;z=2&amp;k=2&amp;a=1&amp;tab=1">Panoramio</a> and <a href="http://loc.alize.us/#/geo:52.049482,-0.695229,15,m/sort:date/">loc.alize.us</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2009/04/03/images-you-wont-find-on-street-view/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to not appear pretentious when sending email from your iPhone.</title>
		<link>http://www.newspeak.org.uk/2009/03/19/how-to-not-appear-pretentious-when-sending-email-from-your-iphone/</link>
		<comments>http://www.newspeak.org.uk/2009/03/19/how-to-not-appear-pretentious-when-sending-email-from-your-iphone/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 11:24:19 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[howto]]></category>

		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/2009/03/19/how-to-not-appear-pretentious-when-sending-email-from-your-iphone/</guid>
		<description><![CDATA[Unless you want everyone to groan and hate receiving email from you follow these simple steps to avoid looking like a pompous ass.
1. Click &#8216;Settings&#8217;.
2. Click &#8216;Mail, Contacts, Calendars&#8217;.
3. Scroll down to &#8216;Signature&#8217; and click it.
4.  Delete &#8216;Sent from my iPhone&#8217;.
There, now you just need to get some some better in ear headphones that aren&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Unless you want everyone to groan and hate receiving email from you follow these simple steps to avoid looking like a pompous ass.</p>
<p>1. Click &#8216;Settings&#8217;.</p>
<p>2. Click &#8216;Mail, Contacts, Calendars&#8217;.</p>
<p>3. Scroll down to &#8216;Signature&#8217; and click it.</p>
<p>4.  Delete &#8216;Sent from my iPhone&#8217;.</p>
<p>There, now you just need to get some some better in ear headphones that aren&#8217;t white and you won&#8217;t look like an Apple fan boy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2009/03/19/how-to-not-appear-pretentious-when-sending-email-from-your-iphone/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Holiday to the Alps</title>
		<link>http://www.newspeak.org.uk/2009/01/22/holiday-to-the-alps/</link>
		<comments>http://www.newspeak.org.uk/2009/01/22/holiday-to-the-alps/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 11:57:13 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/2009/01/22/holiday-to-the-alps/</guid>
		<description><![CDATA[This summer I&#8217;m going to the Alps, in Switzerland. No, I have no intention of doing any skiing. I want to climb mountains. I want to play in the snow. Some photos from people who have been where we&#8217;re going before me.



I also want to do Via Ferrata,(Italian for &#8220;Iron road&#8221;) which is somewhere between [...]]]></description>
			<content:encoded><![CDATA[<p>This summer I&#8217;m going to the Alps, in Switzerland. No, I have no intention of doing any skiing. I want to climb mountains. I want to play in the snow. Some photos from people who have been where we&#8217;re going before me.</p>
<p><a href="http://www.flickr.com/photos/nasher/2701029507/" title="Weissmies by Nasher, on Flickr"><img src="http://farm4.static.flickr.com/3293/2701029507_e6f6b5c3eb.jpg" alt="Weissmies" height="333" width="500" /></a></p>
<p><a href="http://www.flickr.com/photos/psylense/506223182/" title="when smokers.. by pschmutz, on Flickr"><img src="http://farm1.static.flickr.com/222/506223182_d6efa65e0c.jpg" alt="when smokers.." height="369" width="500" /></a></p>
<p><a href="http://www.flickr.com/photos/mace2000/2211993809/" title="Saas Fee at night by Mace2000, on Flickr"><img src="http://farm3.static.flickr.com/2152/2211993809_c39623f098.jpg" alt="Saas Fee at night" height="333" width="500" /></a></p>
<p>I also want to do <a href="http://en.wikipedia.org/wiki/Via_ferrata" title="Wikipedia: Via Ferrata" target="_blank">Via Ferrata</a>,(Italian for &#8220;Iron road&#8221;) which is somewhere between walking and rock climbing. There are things permanently attached to the rock to make your climb simpler and quicker. Like ladders and steel cables to attach yourself to.</p>
<p><a href="http://www.flickr.com/photos/66514026@N00/2827654505/" title="DSC03474 by fishglue, on Flickr"><img src="http://farm4.static.flickr.com/3039/2827654505_ea85ae5789.jpg" width="375" height="500" alt="DSC03474" /></a></p>
<p><a href="http://www.flickr.com/photos/13596819@N04/1388396382/" title="Jegihorn via ferrata by jonmitch, on Flickr"><img src="http://farm2.static.flickr.com/1403/1388396382_73b62a773d.jpg" width="500" height="375" alt="Jegihorn via ferrata" /></a></p>
<p><a href="http://www.flickr.com/photos/uccrow/2379377811/">Another nice photo that I can&#8217;t embed</a></p>
<p>I think I will need to get a bit fitter to get the most out of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2009/01/22/holiday-to-the-alps/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ever wondered how they come up with Ubuntu code names</title>
		<link>http://www.newspeak.org.uk/2008/08/06/ever-wondered-how-they-come-up-with-ubuntu-code-names/</link>
		<comments>http://www.newspeak.org.uk/2008/08/06/ever-wondered-how-they-come-up-with-ubuntu-code-names/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 16:52:28 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/2008/08/06/ever-wondered-how-they-come-up-with-ubuntu-code-names/</guid>
		<description><![CDATA[I have. I don&#8217;t know, but I suspect it&#8217;s like this
import random
def main(argv):
    if len(argv) &#60; 2:
        sys.exit(1)
    f = file(argv[0]).read().splitlines()
    name = [random.choice(f).lower()]
    letter = name[0][0]
    for fn in argv[1:]:
        words = file(fn).read().splitlines()
        words = [w.lower() for w in words if w.lower().startswith(letter)]
        if len(words) == 0:
            return False
        name.append(random.choice(words))
    return " ".join(name)
if __name__ == [...]]]></description>
			<content:encoded><![CDATA[<p>I have. I don&#8217;t know, but I suspect it&#8217;s like this<span id="more-71"></span></p>
<pre>import random</pre>
<pre>def main(argv):</pre>
<pre>    if len(argv) &lt; 2:</pre>
<pre>        sys.exit(1)</pre>
<pre>    f = file(argv[0]).read().splitlines()</pre>
<pre>    name = [random.choice(f).lower()]</pre>
<pre>    letter = name[0][0]</pre>
<pre>    for fn in argv[1:]:</pre>
<pre>        words = file(fn).read().splitlines()</pre>
<pre>        words = [w.lower() for w in words if w.lower().startswith(letter)]</pre>
<pre>        if len(words) == 0:</pre>
<pre>            return False</pre>
<pre>        name.append(random.choice(words))</pre>
<pre>    return " ".join(name)</pre>
<pre>if __name__ == "__main__":</pre>
<pre>    import sys</pre>
<pre>    result = False</pre>
<pre>    while not result:</pre>
<pre>        result = main(sys.argv[1:])</pre>
<pre>    print result</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2008/08/06/ever-wondered-how-they-come-up-with-ubuntu-code-names/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Week 3: Vim tricks - Indenting Code</title>
		<link>http://www.newspeak.org.uk/2008/08/06/week-3-vim-tricks-indenting-code/</link>
		<comments>http://www.newspeak.org.uk/2008/08/06/week-3-vim-tricks-indenting-code/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 09:28:11 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/2008/08/06/week-3-vim-tricks-indenting-code/</guid>
		<description><![CDATA[ For a long time now I have known how to indent using Vim&#8217;s &#8216;&#62;&#8217; command to indent a block of text. I have learnt a few new tricks that might speed me up a bit. 
In my .vimrc I have &#8220;set shiftwidth=4&#8243; this means that when I indent by pressing tab, using the &#8216;&#62;&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p> For a long time now I have known how to indent using Vim&#8217;s &#8216;&gt;&#8217; command to indent a block of text. I have learnt a few new tricks that might speed me up a bit. <span id="more-70"></span></p>
<p>In my .vimrc I have &#8220;set shiftwidth=4&#8243; this means that when I indent by pressing tab, using the &#8216;&gt;&#8217; command or using the new trick I&#8217;ll show in a second it is the width of 4 characters and because I have &#8220;set expandtab&#8221; it uses four spaces rather than a tab character. Without getting into the whole debate over which is better, spaces or tabs, the reason I do this is because I like to follow <a href="http://www.python.org/dev/peps/pep-0008/" target="_blank"><abbr title="Python Enhancement Proposals">PEP</abbr> 8</a> when I code Python which is the programming language I use most. <a href="http://www.python.org/dev/peps/pep-0008/" target="_blank"><abbr title="Python Enhancement Proposals">PEP</abbr> 8</a> states, amongst a whole load of other things, &#8220;Use 4 spaces per indentation level&#8221; and &#8220;Never mix tabs and spaces&#8221;.</p>
<p>So you can indent 4 lines in &#8220;Normal mode&#8221; by sticking the cursor on the first line, then type either &gt;4&gt; or 4&gt;&gt;. To indent just the one line you can do &gt;&gt; without specifying the number. You can also press &#8216;&gt;&#8217; followed by a movement (in vim use &#8220;:help usr_03.txt&#8221; to learn more about that) so to indent everything from this current line to the first blank line below the current line I would type &gt;/^$ and press enter.</p>
<p>If you are in insert mode editing text it can be annoying to have to go into &#8220;normal mode&#8221; and back to editing again afterwards just to indent or unindent a line. So to indent the current line whilst editing press Ctrl+T anywhere on that line and to unindent press Ctrl+D, easy. Unfortunately you can only do one line at a time that way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2008/08/06/week-3-vim-tricks-indenting-code/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Week 2: Vim tricks - Automatic code completion</title>
		<link>http://www.newspeak.org.uk/2008/07/29/week-2-vim-tricks-automatic-code-completion/</link>
		<comments>http://www.newspeak.org.uk/2008/07/29/week-2-vim-tricks-automatic-code-completion/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 16:20:52 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[tech]]></category>

		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/2008/07/29/week-2-vim-tricks-automatic-code-completion/</guid>
		<description><![CDATA[You may have used an IDE before that allows you to automatically complete parts of your code. In Microsoft&#8217;s Visual Studio this is called &#8220;intellisense&#8221;. It&#8217;s very handy for speeding up development and for exploring objects that you can&#8217;t quite remember the attributes of. This week I found out how to add it to Vim.
I [...]]]></description>
			<content:encoded><![CDATA[<p>You may have used an IDE before that allows you to automatically complete parts of your code. In Microsoft&#8217;s Visual Studio this is called &#8220;intellisense&#8221;. It&#8217;s very handy for speeding up development and for exploring objects that you can&#8217;t quite remember the attributes of. This week I found out how to add it to Vim.<span id="more-69"></span></p>
<p>I found a way of doing this for Python <a href="http://blog.sontek.net/2008/05/11/python-with-a-modular-ide-vim/" title="Sontek: Python with a modular IDE (Vim)" target="_blank">here</a> and it shows how to map to a better shortcut (the same as is used in Visual Studio in fact. Unfortunately this only works for python and I was really hoping to have a way that works for as many languages as possible as I know Vim must support more and I use quite a few languages.</p>
<p>I did manage to find a simpler way that works for all of vim&#8217;s supported languages <a href="http://www.cygwin.com/ml/cygwin/2006-10/msg00945.html" title="Re: vim intellisense omnifunc" target="_blank">here</a>. Combining the two approaches gives an easy to use auto completion for loads of languages.</p>
<p>Just add the following to your .vimrc</p>
<pre>filetype plugin on</pre>
<pre>inoremap &lt;Nul&gt; &lt;C-x&gt;&lt;C-o&gt;</pre>
<p>Then you can use Ctrl+Space to autocomplete your programming language keywords and the names of variables, functions and modules.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2008/07/29/week-2-vim-tricks-automatic-code-completion/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Vim tricks</title>
		<link>http://www.newspeak.org.uk/2008/07/21/new-vim-tricks/</link>
		<comments>http://www.newspeak.org.uk/2008/07/21/new-vim-tricks/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 17:05:25 +0000</pubDate>
		<dc:creator>Stephen Paulger</dc:creator>
		
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.newspeak.org.uk/2008/07/21/new-vim-tricks/</guid>
		<description><![CDATA[I&#8217;ve been using vim as my main text editor for over 5 years now and because I&#8217;m now dependent on it and using it every day at work I&#8217;ve decided to challenge myself to learn a new trick every week. Last week&#8217;s trick was sorting lines.
Sorting Lines
I actually learnt two new tricks to be able [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using vim as my main text editor for over 5 years now and because I&#8217;m now dependent on it and using it every day at work I&#8217;ve decided to challenge myself to learn a new trick every week. Last week&#8217;s trick was sorting lines.</p>
<h3>Sorting Lines</h3>
<p>I actually learnt two new tricks to be able to do this. The first is selecting lines using visual mode.</p>
<p>By placing the cursor on the first line you wish to select then pressing Shift+V and moving the cursor the last line to select you select the range of lines between the two and you can do any of your normal ex commands on just the selected text.</p>
<p>To sort the selected lines type :sort, this runs the sort command and replaces the selection with the result. You notice if you try to sort lines with numbers they will be sorted alphanumerically, ie. 700 would come before 8, if you want to sort numerically use :sort n. You can also remove duplicates from a list by using :sort u, to remove duplicates and sort numerically use :sort un.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newspeak.org.uk/2008/07/21/new-vim-tricks/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
