<?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>Milton Soares Filho &#187; Tech</title>
	<atom:link href="http://blog.msoares.pro.br/categories/tech/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.msoares.pro.br</link>
	<description>Random rants and SW developers' stuff</description>
	<lastBuildDate>Mon, 08 Aug 2011 16:02:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hiding that horrible tabline in Vim</title>
		<link>http://blog.msoares.pro.br/archives/hiding-that-horrible-tabline-in-vim</link>
		<comments>http://blog.msoares.pro.br/archives/hiding-that-horrible-tabline-in-vim#comments</comments>
		<pubDate>Thu, 20 Jan 2011 04:26:52 +0000</pubDate>
		<dc:creator>milton</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.msoares.pro.br/?p=223</guid>
		<description><![CDATA[Long time no post in here, sorry. Since I&#8217;ve had the chance to review Kim Schulz&#8217;s Hacking Vim 7.2 ebook1 and a friend of mine started using vim as his main development tool, digging into Vim&#8217;s configurations and flavours has become somewhat even more pleasant. In an attempt to improve my performance when editing various [...]]]></description>
			<content:encoded><![CDATA[<p>Long time no post in here, sorry.</p>

<p>Since I&#8217;ve had the chance to review Kim Schulz&#8217;s <a href="https://www.packtpub.com/hacking-vim-7-2/book">Hacking Vim 7.2</a> ebook<sup class="footnote"><a href="#fn1">1</a></sup> and a friend of mine started using vim as his main development tool, digging into Vim&#8217;s configurations and flavours has become somewhat even more pleasant.</p>

<p>In an attempt to improve my performance when editing various files, I&#8217;m trying to use <code>tabpages</code> instead of only several <code>windows</code>. It&#8217;s been working as some kind of context stack for me, as there can be one <code>tabpage</code> (probably with fewer <code>windows</code>) for modifying files from a project and another <code>tabpage</code> for a different but related one (or a non-related task in the same project). Plus, using more <code>tabpages</code> and less <code>windows</code> can save precious screen space.</p>

<p>But what to do about that odious <code>tabline</code> which, besides hurting my sense of aesthetics, eats a whole line of the screen? Thankfully to the Vim&#8217;s extremely flexible nature, it didn&#8217;t take long to find an answer. It came in form of disabling the <code>tabline</code> entirely and putting its only usable information into the <code>statusline</code>. Used a bit of scripting to overcome the only corner case I could think of and took the chance to try my rusty skills on python + vim bindings. Pretty much everything someone will need to put both domains together is in this little example (besides the vim module complete <span class="caps">API, </span>easily accessible by issuing <code>:h python</code>).</p>

<p><pre><code>function! MyTabMarker(disable)
python &lt;&lt; EOF
import vim
def tabpagecount():
        return int(vim.eval(&quot;tabpagenr('$')&quot;))
def tabpage():
        return int(vim.eval(&quot;tabpagenr()&quot;))
def tabmark():
        disable = int(vim.eval(&quot;a:disable&quot;))
        if tabpagecount() &gt; 1 and not disable:
                return &quot;\&quot;[tab %d/%d] \&quot;&quot; % (tabpage(), tabpagecount())
        return &quot;\&quot;\&quot;&quot;
vim.command(&quot;return &quot; + tabmark())
EOF
endfunction

set laststatus=2
set showtabline=0
set statusline=#%02n\ %{MyTabMarker(0)}%f\ %m%r%y%=\(%bd,%Bh)\ %c,%l/%L\ %P</code></pre></p>

<p>There you see how to pass arguments into python methods and how to feed values back from it to the vim environment. Eventually I&#8217;ll publish my entire .vimrc with comments so everyone can rant about how theirs way is better <img src='http://blog.msoares.pro.br/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<p>[1] as I&#8217;ve lost my notebook due to a robbery at the technical assistance, my review annotations were lost too. I&#8217;ll need to re-review the book to get something published about it then.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.msoares.pro.br/archives/hiding-that-horrible-tabline-in-vim/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>gource: OpenGL-based 3D visualisation tool for source control repositories</title>
		<link>http://blog.msoares.pro.br/archives/gource-opengl-based-3d-visualisation-tool-for-source-control-repositories</link>
		<comments>http://blog.msoares.pro.br/archives/gource-opengl-based-3d-visualisation-tool-for-source-control-repositories#comments</comments>
		<pubDate>Fri, 28 May 2010 14:42:04 +0000</pubDate>
		<dc:creator>milton</dc:creator>
				<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[devel]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[gource]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[VCS]]></category>

		<guid isPermaLink="false">http://blog.msoares.pro.br/?p=211</guid>
		<description><![CDATA[Too much fun the tool I&#8217;ve came to know through my friend Adenilson&#8217;s blog. In a glance one can explore effort put into a project in a way much better than any other command-line or graphical application known. The only boring thing is to use it in my machine, a hp pavilion dv4-2167sb, which, AFAIK, [...]]]></description>
			<content:encoded><![CDATA[<p>Too much fun the tool I&#8217;ve came to know through my friend Adenilson&#8217;s <a href="http://savago.wordpress.com/2010/05/21/6-months-of-plasma-in-10-minutes">blog</a>. In a glance one can explore effort put into a project in a way much better than any other command-line or graphical application known.</p>

<p>The only boring thing is to use it in my machine, a hp pavilion dv4-2167sb, which, <span class="caps">AFAIK, </span>still lacks a good graphical acceleration support.</p>

<p>I&#8217;ve made a very basic debian package (using <a href="http://checkinstall.izto.org/">checkinstall</a>) for people too lazy to compile/install by themselves.</p>

<p><a href="wp-content/uploads/2010/01/gource_0.26b-1_i386.deb">Enjoy it</a> and have fun!</p>]]></content:encoded>
			<wfw:commentRss>http://blog.msoares.pro.br/archives/gource-opengl-based-3d-visualisation-tool-for-source-control-repositories/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Old School Techniques</title>
		<link>http://blog.msoares.pro.br/archives/old-school-techniques</link>
		<comments>http://blog.msoares.pro.br/archives/old-school-techniques#comments</comments>
		<pubDate>Tue, 05 May 2009 22:24:52 +0000</pubDate>
		<dc:creator>milton</dc:creator>
				<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[devel]]></category>
		<category><![CDATA[past]]></category>

		<guid isPermaLink="false">http://blog.msoares.pro.br/?p=92</guid>
		<description><![CDATA[  <a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&#038;articleId=9132061">Old-school programming techniques you probably don't miss</a>

I'm not a <em>punch card time</em> guy, but concerns like memory footprint size, code running faster and thread limitations still go around my mind nowadays.]]></description>
			<content:encoded><![CDATA[<p>Talking about old times stuff at the breakfast, it was so fortunate that I&#8217;ve already read a post about this issue earlier today.</p>

<p>  <a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;articleId=9132061">Old-school programming techniques you probably don&#8217;t miss</a></p>

<p>I&#8217;m not a <em>punch card time</em> guy, but concerns like memory footprint size, code running faster and thread limitations still go around my mind nowadays.</p>

<p>Don&#8217;t forget to take a look at the comments section for more funny and informative stories.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.msoares.pro.br/archives/old-school-techniques/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Git References&#8217; Pointers</title>
		<link>http://blog.msoares.pro.br/archives/git-references-pointers</link>
		<comments>http://blog.msoares.pro.br/archives/git-references-pointers#comments</comments>
		<pubDate>Wed, 25 Mar 2009 12:47:39 +0000</pubDate>
		<dc:creator>milton</dc:creator>
				<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[devel]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[VCS]]></category>

		<guid isPermaLink="false">http://msoares.dreamhosters.com/?p=37</guid>
		<description><![CDATA[Earlier this year I&#8217;ve spent some time gathering references to study Git, the version control system everybody seems to love nowadays. Thankfully, someone took the time to bind several useful links in one central webpage. If you wanna start studying Git, that&#8217;s the place to start. Kudos for such practical people (more specifically Scott Charcon [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this year I&#8217;ve spent some time gathering references to study Git, the version control system everybody seems to love nowadays.</p>

<p>Thankfully, someone took the time to bind several useful links in one central webpage. If you wanna start studying Git, that&#8217;s the place to start. Kudos for such practical people (more specifically Scott Charcon and Petr Baudis).</p>

<p>  <a href="http://git-scm.com/documentation">http://git-scm.com/documentation</a></p>

<p>Just for reference, I&#8217;ll paste below the stuff I had.</p>

<blockquote>
Forwarded conversation<br />
Subject: Git Documentation Pointers<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
From: Milton Soares<br />
Date: Mon, Jan 19, 2009 at 12:33 PM

<p>Hi.</p>

<p>Just to organize and share all the references I&#8217;ve gathered about Git learning.</p>

<p>On-line Resources</p>

<p> $ git help git<br />
 $ man gittutorial</p>

<p>Git Homepage Resources</p>

<p> <a href="http://www.kernel.org/pub/software/scm/git/docs/everyday.html">http://www.kernel.org/pub/software/scm/git/docs/everyday.html</a><br />
 <a href="http://www.kernel.org/pub/software/scm/git/docs/user-manual.html">http://www.kernel.org/pub/software/scm/git/docs/user-manual.html</a></p>

<p><span class="caps">SVN </span>to Git crash course</p>

<p> <a href="http://git.or.cz/course/svn.html">http://git.or.cz/course/svn.html</a></p>

<p>Recording of the Git tutorial given by Bart Trojanowski for the <span class="caps">OGRE</span></p>

<p> <a href="http://excess.org/article/2008/07/ogre-git-tutorial/">http://excess.org/article/2008/07/ogre-git-tutorial/</a></p>

<p>Palestra Git para o Google by Linux Torvalds</p>

<p> <a href="http://br.youtube.com/watch?v=4XpnKHJAok8">http://br.youtube.com/watch?v=4XpnKHJAok8</a></p>

<p>Git from the bottom up</p>

<p> <a href="http://www.newartisans.com/blog_files/git.from.bottom.up.php">http://www.newartisans.com/blog_files/git.from.bottom.up.php</a></p>

<p>&#8212;&#8212;&#8212;-<br />
From: Milton Soares<br />
Date: Tue, Jan 20, 2009 at 4:36 PM</p>


<p>More pointers:</p>

<p>GitWine &#8211; git tips by wine people</p>

<p> <a href="http://wiki.winehq.org/GitWine#head-079f5369fdb9346845a4a8c82475eb7a198312be">http://wiki.winehq.org/GitWine#head-079f5369fdb9346845a4a8c82475eb7a198312be</a></p>

<p>Git Wizardry</p>

<p> <a href="http://www-cs-students.stanford.edu/~blynn/gitmagic/index.html">http://www-cs-students.stanford.edu/~blynn/gitmagic/index.html</a></p>

<p>Git Wiki</p>

<p> <a href="http://git.or.cz/gitwiki/">http://git.or.cz/gitwiki/</a></p>

<p>Git Cheat Sheet</p>

<p> <a href="http://ktown.kde.org/~zrusin/git/">http://ktown.kde.org/~zrusin/git/</a></p>

<p>&#8212;&#8212;&#8212;-<br />
From: Milton Soares Filho<br />
Date: Sat, Feb 21, 2009 at 11:15 AM</p>


<p>Yet another usefull link (pretty graphical explanations on git objects).</p>

<p>Tv&#8217;s cobweb: Git for Computer Scientists</p>

 <a href="http://eagain.net/articles/git-for-computer-scientists/">http://eagain.net/articles/git-for-computer-scientists/</a><br />
</blockquote>]]></content:encoded>
			<wfw:commentRss>http://blog.msoares.pro.br/archives/git-references-pointers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

