<?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>nullcortex &#187; linux</title>
	<atom:link href="http://nullcortex.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://nullcortex.com</link>
	<description>some words, some code, and some pictures</description>
	<lastBuildDate>Fri, 29 Jan 2010 18:43:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Visualizing Team Membership</title>
		<link>http://nullcortex.com/2009/12/visualizing-team-membership/</link>
		<comments>http://nullcortex.com/2009/12/visualizing-team-membership/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 14:09:05 +0000</pubDate>
		<dc:creator>bnrubin</dc:creator>
				<category><![CDATA[IRC]]></category>
		<category><![CDATA[Launchpad]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[launchpadlib]]></category>

		<guid isPermaLink="false">http://nullcortex.com/?p=110</guid>
		<description><![CDATA[A few days ago Jussi asked me to take a look at the new LP teams that he had created to manage our IRC operators and core channels.  I&#8217;m not sure if it was due to the lack of caffeine, but I was having a hard time figuring out what the hierarchy of teams was [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago <a href="http://jussi01.com/" target="_blank">Jussi</a> asked me to take a look at the new LP teams that he had created to manage our IRC operators and core channels.  I&#8217;m not sure if it was due to the lack of caffeine, but I was having a hard time figuring out what the hierarchy of teams was from looking at their launchpad pages.  Since I&#8217;m now more familiar using launchpadlib, I thought I&#8217;d put a small script together to graph out the team relationships.  In order to do the actual drawing, I used pydot, which is a python interface for <a href="http://www.graphviz.org" target="_blank">Graphviz</a>.</p>
<p>I showed some test output images to the folks in #ubuntu-offtopic and a few of them thought it was neat and asked me for the code so that they could make their own graphs.  I took that as a sign that I should clean up the code to make it more efficient.  I also went ahead and used optparse to make the application more user-friendly.</p>
<p>To start, lets take a look at what the output for the <a href="https://launchpad.net/~ubuntu-core-ircops" target="_blank">teams</a> that Jussi created:</p>
<p style="text-align: center;"><a href="http://nullcortex.com/wp-content/uploads/2009/12/ubuntu-core-ircops1.png" title="ubuntu-core-ircops" rel="lightbox[110]"><img class="size-medium wp-image-112 aligncenter" title="ubuntu-core-ircops" src="http://nullcortex.com/wp-content/uploads/2009/12/ubuntu-core-ircops1-300x296.png" alt="" width="300" height="296" /></a></p>
<p style="text-align: left;">Well that&#8217;s rather self-explanatory. Much more so than looking at a bunch of lists on LP.</p>
<p style="text-align: left;">How if we looked at someone that has administrative access for some Launchpad teams.  Perhaps <a title="Jono Bacon" href="https://launchpad.net/~jonobacon" target="_blank">Jono</a>:</p>
<p style="text-align: center;"><a href="http://nullcortex.com/wp-content/uploads/2009/12/jonobacon.png" title="jonobacon" rel="lightbox[110]"><img class="size-medium wp-image-114  aligncenter" title="jonobacon" src="http://nullcortex.com/wp-content/uploads/2009/12/jonobacon-300x299.png" alt="" width="300" height="299" /></a></p>
<p style="text-align: left;">Green filled team nodes indicate that the root user has administrative access to them.  I chose to focus on <strong>what </strong>teams a person had control over, rather than <strong>which </strong>relationships granted that level of access.  This was mostly due to not being happy with the options that Graphviz had for shading and coloring edges.</p>
<p style="text-align: left;">I suppose that graph was somewhat complex&#8230; although its nothing compared to <a title="Mark Shuttleworth" href="https://launchpad.net/~sabdfl" target="_blank">sabdfl</a>&#8216;s:</p>
<p style="text-align: center;"><a href="http://nullcortex.com/wp-content/uploads/2009/12/sabdfl.png" title="sabdfl" rel="lightbox[110]"><img class="size-medium wp-image-117  aligncenter" title="sabdfl" src="http://nullcortex.com/wp-content/uploads/2009/12/sabdfl-199x300.png" alt="" width="199" height="300" /></a></p>
<p style="text-align: left;">Anyway, the python script itself is available <a title="lpdot" href="https://code.launchpad.net/~bnrubin/+junk/lpdot" target="_blank">here</a>. And the help page is as follows:</p>
<pre style="text-align: left;" lang="text">Usage: lpdot.py [-c COLOR] [-a COLOR] [-o PATH] [-d PATH] username

Options:
  -h, --help  show this help message and exit
  -c COLOR    set default node color to COLOR (defaults to white)
  -a COLOR    set administrative node color to COLOR (defaults to greenyellow)
  -o PATH     write png file to PATH (defaults to pwd)
  -d PATH     write dot file to PATH

  A list of valid colors can be found here:

http://www.graphviz.org/doc/info/colors.html
</pre>
]]></content:encoded>
			<wfw:commentRss>http://nullcortex.com/2009/12/visualizing-team-membership/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Saving time with launchpadlib</title>
		<link>http://nullcortex.com/2009/12/saving-time-with-launchpadlib/</link>
		<comments>http://nullcortex.com/2009/12/saving-time-with-launchpadlib/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 19:38:00 +0000</pubDate>
		<dc:creator>bnrubin</dc:creator>
				<category><![CDATA[IRC]]></category>
		<category><![CDATA[Launchpad]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[launchpadlib]]></category>

		<guid isPermaLink="false">http://nullcortex.com/?p=101</guid>
		<description><![CDATA[One of the many tasks that the Ubuntu IRC Council is responsible for is granting Ubuntu member hostname cloaks to people who have gained Ubuntu membership.  We currently use a Launchpad team to keep track of the people that have been cloaked.  When someone requests a cloak in #ubuntu-irc, there are a number of steps [...]]]></description>
			<content:encoded><![CDATA[<p>One of the many tasks that the Ubuntu IRC Council is responsible for is granting Ubuntu member hostname cloaks to people who have gained <a href="http://www.ubuntu.com/community/processes/newmember" target="_blank">Ubuntu membership</a>.  We currently use a Launchpad team to keep track of the people that have been cloaked.  When someone requests a cloak in #ubuntu-irc, there are a number of steps that we need to go:</p>
<ol>
<li>Get the user&#8217;s Launchpad page</li>
<li>Check if they&#8217;re indeed an Ubuntu member</li>
<li>Go to the <a href="https://launchpad.net/~ubuntu-irc-cloaks" target="_blank">cloaked Ubuntu members team</a></li>
<li>Remember the user&#8217;s Launchpad id and add them to the team</li>
<li>Ask <a href="http://freenode.net/" target="_blank">freenode</a> staff to apply the cloak</li>
</ol>
<p>Now this doesn&#8217;t sound that difficult, but we&#8217;re all busy and we know that Launchpad isn&#8217;t exactly the fastest site around.  So, in order to make this easier for myself, I put together a small python script using <a href="https://help.launchpad.net/API/launchpadlib" target="_blank">launchpadlib</a> to do all the dirty work for me.  It also gave me an excuse to play with <a href="http://docs.python.org/library/optparse.html" target="_blank">optparse</a>, which I have been looking to have a reason to use.</p>
<p>The script gives me the ability to check a member&#8217;s status and add them to the cloak team in one step.  I can also choose to use the <a href="https://help.launchpad.net/StagingServer" target="_blank">launchpad staging server</a> to do a dry-run if I&#8217;m just testing.</p>
<p>This was my first time using launchpadlib to update information on Launchpad itself.  I have to say that it was a lot easier than I had originally thought it would be.</p>
<p>As of <a href="http://bazaar.launchpad.net/~bnrubin/%2Bjunk/lpteam/files/9" target="_blank">revision 9</a>, the code is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
cachedir = <span style="color: #483d8b;">'~/.launchpadlib/cache/'</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">optparse</span> <span style="color: #ff7700;font-weight:bold;">import</span> OptionParser
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> main<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
    usage = <span style="color: #483d8b;">'usage: %prog [options] username'</span>
    <span style="color: #dc143c;">parser</span> = OptionParser<span style="color: black;">&#40;</span>usage<span style="color: black;">&#41;</span>
    <span style="color: #dc143c;">parser</span>.<span style="color: black;">add_option</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'-f'</span>,<span style="color: #483d8b;">'--force'</span>,action=<span style="color: #483d8b;">'store_true'</span>,dest=<span style="color: #483d8b;">'force'</span>,
        <span style="color: #008000;">help</span>=<span style="color: #483d8b;">'add user regardless of membership in ubuntumembers'</span><span style="color: black;">&#41;</span>
    <span style="color: #dc143c;">parser</span>.<span style="color: black;">add_option</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'-s'</span>,<span style="color: #483d8b;">'--staging'</span>,action=<span style="color: #483d8b;">'store_true'</span>,dest=<span style="color: #483d8b;">'staging'</span>,
        <span style="color: #008000;">help</span>=<span style="color: #483d8b;">'preform events against the launchpad staging server'</span><span style="color: black;">&#41;</span>
&nbsp;
    options,args = <span style="color: #dc143c;">parser</span>.<span style="color: black;">parse_args</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>args<span style="color: black;">&#41;</span> <span style="color: #66cc66;">!</span>= <span style="color: #ff4500;">1</span>:
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Error: incorrect number of arguments'</span>
        <span style="color: #dc143c;">parser</span>.<span style="color: black;">print_help</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
        <span style="color: #dc143c;">sys</span>.<span style="color: black;">exit</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">from</span> launchpadlib.<span style="color: black;">launchpad</span> <span style="color: #ff7700;font-weight:bold;">import</span> Launchpad,STAGING_SERVICE_ROOT,EDGE_SERVICE_ROOT
    <span style="color: #ff7700;font-weight:bold;">from</span> launchpadlib.<span style="color: black;">errors</span> <span style="color: #ff7700;font-weight:bold;">import</span> HTTPError
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">if</span> options.<span style="color: black;">staging</span>:
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Warning: using staging.launchpad.net'</span>
        service = STAGING_SERVICE_ROOT
    <span style="color: #ff7700;font-weight:bold;">else</span>:
        service = EDGE_SERVICE_ROOT
&nbsp;
    launchpad = Launchpad.<span style="color: black;">login_with</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'irc_lpteam'</span>,service,cachedir<span style="color: black;">&#41;</span>
    membername = args<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>
    teamname=<span style="color: #483d8b;">'ubuntu-irc-cloaks'</span>
&nbsp;
    team = launchpad.<span style="color: black;">people</span><span style="color: black;">&#91;</span>teamname<span style="color: black;">&#93;</span>
    member = launchpad.<span style="color: black;">people</span><span style="color: black;">&#91;</span>membername<span style="color: black;">&#93;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #483d8b;">'ubuntumembers'</span> <span style="color: #ff7700;font-weight:bold;">in</span>  <span style="color: black;">&#91;</span>e.<span style="color: black;">name</span> <span style="color: #ff7700;font-weight:bold;">for</span> e <span style="color: #ff7700;font-weight:bold;">in</span> member.<span style="color: black;">super_teams</span><span style="color: black;">&#93;</span>:
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;'%s' (%s) is an Ubuntu Member&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>member.<span style="color: black;">display_name</span>,membername<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Attempting to add '%s' (%s) to '%s' (%s)...&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>member.<span style="color: black;">display_name</span>,membername,team.<span style="color: black;">display_name</span>,teamname<span style="color: black;">&#41;</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">try</span>:
            status = team.<span style="color: black;">addMember</span><span style="color: black;">&#40;</span>person=member,status=<span style="color: #483d8b;">&quot;Approved&quot;</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">except</span> HTTPError <span style="color: #ff7700;font-weight:bold;">as</span> error:
            <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Error: %s has occurred&quot;</span> <span style="color: #66cc66;">%</span> error
            <span style="color: #dc143c;">sys</span>.<span style="color: black;">exit</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">else</span>:
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;'%s' (%s) does not appear to be an Ubuntu Member.&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>member.<span style="color: black;">display_name</span>,membername<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">if</span> options.<span style="color: black;">force</span>:
            <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Warning: force enabled, adding to team anyway'</span>
            <span style="color: #ff7700;font-weight:bold;">try</span>:
                status = team.<span style="color: black;">addMember</span><span style="color: black;">&#40;</span>person=member,status=<span style="color: #483d8b;">&quot;Approved&quot;</span><span style="color: black;">&#41;</span>
            <span style="color: #ff7700;font-weight:bold;">except</span> HTTPError <span style="color: #ff7700;font-weight:bold;">as</span> error:
                <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Error: %s has occurred&quot;</span> <span style="color: #66cc66;">%</span> error
                <span style="color: #dc143c;">sys</span>.<span style="color: black;">exit</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Success!'</span>
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">&quot;__main__&quot;</span>:
    main<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>The latest code is available <a href="https://code.launchpad.net/~bnrubin/+junk/lpteam" target="_blank">here</a> for anyone who wants to play around with it themselves.</p>
<pre>Note: I have filed a <a href="https://launchpad.net/bugs/494136" target="_blank">bug</a> against launchpad that could make it easier to add people to teams.</pre>
]]></content:encoded>
			<wfw:commentRss>http://nullcortex.com/2009/12/saving-time-with-launchpadlib/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>UDS Lucid: IRC Council Recap</title>
		<link>http://nullcortex.com/2009/11/uds-irc-council-recap/</link>
		<comments>http://nullcortex.com/2009/11/uds-irc-council-recap/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 23:22:42 +0000</pubDate>
		<dc:creator>bnrubin</dc:creator>
				<category><![CDATA[IRC]]></category>
		<category><![CDATA[IRC Council]]></category>
		<category><![CDATA[Lucid]]></category>
		<category><![CDATA[UDS]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://nullcortex.com/?p=88</guid>
		<description><![CDATA[Well folks, UDS is over.  I had a lot of fun and got to know a bunch of people who I had only spoken to IRC before.  The IRC Council itself had a total of three sessions over the course of the week.  We have a lot of work ahead of us, some of our [...]]]></description>
			<content:encoded><![CDATA[<p>Well folks, UDS is over.  I had a lot of fun and got to know a bunch of people who I had only spoken to IRC before.  The <a href="https://launchpad.net/~ubuntu-irc-council" target="_blank">IRC Council</a> itself had a total of three sessions over the course of the week.  We have a lot of work ahead of us, some of our tasks are as follows:</p>
<h3>Prune Channel Access Lists:</h3>
<p>Currently about half of the people on our core channel access lists are inactive.  Some of them now contribute to other parts of Ubuntu, while others simply do not contribute at all.  Soon we will be using Launchpad teams to ensure that our operators are active and interested.  Eventually we&#8217;d like to have an automated process whereby operators with expired team memberships are automatically removed from the access lists.</p>
<h3>Develop an Application Process for New Operators:</h3>
<p>Presently when we feel that we need more operators we use a set of undocumented guidelines to pick from a pool of IRC helpers.  The IRCC will work towards creating a documented set of criteria that potential operators must meet.</p>
<h3>Document Operator Assessment Process:</h3>
<p>We currently do not have a written, or scheduled, assessment process for current operators.  With the team membership expiration dates going in, we will need a way to assess operators who wish to keep their channel privileges.  Working from the operator guidelines and the new operator application procedures, we will put together an assessment document that we may compare our current ops against.</p>
<h3>Membership Approval:</h3>
<p>As its stands now, people who contribute extensively via IRC are left to apply for membership via their respective regional membership boards.  We will be working with the Community Council to come up with a set of IRC-specific requirements so that we may approve these new members directly.</p>
<h3>IRC Tracker:</h3>
<p>We also have a long list of new suggested features for our <a href="https://launchpad.net/bantrackertwo">IRC Tracker</a> (previously called BantrackerTwo):</p>
<ul>
<li>MyBans page</li>
<li>Mode generator for ban removals</li>
<li>Concept of relationships between events</li>
<li>Anonymous access</li>
<li>Links to the appeals process for banned users</li>
<li>Aliases/tags for nicks</li>
<li>API</li>
<li>Better bot to tracker interface</li>
<li>Bot nagging for comments after an event occurs</li>
<li>Human readable URLs throughout</li>
<li>Improved interface for Encyclopedia (factoid) plugins</li>
<li>Suggested factoid queue moderation</li>
</ul>
<p>As you can see, we&#8217;re going to be very busy in the next few months.</p>
]]></content:encoded>
			<wfw:commentRss>http://nullcortex.com/2009/11/uds-irc-council-recap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox rmadison Plugin</title>
		<link>http://nullcortex.com/2008/12/firefox-rmadison-plugin/</link>
		<comments>http://nullcortex.com/2008/12/firefox-rmadison-plugin/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 15:58:02 +0000</pubDate>
		<dc:creator>bnrubin</dc:creator>
				<category><![CDATA[IRC]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[devscripts]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[mycroft]]></category>
		<category><![CDATA[rmadison]]></category>
		<category><![CDATA[searchplugin]]></category>

		<guid isPermaLink="false">http://nullcortex.com/?p=50</guid>
		<description><![CDATA[While my laptop was under the knife during the past week or so, I was using my Linode to get my Ubuntu fix.  Although I have quite a bit of space free, I wanted to avoid installing extra packages that I would only end up using while my other computer was out of commission. One [...]]]></description>
			<content:encoded><![CDATA[<p>While my laptop was under the knife during the past week or so, I was using my <a href="http://www.linode.com">Linode</a> to get my Ubuntu fix.  Although I have quite a bit of space free, I wanted to avoid installing extra packages that I would only end up using while my other computer was out of commission.</p>
<p>One such package was devscripts; I make heavy use of the <a href="http://manpages.ubuntu.com/manpages/intrepid/en/man1/rmadison.html">rmadison</a> command when doing support in #ubuntu.  While I could probably have easily just used the basic interface for searching, I wanted something a bit nicer.  I settled for using Mozilla&#8217;s <a href="http://mycroft.mozdev.org/index.html">Mycroft</a> to create a SearchPlugin that could be added to Firefox&#8217;s search bar.</p>
<p>The plugin itself can be found <a href="http://mycroft.mozdev.org/search-engines.html?name=Ubuntu+Madison&amp;skipcache=yes">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://nullcortex.com/2008/12/firefox-rmadison-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Intrepid Released!</title>
		<link>http://nullcortex.com/2008/10/intrepid-released/</link>
		<comments>http://nullcortex.com/2008/10/intrepid-released/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 14:41:18 +0000</pubDate>
		<dc:creator>bnrubin</dc:creator>
				<category><![CDATA[IRC]]></category>
		<category><![CDATA[Intrepid]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://nullcortex.com/?p=25</guid>
		<description><![CDATA[Congrats to everyone on the release of Intrepid Ibex.  You&#8217;ve all done a great job. #ubuntu has be wonderfully busy since the release announcement.  We&#8217;re currently hovering around 1500 users in channel. Some of the first packages for Jaunty were just uploaded.  I&#8217;m waiting patiently for the time where the archives are at a state [...]]]></description>
			<content:encoded><![CDATA[<p>Congrats to everyone on the <a href="https://lists.ubuntu.com/archives/ubuntu-announce/2008-October/000116.html">release</a> of Intrepid Ibex.  You&#8217;ve all done a great job.</p>
<p>#ubuntu has be wonderfully busy since the release announcement.  We&#8217;re currently hovering around 1500 users in channel.</p>
<p>Some of the <a href="https://lists.ubuntu.com/archives/jaunty-changes/2008-October/000000.html">first packages</a> for <a href="https://lists.ubuntu.com/archives/ubuntu-devel-announce/2008-September/000481.html">Jaunty</a> were just uploaded.  I&#8217;m waiting patiently for the time where the archives are at a state where they can start being tested.</p>
]]></content:encoded>
			<wfw:commentRss>http://nullcortex.com/2008/10/intrepid-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nano Nano</title>
		<link>http://nullcortex.com/2008/07/nano-nano/</link>
		<comments>http://nullcortex.com/2008/07/nano-nano/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 17:35:00 +0000</pubDate>
		<dc:creator>bnrubin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nano]]></category>

		<guid isPermaLink="false">http://nullcortex.com/?p=7</guid>
		<description><![CDATA[I use nano as my primary CLI editor.  It may not have as many features as vi(m) or Emacs (in no particular order), it is fast and easy for me. One of the features that many people do not realize that nano supports is syntax highlighting.  This can quickly and easily be enabled by following [...]]]></description>
			<content:encoded><![CDATA[<p>I use nano as my primary CLI editor.  It may not have as many features as vi(m) or Emacs (in no particular order), it is fast and easy for me.</p>
<p>One of the features that many people do not realize that nano supports is syntax highlighting.  This can quickly and easily be enabled by following these directions:</p>
<p>nano will automatically read in ~/.nanorc if it exists.  Since you probably don&#8217;t have that file there already, go ahead and copy the sample file out of /etc:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #7a0874; font-weight: bold;">&#91;</span>pici<span style="color: #000000; font-weight: bold;">@</span>romulus:~<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nanorc ~<span style="color: #000000; font-weight: bold;">/</span>.nanorc</pre></div></div>

<p>Highlighting for each language needs to be turned on explicitly in your new .nanorc file.  In Intrepid, the lines specifying each language begin around line 217, which is probably around the same area in other releases.  If not, this is what you&#8217;re looking for something similar to this:</p>
<h5>some default languages supported by nanorc:</h5>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">## Nanorc files</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/nanorc.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## C/C++</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/c.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## HTML</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/html.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## TeX</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/tex.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Quoted emails (under e.g. mutt)</span>
<span style="color: #666666; font-style: italic;"># include &quot;/usr/share/nano/mutt.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Patch files</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/patch.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Manpages</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/man.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Groff</span>
<span style="color: #666666; font-style: italic;"># include &quot;/usr/share/nano/groff.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Perl</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/perl.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Python</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/python.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Ruby</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/ruby.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Java</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/java.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Assembler</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/asm.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## Bourne shell scripts</span>
include <span style="color: #ff0000;">&quot;/usr/share/nano/sh.nanorc&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## POV-Ray</span>
<span style="color: #666666; font-style: italic;">#include &quot;/usr/share/nano/pov.nanorc&quot;</span></pre></div></div>

<p>Go ahead and remove the hash from each include statement for the languages you wish to enable, and you&#8217;re all done.</p>
<p>Some other options that I find helpful to have in my .nanorc are as follows:</p>
<h5>Other options:</h5>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">## Setup tabs</span>
<span style="color: #000000; font-weight: bold;">set</span> autoindent
<span style="color: #000000; font-weight: bold;">set</span> tabstospaces
<span style="color: #000000; font-weight: bold;">set</span> tabsize <span style="color: #ff0000;">&quot;4&quot;</span>
<span style="color: #666666; font-style: italic;">## Don't wrap text at all.</span>
<span style="color: #000000; font-weight: bold;">set</span> nowrap</pre></div></div>

<p><i>Screenshot coming soon.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://nullcortex.com/2008/07/nano-nano/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
