<?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>Flapping Head &#187; Uncategorized</title>
	<atom:link href="http://scottbarnham.com/blog/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://scottbarnham.com/blog</link>
	<description>Code and comments on web development, Django, Python and things (un)related.</description>
	<lastBuildDate>Thu, 08 Jul 2010 09:49:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gvim menu bar missing</title>
		<link>http://scottbarnham.com/blog/2009/03/09/gvim-menu-bar-missing/</link>
		<comments>http://scottbarnham.com/blog/2009/03/09/gvim-menu-bar-missing/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 03:04:08 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://scottbarnham.com/blog/2009/03/09/gvim-menu-bar-missing/</guid>
		<description><![CDATA[I just opened gvim on my Ubuntu (Hardy Heron) box and found there was no menu bar (File, Edit, etc).
After messing with some guioptions and getting nowhere I ran gvim as root (using sudo) and the menu bar was there.  The answer came from a forum post by &#8220;Marko&#8221;:
Delete the file ~/.gnome2/Vim
It will be [...]]]></description>
			<content:encoded><![CDATA[<p>I just opened <code>gvim</code> on my Ubuntu (Hardy Heron) box and found there was no menu bar (File, Edit, etc).</p>
<p>After messing with some <code>guioptions</code> and getting nowhere I ran <code>gvim</code> as root (using <code>sudo</code>) and the menu bar was there.  The answer came from a forum post by &#8220;Marko&#8221;:</p>
<p>Delete the file <code>~/.gnome2/Vim</code></p>
<p>It will be recreated when you run <code>gvim</code> again.  With luck, the menu will be displayed again.</p>
]]></content:encoded>
			<wfw:commentRss>http://scottbarnham.com/blog/2009/03/09/gvim-menu-bar-missing/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Layoff Talent &#8211; Django project just launched</title>
		<link>http://scottbarnham.com/blog/2008/12/11/layoff-talent-django-project-just-launched/</link>
		<comments>http://scottbarnham.com/blog/2008/12/11/layoff-talent-django-project-just-launched/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 17:05:48 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://scottbarnham.com/blog/2008/12/11/layoff-talent-django-project-just-launched/</guid>
		<description><![CDATA[Andrew and I spent a few days this week putting together a new Django project.
It&#8217;s called Layoff Talent and it&#8217;s a place for people in the tech industry who have been laid off and are looking for a new job.  They can add a simple profile and then hopefully be picked up by employers [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/andrewgleave">Andrew</a> and <a href="http://twitter.com/scottbarnham">I</a> spent a few days this week putting together a new Django project.</p>
<p>It&#8217;s called <a href="http://layofftalent.com/">Layoff Talent</a> and it&#8217;s a place for people in the tech industry who have been laid off and are looking for a new job.  They can add a simple profile and then hopefully be picked up by employers looking for new talent.</p>
<p>It&#8217;s similar in some ways to <a href="http://djangopeople.net/">Django People</a> or the <a href="http://djangogigs.com/">Djangogigs</a> developer listings, but specifically for people who have been laid off and not restricted to Django developers.</p>
<p>There&#8217;s nothing ground breaking from a development point of view, but it&#8217;s another example of how Django makes it easy to put out a full-featured site in a short time.  Of course, we&#8217;ll be adding more features as the site gets popular.</p>
<p>If you know someone who has been laid off, please tell them about <a href="http://layofftalent.com/">layofftalent.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://scottbarnham.com/blog/2008/12/11/layoff-talent-django-project-just-launched/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>getSelection() returns empty in Google Mail</title>
		<link>http://scottbarnham.com/blog/2008/02/21/getselection-returns-empty-in-google-mail/</link>
		<comments>http://scottbarnham.com/blog/2008/02/21/getselection-returns-empty-in-google-mail/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 11:23:17 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://scottbarnham.com/blog/2008/02/21/getselection-returns-empty-in-google-mail/</guid>
		<description><![CDATA[Getting selected text in a Firefox extension
I&#8217;m developing a Firefox extension for a client which does something with the currently selected text in the browser window.
The standard way to get the selection is with window.content.getSelection().  
Selection is empty in Gmail
Some users reported that selected text in Gmail messages wasn&#8217;t being found by the extension. [...]]]></description>
			<content:encoded><![CDATA[<h2>Getting selected text in a Firefox extension</h2>
<p>I&#8217;m developing a Firefox extension for a client which does something with the currently selected text in the browser window.</p>
<p>The standard way to get the selection is with <code>window.content.getSelection()</code>.  </p>
<h2>Selection is empty in Gmail</h2>
<p>Some users reported that selected text in Gmail messages wasn&#8217;t being found by the extension.  I suspect the issue is with content added using JavaScript, but I haven&#8217;t investigated.</p>
<h2>An alternative way to getSelection</h2>
<p>The standard <em>Search Google for &#8220;whatever&#8221;</em> contextual menu item does work in Gmail, so obviously it gets the selection another way.</p>
<p>I found a function <code>getBrowserSelection()</code> in the <code>browser.js</code> file in Firefox&#8217;s chrome.  It is used by Firefox for the contextual menu search.</p>
<p>This is how it gets the selection:</p>
<pre>var focusedWindow = document.commandDispatcher.focusedWindow;
var selection = focusedWindow.getSelection();</pre>
<p>I don&#8217;t know what the difference is, but I am now using this code in my Firefox extension and it is working well.</p>
]]></content:encoded>
			<wfw:commentRss>http://scottbarnham.com/blog/2008/02/21/getselection-returns-empty-in-google-mail/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.209 seconds -->
