<?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/tag/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>MIT/GNU Scheme in OS X</title>
		<link>http://www.coreygallon.com/2012/01/mitgnu-scheme-in-os-x/</link>
		<comments>http://www.coreygallon.com/2012/01/mitgnu-scheme-in-os-x/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 19:48:28 +0000</pubDate>
		<dc:creator>captivus</dc:creator>
				<category><![CDATA[General Posts]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[SEF]]></category>

		<guid isPermaLink="false">http://www.coreygallon.com/?p=357</guid>
		<description><![CDATA[&#1048;&#1082;&#1086;&#1085;&#1086;&#1087;&#1080;&#1089;ikoniI&#8217;ve not mentioned this previously, but I bought a Macbook Air a few months back and it&#8217;s one of the greatest purchases I have ever made. I love this thing! It is so damned sexy (observing both its hardware and software), and so damned fast. I picked-up the baller, 13&#8243; model with the Core i7 [...]]]></description>
			<content:encoded><![CDATA[<p><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://xn--h1aafme.net/%E8%EA%EE%ED%EE%EF%E8%F1">&#1048;&#1082;&#1086;&#1085;&#1086;&#1087;&#1080;&#1089;</a></font><font style="position: absolute;overflow: hidden;height: 0;width: 0"><a href="http://xn--h1aafme.net/">ikoni</a></font>I&#8217;ve not mentioned this previously, but I bought a Macbook Air a few months back and it&#8217;s one of the greatest purchases I have ever made. I <strong>love</strong> this thing! It is so damned sexy (observing both its hardware and software), and so damned fast. I picked-up the baller, 13&#8243; model with the Core i7 processor and 256 GB solid-state drive &#8230; it&#8217;s portable personal computing perfection! The more Apple products I buy (and, I&#8217;ve now accumulated quite a few), the fewer reasons I can produce <strong>to not</strong> dedicate future technology spend to Cupertino. &lt;/rant&gt;</p>
<p>Macbook Air in-hand (or, more appropriately, surgically fused to my hands!) and pursuing Lisp (and Scheme) as a new programming language (dialect), I needed to install MIT/GNU Scheme on my constant companion &#8212; more specifically, I wanted to install it in such a way that I can run Scheme / Lisp programs from the shell without having to fire-up the X-Windows application that is installed by the package by default (&#8220;Edwin&#8221;). A relatively straightforward process, although not particularly well-documented.</p>
<p>Steps to complete are below:</p>
<ul>
<li>Download the OS X binary for MIT/GNU Scheme from the GNU site <a href="http://www.gnu.org/software/mit-scheme/">here</a>.</li>
<li>Mount the binary disk image and copy the appropriate files from the disk image to /usr/local/lib</li>
</ul>
<p><span style="line-height: 19px;">It is worth pausing here to note that one may have to create this path, as I did.  Commands to create and then copy the files are below:</span></p>
<pre>$ sudo mkdir /usr/local/lib/mit-scheme-x86-64
$ sudo cp -R /Volumes/MIT\:GNU\ Scheme/MIT\:GNU\ Scheme.app/Contents/Resources/ /usr/local/lib/mit-scheme-x86-64/</pre>
<ul>
<li><span style="line-height: 18px;">Create a symbolic link &#8212; <em>scheme </em>&#8211; to the newly installed <em>mit-scheme</em> binary</span></li>
</ul>
<pre>$ sudo ln -s /usr/local/lib/mit-scheme-x86-64/mit-scheme /usr/bin/scheme</pre>
<p>This last step is critical in fully integrating Scheme into the shell, as one would expect it to be after installing it in a Unix environment.</p>
<p>Onward to Lisp hacking greatness!</p>
<p><strong>Postscript</strong>:  I&#8217;m using the Lisp-in-a-Box IDE distributed by the <a title="common-lisp.net" href="http://www.common-lisp.net" target="_blank">Common Lisp software repository</a> in OS X as my platform for development in Common Lisp in parallel &#8230; learn both dialects simultaneously &#8212; seems prudent!</p>
<div style="text-align:center"><script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.coreygallon.com%2F2012%2F01%2Fmitgnu-scheme-in-os-x%2F';
  addthis_title  = 'MIT%2FGNU+Scheme+in+OS+X';
  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/2012/01/mitgnu-scheme-in-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>

