<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="WordPress/2.9.1" --><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="0.92">
<channel>
	<title>Code Comments</title>
	<link>http://code.hammerpig.com</link>
	<description>Tips and short tutorials on various programming technologies</description>
	<lastBuildDate>Tue, 25 May 2010 14:35:06 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/xml" href="http://feeds.feedburner.com/CodeComments" /><feedburner:info uri="codecomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>CodeComments</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Simple Multi-Threading Example in Java</title>
		<description>This week I spent some time figuring out how to use multiple threads in Java. Well, really, I just learned the basics. But it was enough to get a functional example working, and it took me less time than I anticipated. I won&amp;#8217;t go into a lot of detail on how to do this because [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8yZDb3kpVmh0skPs4KunlRZUZW4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8yZDb3kpVmh0skPs4KunlRZUZW4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8yZDb3kpVmh0skPs4KunlRZUZW4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8yZDb3kpVmh0skPs4KunlRZUZW4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/Vvw8VN7F2pQ" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/Vvw8VN7F2pQ/simple-multithreading-java.html</link>
			<feedburner:origLink>http://code.hammerpig.com/simple-multithreading-java.html</feedburner:origLink></item>
	<item>
		<title>How to Add a Footnote With No Number in LaTeX</title>
		<description>In LaTeX, it is very easy to create footnotes. The simplest way is to use this syntax:

\footnote&amp;#123;put text here&amp;#125;

In some cases, you might want to suppress the number on a footnote. I looked around the web, and a few suggestions were out there, but the simplest one I could find was the following:

\let\thefootnote\relax\footnotetext&amp;#123;put text here&amp;#125;

Depending [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lr8t-R-pX76YhH2TIhpm1NFZHUY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lr8t-R-pX76YhH2TIhpm1NFZHUY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lr8t-R-pX76YhH2TIhpm1NFZHUY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lr8t-R-pX76YhH2TIhpm1NFZHUY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/i37UDPi7gDM" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/i37UDPi7gDM/add-footnote-number-latex.html</link>
			<feedburner:origLink>http://code.hammerpig.com/add-footnote-number-latex.html</feedburner:origLink></item>
	<item>
		<title>Adding Math/Greek Symbols in LaTeX Text Mode</title>
		<description>One of the strengths of LaTeX is that it handles special symbols quite well and is well suited for mathematical annotation in general. However, sometimes you need to add special symbols to the main body of your document and it doesn&amp;#8217;t make sense to do it in math mode. Two examples of this are when [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/D6wB5RoeapZfB9lDsh65xxLornE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D6wB5RoeapZfB9lDsh65xxLornE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/D6wB5RoeapZfB9lDsh65xxLornE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D6wB5RoeapZfB9lDsh65xxLornE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/StFWdsky8Us" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/StFWdsky8Us/adding-mathgreek-symbols-latex-text-mode.html</link>
			<feedburner:origLink>http://code.hammerpig.com/adding-mathgreek-symbols-latex-text-mode.html</feedburner:origLink></item>
	<item>
		<title>Putting Labels Above Bars in Barplots in R</title>
		<description>Let&amp;#8217;s say you are creating a barplot in R. Sometimes you want to label the bars below the X axis. But sometimes you might also want to put a label above the bars. This is pretty easy to do but a little hidden. Below is a working example based on randomly generated data that illustrates [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YbaeE-OVDyPWco90XzWWTfnLt7Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YbaeE-OVDyPWco90XzWWTfnLt7Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YbaeE-OVDyPWco90XzWWTfnLt7Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YbaeE-OVDyPWco90XzWWTfnLt7Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/HRBhVrWmUS4" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/HRBhVrWmUS4/putting-labels-bars-barplots.html</link>
			<feedburner:origLink>http://code.hammerpig.com/putting-labels-bars-barplots.html</feedburner:origLink></item>
	<item>
		<title>Creating a Shortcut to Open Terminal in Specific Directory in Ubuntu</title>
		<description>I finally made the leap to doing most of my research on computers that run on Linux. The distribution I&amp;#8217;m using is Ubuntu. So far I&amp;#8217;ve found it quite good. One thing I do frequently is open a Terminal (command) window in a specific directory. However, when you open the Terminal, it by default opens [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0QZPAguvhbT-GBRcdHeLCnV0pq0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0QZPAguvhbT-GBRcdHeLCnV0pq0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0QZPAguvhbT-GBRcdHeLCnV0pq0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0QZPAguvhbT-GBRcdHeLCnV0pq0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/aMMAr-YUIbM" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/aMMAr-YUIbM/creating-shortcut-open-terminal-specific-directory-ubuntu.html</link>
			<feedburner:origLink>http://code.hammerpig.com/creating-shortcut-open-terminal-specific-directory-ubuntu.html</feedburner:origLink></item>
	<item>
		<title>Solving “cannot find xml2-config” on Ubuntu 9.10</title>
		<description>I was trying to install some packages in R recently that depended on the XML package. I used the nifty install.packages() command, but I was getting an error:
&amp;#8220;cannot find xml2-config&amp;#8221;
This error was preventing these other packages from being installed properly. It turns out that I needed to install a library called libxml2-dev. In my case, [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/u611xo-mVT3jhHYvinPl_dER390/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u611xo-mVT3jhHYvinPl_dER390/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/u611xo-mVT3jhHYvinPl_dER390/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u611xo-mVT3jhHYvinPl_dER390/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/Cvasb42Px2Q" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/Cvasb42Px2Q/solving-find-xml2config-ubuntu-910.html</link>
			<feedburner:origLink>http://code.hammerpig.com/solving-find-xml2config-ubuntu-910.html</feedburner:origLink></item>
	<item>
		<title>How to Create a Simple ROC Curve</title>
		<description>I&amp;#8217;m using the R statistical package and the ROCR package within that. Both of these are free and very flexible. Sometimes with that flexibility comes ambiguity as to what you should do to accomplish a relatively simple task. I am doing a data-mining (machine-learning) project in which I predict a cancer patient&amp;#8217;s prognosis. The algorithms [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/a9zUrlq0iIcDwHMk8Cg6SxYQqp8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/a9zUrlq0iIcDwHMk8Cg6SxYQqp8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/a9zUrlq0iIcDwHMk8Cg6SxYQqp8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/a9zUrlq0iIcDwHMk8Cg6SxYQqp8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/Izvc3El9Wgw" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/Izvc3El9Wgw/create-simple-roc-curve.html</link>
			<feedburner:origLink>http://code.hammerpig.com/create-simple-roc-curve.html</feedburner:origLink></item>
	<item>
		<title>How to Access Slots in S4 Classes in R: Area Under Curve Example</title>
		<description>In the R statistical package, you have various ways of representing and packaging data. The most simple is in a single variable. More complex representations include vectors, lists, matrices, and data frames. An even more complex representation is S4 Classes, which are intended to simulate object-oriented programming in R.
I was using an R package that [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DX2vivonLffhV3rdObyGuxtgM6I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DX2vivonLffhV3rdObyGuxtgM6I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DX2vivonLffhV3rdObyGuxtgM6I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DX2vivonLffhV3rdObyGuxtgM6I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/CXjtWnQYboo" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/CXjtWnQYboo/access-slots-s4-classes.html</link>
			<feedburner:origLink>http://code.hammerpig.com/access-slots-s4-classes.html</feedburner:origLink></item>
	<item>
		<title>How to Restart Figure and Page Numbering in LaTeX</title>
		<description>When you&amp;#8217;re creating a document with LaTeX, you sometimes want to restart the page numbering. In my case, it&amp;#8217;s because I have an appendix (supplementary methods) section in a paper I&amp;#8217;m writing. I want to be able to reference the figures in this section starting at 1 rather than starting at the number of the [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CaX-283Tg-IRwy0PFXEs8fPeTEo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CaX-283Tg-IRwy0PFXEs8fPeTEo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CaX-283Tg-IRwy0PFXEs8fPeTEo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CaX-283Tg-IRwy0PFXEs8fPeTEo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/6o3gE47JCEw" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/6o3gE47JCEw/restart-figure-page-numbering-latex.html</link>
			<feedburner:origLink>http://code.hammerpig.com/restart-figure-page-numbering-latex.html</feedburner:origLink></item>
	<item>
		<title>Dynamically Invoke a Function in Python</title>
		<description>In this post, I referred to an article that explains how to invoke methods dynamically (when you have the name of the method as a string object). Today I ran into a problem where I needed to do this, but the methods were not contained within a class. I just had them declared in my [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fynK_6rvwxppJ8LyDe4632YmlxA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fynK_6rvwxppJ8LyDe4632YmlxA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fynK_6rvwxppJ8LyDe4632YmlxA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fynK_6rvwxppJ8LyDe4632YmlxA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/CodeComments/~4/QItXAJC4mmw" height="1" width="1"/&gt;</description>
		<link>http://feedproxy.google.com/~r/CodeComments/~3/QItXAJC4mmw/dynamically-invoke-function-python.html</link>
			<feedburner:origLink>http://code.hammerpig.com/dynamically-invoke-function-python.html</feedburner:origLink></item>
</channel>
</rss>
