<?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>CURIOSITATIS CAPTIVUS &#187; programming</title>
	<atom:link href="http://www.coreygallon.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coreygallon.com</link>
	<description>thesauri sapientiae et quisquiliae</description>
	<lastBuildDate>Thu, 26 Jan 2012 08:57:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Installing MySQL for Python in Ubuntu</title>
		<link>http://www.coreygallon.com/2011/03/installing-mysql-for-python-in-ubuntu/</link>
		<comments>http://www.coreygallon.com/2011/03/installing-mysql-for-python-in-ubuntu/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 06:27:57 +0000</pubDate>
		<dc:creator>captivus</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[search engine fodder]]></category>
		<category><![CDATA[SEF]]></category>

		<guid isPermaLink="false">http://www.coreygallon.com/?p=319</guid>
		<description><![CDATA[&#1080;&#1082;&#1086;&#1085;&#1086;&#1075;&#1088;&#1072;&#1092;&#1080;&#1103;&#1050;&#1072;&#1088;&#1090;&#1080;&#1085;&#1080;&#1074;&#1080;&#1082; &#1091;&#1089;&#1083;&#1091;&#1075;&#1080;Whilst on the grind this evening, hacking on some Python code in a newly-installed Ubuntu virtual machine, I needed to install MySQL for Python. Building the package, pre-installation, requires mysql_config &#8212; which I had some difficulty locating in the repositories. After flailing about a bit, the solution is to install the libmysqlclient-dev package. $ [...]]]></description>
			<content:encoded><![CDATA[<p><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://xn--h1aafme.net/">&#1080;&#1082;&#1086;&#1085;&#1086;&#1075;&#1088;&#1072;&#1092;&#1080;&#1103;</a></font><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://ikoni.eu/">&#1050;&#1072;&#1088;&#1090;&#1080;&#1085;&#1080;</a></font><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://vikuslugi-ovi.com/">&#1074;&#1080;&#1082; &#1091;&#1089;&#1083;&#1091;&#1075;&#1080;</a></font>Whilst on the grind this evening, hacking on some Python code in a newly-installed Ubuntu virtual machine, I needed to install <a href="http://http://sourceforge.net/projects/mysql-python/">MySQL for Python</a>.  Building the package, pre-installation, requires mysql_config &#8212; which I had some difficulty locating in the repositories.  After flailing about a bit, the solution is to install the libmysqlclient-dev package.</p>
<pre>$ sudo apt-get install libmysqlclient-dev</pre>
<p>The package also requires setuptools, which is available <a href="http://pypi.python.org/pypi/setuptools">here</a>.  Download it (I&#8217;m running Python 2.6.5, so I downloaded <a href="http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086">setuptools-0.6c11-py2.6.egg</a>) and run it as a shell script.  </p>
<pre>$ sh ~/Downloads/setuptools-0.6c11-py2.6.egg </pre>
<p>A second error &#8212; i.e. gcc could not find python.h &#8212; was resolved by installing the Python development package.</p>
<pre>$ sudo apt-get install python-dev</pre>
<p>Back to it &#8230;</p>
<div style="text-align:center"><script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.coreygallon.com%2F2011%2F03%2Finstalling-mysql-for-python-in-ubuntu%2F';
  addthis_title  = 'Installing+MySQL+for+Python+in+Ubuntu';
  addthis_pub    = 'coreygallon';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script></div>
]]></content:encoded>
			<wfw:commentRss>http://www.coreygallon.com/2011/03/installing-mysql-for-python-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Core Dumps in Ubuntu</title>
		<link>http://www.coreygallon.com/2009/05/core-dumps-in-ubuntu/</link>
		<comments>http://www.coreygallon.com/2009/05/core-dumps-in-ubuntu/#comments</comments>
		<pubDate>Wed, 06 May 2009 03:25:01 +0000</pubDate>
		<dc:creator>captivus</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[search engine fodder]]></category>
		<category><![CDATA[SEF]]></category>

		<guid isPermaLink="false">http://www.coreygallon.com/?p=166</guid>
		<description><![CDATA[I resolved this year that I would take time to pursue one of my passions &#8212; computer science. As such, I am learning how to write applications for Linux. I&#8217;ve just spent 30 frustrating minutes trying to figure out why on earth my deliberate segmentation fault in the small C program I have written is [...]]]></description>
			<content:encoded><![CDATA[<p>I resolved this year that I would take time to pursue one of my passions &#8212; computer science.  As such, I am learning how to write applications for Linux.  I&#8217;ve just spent 30 frustrating minutes trying to figure out why on earth my deliberate segmentation fault in the small C program I have written is not producing a core dump in Ubuntu 9.04.  It turns out that Ubuntu <em>disables</em> core dumps in Bash by default.  The fix is simple enough &#8212; use the <code>ulimit</code> command to enable core dumps.</p>
<pre>bash$ ulimit -c 100</pre>
<p>In this case I have enabled core dumps and given them a limit of 100 blocks.  Problem solved!  Hopefully this makes it into the search engines and helps someone else frustrated by this same issue.</p>
<div style="text-align:center"><script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.coreygallon.com%2F2009%2F05%2Fcore-dumps-in-ubuntu%2F';
  addthis_title  = 'Core+Dumps+in+Ubuntu';
  addthis_pub    = 'coreygallon';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script></div>
]]></content:encoded>
			<wfw:commentRss>http://www.coreygallon.com/2009/05/core-dumps-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

