<?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>Chaotic Ordering</title>
	<atom:link href="http://www.nirev.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nirev.org</link>
	<description>Code, Books, Music, stuff.</description>
	<lastBuildDate>Fri, 01 Feb 2013 03:51:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Natural Scrolling in Linux</title>
		<link>http://www.nirev.org/2013/02/natural-scrolling-in-linux/</link>
		<comments>http://www.nirev.org/2013/02/natural-scrolling-in-linux/#comments</comments>
		<pubDate>Fri, 01 Feb 2013 03:51:02 +0000</pubDate>
		<dc:creator>nirev</dc:creator>
				<category><![CDATA[Random tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[natural scrolling]]></category>
		<category><![CDATA[rolagem natural]]></category>
		<category><![CDATA[xmodmap]]></category>

		<guid isPermaLink="false">http://www.nirev.org/?p=80</guid>
		<description><![CDATA[This is just a quickie. Recently I started working at a company where all the devstations are MacMinis. I never used Macs before, but so far so good. The only thing that was annoying me was my brain farts when moving from natural scrolling (1) to the common people scrolling. 1. Natural Scrolling is how [...]]]></description>
				<content:encoded><![CDATA[<p>This is just a quickie.</p>
<p>Recently I started working at a company where all the devstations are MacMinis. I never used Macs before, but so far so good.<br />
The only thing that was annoying me was my brain farts when moving from natural scrolling (1) to the common people scrolling.</p>
<p>1. Natural Scrolling is how they call the mac osx scrolling, where you roll down your mouse whell to roll up the scrollbar, and roll up the mouse whell to roll down the scrollbar.</p>
<p>I decided to have my Linux use natural scrolling and get rid of this, and it&#8217;s quite easy!</p>

<div class="wp-shkshell"><span class="wp-shkshell-prompt">$</span> <span class="wp-shkshell-command">echo</span> <span class="wp-shkshell-string">"pointer = 1 2 3 5 4 7 6 8 9 10 11 12"</span> <span class="wp-shkshell-special">></span><span class="wp-shkshell-special">></span> <span class="wp-shkshell-path">~/.Xmodmap</span><br /><span class="wp-shkshell-prompt">$</span> <span class="wp-shkshell-command">xmodmap</span> <span class="wp-shkshell-path">~/.Xmodmap</span><br /></div>

<p>The synaptics driver uses the buttons 4 and 5 for up and down scrolling, and  with the above xmodmap configuration we&#8217;re just swapping the two of them!</p>
<p>Extra:  If you&#8217;d like to change this on the fly with a GUI, there&#8217;s the &#8220;NaturalScrolling&#8221; project on github. But I didn&#8217;t test it.</p>
<p>https://github.com/cemmanouilidis/naturalscrolling#readme</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nirev.org/2013/02/natural-scrolling-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spliting BibTeX references into different categories</title>
		<link>http://www.nirev.org/2012/07/spliting-bibtex-references-into-different-categories/</link>
		<comments>http://www.nirev.org/2012/07/spliting-bibtex-references-into-different-categories/#comments</comments>
		<pubDate>Tue, 24 Jul 2012 20:04:36 +0000</pubDate>
		<dc:creator>nirev</dc:creator>
				<category><![CDATA[Random tips]]></category>
		<category><![CDATA[Biblatex]]></category>
		<category><![CDATA[BibTeX]]></category>
		<category><![CDATA[LaTex]]></category>

		<guid isPermaLink="false">http://www.nirev.org/?p=37</guid>
		<description><![CDATA[I tend to write all my academic papers in LaTeX. I like the idea of it, I like the separation of content and style, I think the output looks good *most* of the times, and, above all, I think managing bibliography with latex is the best option so far. This post is about managing references. [...]]]></description>
				<content:encoded><![CDATA[<p>I tend to write all my academic papers in LaTeX. I like the idea of it, I like the separation of content and style, I think the output looks good *most* of the times, and, above all, I think managing bibliography with latex is the best option so far.</p>
<p>This post is about managing references. Specifically, about when you want to split your latex references in different categories. Maybe you&#8217;d like to list Books and Journals apart from other references, maybe you&#8217;re writing a review, a state-of-the-art analysis, and you&#8217;d like to separate the analyzed works from others you cite along. I had to do both, and found a few different options.</p>
<p>So, here they are:</p>
<h4>1. Using different .bib files for each category</h4>
<p>Package: <a href="http://www.ctan.org/pkg/bibtopic">bibtopic</a><br />
Manual: <a href="http://mirror.ctan.org/macros/latex/contrib/bibtopic/bibtopic.pdf">http://mirror.ctan.org/macros/latex/contrib/bibtopic/bibtopic.pdf</a></p>
<p>Example:</p>
<pre class="brush: latex; highlight: [2,10,12,13,17,21,22,25,27,28]; title: ; notranslate">
\documentclass{article}
\usepackage{bibtopic}

\begin{document}
 \bibliographystyle{alpha}
\section{Citing things}
\cite{somebook}. \cite{otherbook}, \cite{somepaper}.
 
% File books.bib is use for this listing:
\begin{btSect}{books}
\section{References from books}
\btPrintCited
\end{btSect}

% File articles.bib is used here, and the listing is in 
% plain-format instead of the standard alpha:
\begin{btSect}[plain]{articles}
\section{References from articles}
\btPrintCited
\section{Articles not cited}
\btPrintNotCited
\end{btSect}

% Print alll entries from internet.bib:
\begin{btSect}{Internet}
\section{References from teh Internets}
\btPrintAll
\end{btSect}
\end{document}
</pre>
<h4>2. Using a single .bib, and manually separating references using different citation commands</h4>
<p>Package: <a href="http://www.ctan.org/pkg/multibib">multibib</a><br />
Manual: <a href="http://mirror.ctan.org/macros/latex/contrib/multibib/multibib.pdf">http://mirror.ctan.org/macros/latex/contrib/multibib/multibib.pdf</a></p>
<p>This creates a different citation command (&#8220;citesel&#8221; in the example) for each category other than the<br />
default one.</p>
<p>Example:</p>
<pre class="brush: latex; highlight: [2,3,7,10,11]; title: ; notranslate">
\documentclass{article}
\usepackage{multibib}
\newcites{sel}{Selected works}

\begin{document}
\cite{ref1}
\citesel{ref2}

% Selected works (refs.bib)
\bibliographystylesel{spmpsci}
\bibliographysel{refs}

% Other (refs.bib)
\bibliographystyle{spmpsci}
\bibliography{refs}

\end{document}
</pre>
<h4>3. Split based on reference properties</h4>
<p>Package: <a href="http://www.ctan.org/pkg/biblatex">biblatex</a><br />
Manual: <a href="http://mirror.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf">http://mirror.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf</a></p>
<p>You can use other properties than type to filter them. You should read the manual if that&#8217;s the case!</p>
<p>Example:</p>
<pre class="brush: latex; highlight: [2,9,10]; title: ; notranslate">
\documentclass{article}
\usepackage[defernumbers=true]{biblatex}

\addbibresource{\refs.bib}
\nocite{*}

\begin{document}

\printbibliography[title={Books},type=book]
\printbibliography[title={Other References},nottype=book]

\end{document}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.nirev.org/2012/07/spliting-bibtex-references-into-different-categories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using local jars in a maven project</title>
		<link>http://www.nirev.org/2012/07/using-local-jars-in-a-maven-project/</link>
		<comments>http://www.nirev.org/2012/07/using-local-jars-in-a-maven-project/#comments</comments>
		<pubDate>Mon, 16 Jul 2012 09:57:11 +0000</pubDate>
		<dc:creator>nirev</dc:creator>
				<category><![CDATA[Random tips]]></category>
		<category><![CDATA[dependencies]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[local repository]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.nirev.org/?p=24</guid>
		<description><![CDATA[Maven is great, really, but sometimes you just have to use that obscure jar library that isn&#8217;t in any maven repository. You know, not everyone uses maven. So, how do you handle this type of dependencies? This is what I do, and you might find it useful: I create a local repository within the project. [...]]]></description>
				<content:encoded><![CDATA[<p>Maven is great, really, but sometimes you just have to use that obscure jar library that isn&#8217;t in any maven repository. You know, not everyone uses maven.</p>
<p>So, how do you handle this type of dependencies? This is what I do, and you might find it useful: I create a local repository within the project. This way you can put everything in you version control system, and have maven deal with everything. Also, if you have several subprojects using the same library, you can create the local repository in the toplevel.</p>
<p>OK. Sounds good, right? Here&#8217;s how I do it:</p>
<ol>
<li>Create a directory under the project. I always use &#8220;lib&#8221;</li>
<li>Install the jar libs to this directory using:

<div class="wp-shkshell"><span class="wp-shkshell-prompt">$</span> <span class="wp-shkshell-command">mvn</span> install:install-file -Dfile=<span class="wp-shkshell-special"><</span>jar_file<span class="wp-shkshell-special">></span>  -DgroupId=<span class="wp-shkshell-special"><</span>groupId<span class="wp-shkshell-special">></span> -DartifactId=<span class="wp-shkshell-special"><</span>artifactId<span class="wp-shkshell-special">></span> -Dversion=<span class="wp-shkshell-special"><</span>version<span class="wp-shkshell-special">></span> -Dpackaging=jar -DlocalRepositoryPath=<span class="wp-shkshell-special"><</span>path_to_lib_dir<span class="wp-shkshell-special">></span><br /></div>

</li>
<li>Add the repository to you POM file:
<pre class="brush: xml; title: ; notranslate">
&lt;repositories&gt;
    &lt;repository&gt;
        &lt;id&gt;lib&lt;/id&gt;
        &lt;url&gt;file://${project.basedir}/lib&lt;/url&gt;
    &lt;/repository&gt;
&lt;/repositories&gt;
</pre>
</li>
<li>Add the dependencies for whatever jars you&#8217;ve added to your local repo</li>
<li>Joy.</li>
</ol>
<p>And that&#8217;s it. If you want to share a different solution, please do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nirev.org/2012/07/using-local-jars-in-a-maven-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is this about?</title>
		<link>http://www.nirev.org/2012/07/what-is-this-about/</link>
		<comments>http://www.nirev.org/2012/07/what-is-this-about/#comments</comments>
		<pubDate>Wed, 11 Jul 2012 15:07:40 +0000</pubDate>
		<dc:creator>nirev</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.nirev.org/?p=17</guid>
		<description><![CDATA[I find it always hard to start blogging. I&#8217;ve tried it before, several times. It always goes like this: Create blog Get really excited about it Post a few things Make a list of things to talk about when you have the time to write Get distracted by life, the universe, and everything Lost interest [...]]]></description>
				<content:encoded><![CDATA[<p>I find it always hard to start blogging. I&#8217;ve tried it before, several times. It always goes like this:</p>
<ol>
<li>Create blog</li>
<li>Get really excited about it</li>
<li>Post a few things</li>
<li>Make a list of things to talk about when you have the time to write</li>
<li>Get distracted by life, the universe, and everything</li>
<li>Lost interest</li>
</ol>
<p>So, yeah. I blog heavily for a month and then it dies.</p>
<p>This time, I want to do something different. I&#8217;ll mix everything, as always, music tips, books, movies, and so on,  but this time  I&#8217;ll focus on one thing: programmer related tips. How to configure to get  that crazy JavaEE container feature to work. What is the best way to revert a specific commit in SVN. Stuff like that.</p>
<p>I hope it works out this time, as I really think it&#8217;s important to share knowledge.</p>
<p>This is it. Wish me luck, and all the best to you excelent almost non-existent readers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nirev.org/2012/07/what-is-this-about/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
