<?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"?><rss 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/" version="2.0">

<channel>
	<title>A</title>
	
	<link>http://www.devbaldwin.com/blog</link>
	<description />
	<lastBuildDate>Fri, 25 Mar 2011 02:12:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/thebaldwin" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="thebaldwin" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>NegativeArraySizeException on Cassandra 0.7.4 startup</title>
		<link>http://www.devbaldwin.com/blog/2011/03/24/negativearraysizeexception-on-cassandra-0-7-4-startup/</link>
		<comments>http://www.devbaldwin.com/blog/2011/03/24/negativearraysizeexception-on-cassandra-0-7-4-startup/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 02:12:19 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[cassandra]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[0.7.0]]></category>
		<category><![CDATA[0.7.4]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[caches]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=710</guid>
		<description><![CDATA[reading saved cache /cassandra/saved_caches/system-IndexInfo-KeyCache Exception encountered during startup. java.lang.NegativeArraySizeException at  org.apache.cassandra.db.ColumnFamilyStore.readSavedCache(ColumnFamilyStore.java:280) I was getting this error after upgrading from 0.7.0 to 0.7.4 and couldn&#8217;t restart cassandra. I ended up removing the files in my saved_caches directory and this fixed my problem. A]]></description>
			<content:encoded><![CDATA[<blockquote>
<div id="_mcePaste">
<pre>reading saved cache /cassandra/saved_caches/system-IndexInfo-KeyCache
Exception encountered during startup.
java.lang.NegativeArraySizeException at 
org.apache.cassandra.db.ColumnFamilyStore.readSavedCache(ColumnFamilyStore.java:280)</pre>
</div>
</blockquote>
<p>I was getting this error after upgrading from 0.7.0 to 0.7.4 and couldn&#8217;t restart cassandra. I ended up removing the files in my saved_caches directory and this fixed my problem.</p>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2011/03/24/negativearraysizeexception-on-cassandra-0-7-4-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Permalink change on fresh WordPress install causes 404s</title>
		<link>http://www.devbaldwin.com/blog/2011/01/15/permalink-change-on-fresh-wordpress-install-causes-404s/</link>
		<comments>http://www.devbaldwin.com/blog/2011/01/15/permalink-change-on-fresh-wordpress-install-causes-404s/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 18:39:38 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=695</guid>
		<description><![CDATA[When you change your perma-link setting in WordPress, it will update the .htaccess in it&#8217;s directory. By default, apache does not allow this file to be read. This is why you start getting 404s. You can enable this by changing the following setting in your httpd.conf file: AllowOverride None to AllowOverride All A]]></description>
			<content:encoded><![CDATA[<p>When you change your perma-link setting in WordPress, it will update the .htaccess in it&#8217;s directory.<br />
By default, apache does not allow this file to be read. This is why you start getting 404s. </p>
<p>You can enable this by changing the following setting in your httpd.conf file:</p>
<blockquote><p>AllowOverride None<br />
to<br />
AllowOverride All</p></blockquote>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2011/01/15/permalink-change-on-fresh-wordpress-install-causes-404s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why do you type ps faux so much!?</title>
		<link>http://www.devbaldwin.com/blog/2010/12/04/why-do-you-type-ps-faux-so-much/</link>
		<comments>http://www.devbaldwin.com/blog/2010/12/04/why-do-you-type-ps-faux-so-much/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 21:34:09 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[faux]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[process list]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[solve]]></category>
		<category><![CDATA[solving]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=684</guid>
		<description><![CDATA[I use it a lot. As soon as I log on to a box. After I restart something with god. After I pull. etc etc&#8230; People ask why I use it so much. Knowing the state of a box is important to being able to prevent and diagnose problems and I find a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>I use it <strong>a lot</strong>. As soon as I log on to a box. After I restart something with god. After I pull. etc etc&#8230;</p>
<p>People ask why I use it so much. Knowing the state of a box is important to being able to prevent and diagnose problems and I find a lot of issues with ps. </p>
<p>A lot of times, I&#8217;ll find new issues just because I randomly did a ps and noticed something weird.</p>
<p>It&#8217;s one of my first tools in debugging system level issues.</p>
<p>For example, I recently had a problem where Nagios was not saving acknowledgments, and configuration changes were getting reset.</p>
<p>Logged on to our monitoring box, ps faux:</p>
<blockquote><p>Dec02 183:02 nagios<br />
15:58   0:22 nagios</p></blockquote>
<p>.. oh 2 instances running, that&#8217;s weird. Problem identified.</p>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2010/12/04/why-do-you-type-ps-faux-so-much/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>compile cuda program in device emulation mode</title>
		<link>http://www.devbaldwin.com/blog/2010/11/21/compile-cuda-program-in-device-emulation-mode/</link>
		<comments>http://www.devbaldwin.com/blog/2010/11/21/compile-cuda-program-in-device-emulation-mode/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 00:36:53 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[c++]]></category>
		<category><![CDATA[cuda]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[cu]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[deviceemu]]></category>
		<category><![CDATA[emu]]></category>
		<category><![CDATA[emulation]]></category>
		<category><![CDATA[flag]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[nvcc]]></category>
		<category><![CDATA[nvidia]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=660</guid>
		<description><![CDATA[Prior to 3.0 you can just compile with the -deviceemu flag: nvcc -deviceemu main.cu In 3.0, this was changed such that you should link against cudartemu instead of cudart In 3.1, emulation was removed. So if want device emulation, you need to use version 3.0 or earlier. A]]></description>
			<content:encoded><![CDATA[<p>Prior to 3.0 you can just compile with the -deviceemu flag:</p>
<blockquote><p><code>nvcc -deviceemu main.cu</code></p></blockquote>
<p>In 3.0, this was changed such that you should link against cudartemu instead of cudart<br />
In 3.1, emulation was removed.</p>
<p>So if want device emulation, you need to use version 3.0 or earlier.</p>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2010/11/21/compile-cuda-program-in-device-emulation-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR 2013 (HY000): Lost connection to MySQL server during query</title>
		<link>http://www.devbaldwin.com/blog/2010/09/28/error-2013-hy000-lost-connection-to-mysql-server-during-query/</link>
		<comments>http://www.devbaldwin.com/blog/2010/09/28/error-2013-hy000-lost-connection-to-mysql-server-during-query/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 19:54:33 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[alter table]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[index]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=651</guid>
		<description><![CDATA[Running an alter table to add an index was causing MySQL to crash with the following error: ERROR 2013 (HY000): Lost connection to MySQL server during query Was happening on 5.1.31. Pretty small table ~2m rows, so ended up just dumping the data and reimporting it and it fixed the problem. This was only happening [...]]]></description>
			<content:encoded><![CDATA[<p>Running an alter table to add an index was causing MySQL to crash with the following error:</p>
<blockquote><p>ERROR 2013 (HY000): Lost connection to MySQL server during query</p></blockquote>
<p>Was happening on 5.1.31. Pretty small table ~2m rows, so ended up just dumping the data and reimporting it and it fixed the problem. This was only happening on the production box, not in dev.</p>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2010/09/28/error-2013-hy000-lost-connection-to-mysql-server-during-query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Incorrect key file for table ‘frogs’</title>
		<link>http://www.devbaldwin.com/blog/2010/09/17/incorrect-key-file-for-table-frogs/</link>
		<comments>http://www.devbaldwin.com/blog/2010/09/17/incorrect-key-file-for-table-frogs/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 13:38:03 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=641</guid>
		<description><![CDATA[I was trying to add an index to a table with ~117M rows and was receiving the following error: ERROR 1034 (HY000): Incorrect key file for table &#8216;frogs&#8217; Moving my tmpdir to another drive with more space and rerunning the alter table solved the issue. A]]></description>
			<content:encoded><![CDATA[<p>I was trying to add an index to a table with ~117M rows and was receiving the following error:</p>
<blockquote><p>ERROR 1034 (HY000): Incorrect key file for table &#8216;frogs&#8217;</p></blockquote>
<p>Moving my tmpdir to another drive with more space and rerunning the alter table solved the issue.</p>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2010/09/17/incorrect-key-file-for-table-frogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>undefined method `true_class_url’</title>
		<link>http://www.devbaldwin.com/blog/2010/08/18/undefined-method-true_class_url/</link>
		<comments>http://www.devbaldwin.com/blog/2010/08/18/undefined-method-true_class_url/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 01:24:13 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[sub-domain]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[subdomain-fu]]></category>
		<category><![CDATA[true_class_url]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=623</guid>
		<description><![CDATA[Had a named route: mysubdomain.thankyou And an action: def thankyou end Forgot the sub-domain and a little _url on the end of a link inside my controller: redirect_to thankyou debugging ensued&#8230;.]]></description>
			<content:encoded><![CDATA[<p>Had a named route:</p>
<blockquote><p><code>mysubdomain.thankyou</code></p></blockquote>
<p>And an action:</p>
<blockquote><p><code>def thankyou<br />
end<br />
</code></p></blockquote>
<p>Forgot the sub-domain and a little _url on the end of a link inside my controller:</p>
<blockquote><p><code>redirect_to thankyou</code></p></blockquote>
<p>debugging ensued&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2010/08/18/undefined-method-true_class_url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect http to https with sub-domain support</title>
		<link>http://www.devbaldwin.com/blog/2010/08/11/redirect-http-to-https-with-sub-domain-support/</link>
		<comments>http://www.devbaldwin.com/blog/2010/08/11/redirect-http-to-https-with-sub-domain-support/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 02:59:34 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[sub-domain]]></category>
		<category><![CDATA[subdomain]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=614</guid>
		<description><![CDATA[Here&#8217;s what I use, seems to work pretty good. server_name_in_redirect is on by default. server { listen 80; server_name monkey; server_name_in_redirect off; rewrite ^/(.*) https://$host/$1 permanent; } Additional reading materials: Nginx Core Nginx Rewrite]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s what I use, seems to work pretty good.<br />
<strong>server_name_in_redirect</strong> is on by default.</p>
<pre class="brush: plain; light: true; title: ;">
   server {
     listen 80;
     server_name monkey;
     server_name_in_redirect off;

     rewrite ^/(.*) https://$host/$1 permanent;
   }
</pre>
<p>Additional reading materials:<br />
<a href="http://wiki.nginx.org/NginxHttpCoreModule">Nginx Core</a><br />
<a href="http://wiki.nginx.org/NginxHttpRewriteModule">Nginx Rewrite</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2010/08/11/redirect-http-to-https-with-sub-domain-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Attach File Using Ruby Mail Gem</title>
		<link>http://www.devbaldwin.com/blog/2010/06/09/attach-file-using-ruby-mail-gem/</link>
		<comments>http://www.devbaldwin.com/blog/2010/06/09/attach-file-using-ruby-mail-gem/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 02:25:26 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[attach file]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=604</guid>
		<description><![CDATA[Very simple, just use the add_file method. The trick is to make sure your body is in a block that you pass to text_part: Mail.deliver do from 'blah@example.com' to 'jojo@example.com' subject &#34;secret file&#34; text_part do body &#34;Please see attached file.&#34; end add_file ({:filename =&#62; &#34;myfile.txt&#34;}) end When I didn&#8217;t have my body inside of a [...]]]></description>
			<content:encoded><![CDATA[<p>Very simple, just use the add_file method. The trick is to make sure your body is in a block that you pass to text_part:</p>
<pre class="brush: ruby; light: true; title: ;">
Mail.deliver do
  from 'blah@example.com'
  to 'jojo@example.com'
  subject &quot;secret file&quot;

  text_part do
    body &quot;Please see attached file.&quot;
  end

  add_file ({:filename =&gt; &quot;myfile.txt&quot;})
end</pre>
<p>When I didn&#8217;t have my body inside of a text_part, it placed an encoded version of the binary file into the body of the email, which isn&#8217;t quite what I wanted.</p>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2010/06/09/attach-file-using-ruby-mail-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No such file or directory – getcwd</title>
		<link>http://www.devbaldwin.com/blog/2010/05/21/no-such-file-or-directory-getcwd/</link>
		<comments>http://www.devbaldwin.com/blog/2010/05/21/no-such-file-or-directory-getcwd/#comments</comments>
		<pubDate>Sat, 22 May 2010 02:36:25 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[gem]]></category>

		<guid isPermaLink="false">http://www.devbaldwin.com/blog/?p=574</guid>
		<description><![CDATA[If you try to execute gem list or similar from a directory that doesn&#8217;t exist you may have seen the following error: No such file or directory - getcwd This happens if you delete your current directory, maybe you were in a gem directory and uninstalled that gem for example.. A]]></description>
			<content:encoded><![CDATA[<p>If you try to execute gem list or similar from a directory that doesn&#8217;t exist you may have seen the following error:</p>
<blockquote><p><code>No such file or directory - getcwd</code></p></blockquote>
<p>This happens if you delete your current directory, maybe you were in a gem directory and uninstalled that gem for example..</p>
<p>A</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devbaldwin.com/blog/2010/05/21/no-such-file-or-directory-getcwd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
