<?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>Bryan St. Amour&#039;s Blog</title>
	<atom:link href="http://bryanstamour.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bryanstamour.com</link>
	<description>Random things</description>
	<lastBuildDate>Mon, 25 Feb 2013 01:16:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Executing a sudo command without a password</title>
		<link>http://bryanstamour.com/2013/02/24/executing-a-sudo-command-without-a-password/</link>
		<comments>http://bryanstamour.com/2013/02/24/executing-a-sudo-command-without-a-password/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 01:16:07 +0000</pubDate>
		<dc:creator>Bryan St. Amour</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://blog.bryanstamour.com/?p=16</guid>
		<description><![CDATA[I&#8217;m posting this here because I always forget the syntax. If you have a command that you would like to be executed by a user via sudo, and you would like to have them not be prompted for their password, add the following to the config file (aka the file you are editing when you [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m posting this here because I always forget the syntax. If you have a command that you would like to be executed by a user via <em>sudo</em>, and you would like to have them not be prompted for their password, add the following to the config file (aka the file you are editing when you run the command <em>visudo</em>):</p>
<blockquote><p>user ALL=(ALL) NOPASSWD: /path/to/program</p></blockquote>
<p>For example, to give myself permission to suspend my laptop without a password I would add the following line:</p>
<blockquote><p>bryan ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend</p></blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bryanstamour.com/2013/02/24/executing-a-sudo-command-without-a-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Programming Tips</title>
		<link>http://bryanstamour.com/2013/02/16/some-programming-tips/</link>
		<comments>http://bryanstamour.com/2013/02/16/some-programming-tips/#comments</comments>
		<pubDate>Sun, 17 Feb 2013 01:44:15 +0000</pubDate>
		<dc:creator>Bryan St. Amour</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://blog.bryanstamour.com/?p=12</guid>
		<description><![CDATA[I spend most of my programming time working in C++, and I&#8217;ve collected a few random snippets of advice that I personally follow while programming. If they can be of some help to you &#8212; great! Avoid &#8220;object oriented programming.&#8221; Inheritance isn&#8217;t the solution to every problem. Prefer to keep your objects as standalone entities, [...]]]></description>
				<content:encoded><![CDATA[<p>I spend most of my programming time working in C++, and I&#8217;ve collected a few random snippets of advice that I personally follow while programming. If they can be of some help to you &#8212; great!</p>
<ol>
<li>Avoid &#8220;object oriented programming.&#8221; Inheritance isn&#8217;t the solution to every problem. Prefer to keep your objects as standalone entities, not elements in a convoluted hierarchy.</li>
<li>Use constructors as invariant-setters.</li>
<li>Don&#8217;t fear exceptions: they have a well-defined semantics and are easy to use for reporting when an exceptional circumstance has occurred. Your definition of &#8220;exceptional&#8221; may vary from mine. Exceptions are easy to use, and they work great with&#8230;</li>
<li>Use RAII. Initialize and acquire your resources in constructors, and free them in destructors. Prefer using objects from the standard library such as unique_ptr over rolling your own.</li>
<li>Use value semantics when you can, and pointer semantics when you must. This works really well if you utilize RAII, as suddenly your code is leak-proof.</li>
<li>If anybody suggests that you should learn C before C++, hit them in the face. C is a completely different language with it&#8217;s own set of best-practices and guidelines. Don&#8217;t program in C++ like you would in C, and vice versa.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://bryanstamour.com/2013/02/16/some-programming-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New apartment, new blog</title>
		<link>http://bryanstamour.com/2013/01/19/new-apartment-new-blog/</link>
		<comments>http://bryanstamour.com/2013/01/19/new-apartment-new-blog/#comments</comments>
		<pubDate>Sun, 20 Jan 2013 00:40:31 +0000</pubDate>
		<dc:creator>Bryan St. Amour</dc:creator>
				<category><![CDATA[Real life]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://blog.bryanstamour.com/?p=4</guid>
		<description><![CDATA[It&#8217;s been about two weeks since Chelsey and I moved into our new apartment, and now that things are for the most part settled into their rightful places, I figured it was time to update my blog. Before my move I played around a little bit with the Octopress blogging platform, but I&#8217;ve come back [...]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been about two weeks since Chelsey and I moved into our new apartment, and now that things are for the most part settled into their rightful places, I figured it was time to update my blog. Before my move I played around a little bit with the Octopress blogging platform, but I&#8217;ve come back to WordPress (again) after realizing that</p>
<ol>
<li>I don&#8217;t want to deal with the hassle of managing my posts, files, etc by hand, and</li>
<li>I enjoyed being able to blog from anywhere, not just from my laptop where my Octopress source files were located.</li>
</ol>
<p>I understand and can appreciate the power Octopress gives you, but I just want a simple platform to deal with.</p>
<p>Before my move I also shuffled around my domain a bit. This blog is, as you can see, now located under a subdomain of my main website. This way I can leave the main domain open in case I find a use for it later. I also plan on constructing other subdomains in the future for various purposes. I&#8217;m always amazed at how much cleaner my online life is than my desk at home!</p>
]]></content:encoded>
			<wfw:commentRss>http://bryanstamour.com/2013/01/19/new-apartment-new-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
