<?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>timmurphy.org</title>
	<atom:link href="http://timmurphy.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://timmurphy.org</link>
	<description>Software and etc.</description>
	<lastBuildDate>Tue, 08 May 2012 13:03:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>bool &amp;= bool in C++</title>
		<link>http://timmurphy.org/2012/05/08/bool-bitwise-and-equals-bool-in-c/</link>
		<comments>http://timmurphy.org/2012/05/08/bool-bitwise-and-equals-bool-in-c/#comments</comments>
		<pubDate>Tue, 08 May 2012 13:03:34 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[and]]></category>
		<category><![CDATA[bitwise]]></category>
		<category><![CDATA[bitwise-and]]></category>
		<category><![CDATA[bool]]></category>
		<category><![CDATA[boolean]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[logical-and]]></category>
		<category><![CDATA[operation]]></category>
		<category><![CDATA[operator]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1402</guid>
		<description><![CDATA[I&#8217;ve seen a few questions on the web about whether you can use the &#38;= operator safely with bool. This operator is a bitwise-AND, so you can&#8217;t use to logically AND other datatypes. bool is just one bit, but it&#8217;s possibly stored using a whole word size. It&#8217;s not obvious what the numeric value of [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/05/08/bool-bitwise-and-equals-bool-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Highlighting tabs in Vim</title>
		<link>http://timmurphy.org/2012/04/26/highlighting-tabs-in-vim/</link>
		<comments>http://timmurphy.org/2012/04/26/highlighting-tabs-in-vim/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 12:44:51 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Vim]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[indent]]></category>
		<category><![CDATA[spacing]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[tabs]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimrc]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1489</guid>
		<description><![CDATA[Some people like to indent code with tabs, and others like to indent with spaces. There are advantages and disadvantages to both. Regardless of which you prefer, it can be useful to see which indent style has been used. In Vim, you can do this by adding the following line to you .vimrc file (which [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/04/26/highlighting-tabs-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Decreasing boot time in Debian</title>
		<link>http://timmurphy.org/2012/04/09/decreasing-boot-time-in-debian/</link>
		<comments>http://timmurphy.org/2012/04/09/decreasing-boot-time-in-debian/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 14:50:22 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[boot loader]]></category>
		<category><![CDATA[boot time]]></category>
		<category><![CDATA[parallel]]></category>
		<category><![CDATA[rcS]]></category>
		<category><![CDATA[slow]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1398</guid>
		<description><![CDATA[If you think you&#8217;re debian install starts up too slowly, there&#8217;s a very easy way to speed it up: simply add this line to /etc/default/rcS: CONCURRENCY=shell If the file already contains CONCURRENCY=none then replace this line with the line above. This will make the startup scripts run in parallel where possible. Note: may break things [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/04/09/decreasing-boot-time-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Struct sizes in C++</title>
		<link>http://timmurphy.org/2012/03/24/struct-sizes-in-c/</link>
		<comments>http://timmurphy.org/2012/03/24/struct-sizes-in-c/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 20:09:37 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[align]]></category>
		<category><![CDATA[alignment]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[char]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[long]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[size]]></category>
		<category><![CDATA[sizeof]]></category>
		<category><![CDATA[standard]]></category>
		<category><![CDATA[stuct]]></category>
		<category><![CDATA[word]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1462</guid>
		<description><![CDATA[Consider the following program: #include &#60;iostream&#62; struct A { &#160;&#160;&#160;&#160;char a; &#160;&#160;&#160;&#160;long b; &#160;&#160;&#160;&#160;char c; }; struct B { &#160;&#160;&#160;&#160;char a; &#160;&#160;&#160;&#160;char c; &#160;&#160;&#160;&#160;long b; }; int main() { &#160;&#160;&#160;&#160;A a; &#160;&#160;&#160;&#160;B b; &#160;&#160;&#160;&#160;std::cout &#60;&#60; "sizeof(a): " &#60;&#60; sizeof(a) &#60;&#60; std::endl; &#160;&#160;&#160;&#160;std::cout &#60;&#60; "sizeof(b): " &#60;&#60; sizeof(b) &#60;&#60; std::endl; &#160;&#160;&#160;&#160;return 0; } To summarize, it [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/03/24/struct-sizes-in-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Convert a delimited string into an array in Bash</title>
		<link>http://timmurphy.org/2012/03/09/convert-a-delimited-string-into-an-array-in-bash/</link>
		<comments>http://timmurphy.org/2012/03/09/convert-a-delimited-string-into-an-array-in-bash/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 11:39:14 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[delimiter]]></category>
		<category><![CDATA[IFS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OIFS]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1377</guid>
		<description><![CDATA[If you&#8217;ve got a string of items in bash which are delimited by a common character (comma, space, tab, etc) you can split that into an array quite easily. Simply (re)define the IFS variable to the delimiter character and assign the values to a new variable using the array=($&#60;string_var&#62;) syntax. The new variable will now [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/03/09/convert-a-delimited-string-into-an-array-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Numlock on startup in Debian or Fedora</title>
		<link>http://timmurphy.org/2012/02/26/numlock-on-startup-in-debian-or-fedora/</link>
		<comments>http://timmurphy.org/2012/02/26/numlock-on-startup-in-debian-or-fedora/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 19:35:05 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[numlock]]></category>
		<category><![CDATA[on]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[toggle]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1386</guid>
		<description><![CDATA[Annoyingly, numlock is not turned on by default in Debian or Fedora. Thankfully, the fix is simple. Firstly, install the numlockx program. This is a simple command line tool which can turn numlock on or off: Debian: apt-get install numlockx Fedora: yum install numlockx Next, add this to one of the startup scripts. I like [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/02/26/numlock-on-startup-in-debian-or-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Randomizing (shuffling) a List in Java</title>
		<link>http://timmurphy.org/2012/02/11/randomizing-shuffling-a-list-in-java/</link>
		<comments>http://timmurphy.org/2012/02/11/randomizing-shuffling-a-list-in-java/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 19:37:52 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[ArrayList]]></category>
		<category><![CDATA[Collections]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[LinkedList]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[randomize]]></category>
		<category><![CDATA[shuffle]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1339</guid>
		<description><![CDATA[If you need to randomize or shuffle a List in Java (ArrayList, LinkedList, etc) you can do this with the Collections.shuffle(&#60;list&#62;) function. This is a static function which works on all List types. For example: import java.util.ArrayList; import java.util.Collections; ... ArrayList&#60;Integer&#62; myList = new ArrayList&#60;Integer&#62;(); for (int x = 0; x &#60; 10; ++x) { [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/02/11/randomizing-shuffling-a-list-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Min and max functions in Perl</title>
		<link>http://timmurphy.org/2012/02/01/min-and-max-functions-in-perl/</link>
		<comments>http://timmurphy.org/2012/02/01/min-and-max-functions-in-perl/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 20:29:47 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[max]]></category>
		<category><![CDATA[min]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1341</guid>
		<description><![CDATA[Min and max functions are available in perl, but you need to load them first. To do this, add use List::Util qw[min max]; to the top of the script. These functions take a list of numbers and return the min/max of that list. The list can have 1 number or 100 &#8211; it doesn&#8217;t matter: [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/02/01/min-and-max-functions-in-perl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Small caps in LaTeX</title>
		<link>http://timmurphy.org/2012/01/21/small-caps-in-latex/</link>
		<comments>http://timmurphy.org/2012/01/21/small-caps-in-latex/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 11:22:25 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[small caps]]></category>
		<category><![CDATA[smallcaps]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1333</guid>
		<description><![CDATA[Writing text in smallcaps in LaTeX is quite easy &#8211; just wrap your text in the \textsc{&#60;text&#62;} tag. For example: \textsc{This text is in small caps} Will create This text is in small caps]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/01/21/small-caps-in-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Japanese characters in LaTeX documents</title>
		<link>http://timmurphy.org/2012/01/08/japanese-characters-in-latex-documents/</link>
		<comments>http://timmurphy.org/2012/01/08/japanese-characters-in-latex-documents/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 16:10:23 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Japanese]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[hiragana]]></category>
		<category><![CDATA[kana]]></category>
		<category><![CDATA[kanji]]></category>
		<category><![CDATA[katakana]]></category>
		<category><![CDATA[language]]></category>

		<guid isPermaLink="false">http://timmurphy.org/?p=1322</guid>
		<description><![CDATA[Japanese, like many other Asian languages, is written using a variety of symbols which are not found in the standard ASCII table. Fortunately, you can include these symbols in LaTeX documents using the CJK package. In ubuntu this can be installed via the sudo apt-get install latex-cjk-japanese command. I&#8217;m not sure about Windows, Mac or [...]]]></description>
		<wfw:commentRss>http://timmurphy.org/2012/01/08/japanese-characters-in-latex-documents/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

