<?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>The Maleficent Menagerie &#187; Code</title>
	<atom:link href="http://jaylucky.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaylucky.com</link>
	<description></description>
	<lastBuildDate>Wed, 22 Jul 2009 00:12:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Learning Objective-C&#8230;</title>
		<link>http://jaylucky.com/2008/06/24/learning-objective-c/</link>
		<comments>http://jaylucky.com/2008/06/24/learning-objective-c/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 04:41:05 +0000</pubDate>
		<dc:creator>Jay Lucky</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://jaylucky.com/?p=34</guid>
		<description><![CDATA[So I picked up Stephen Kochan&#8217;s book on Objective-C &#8220;Programming in Objective-C&#8221; (Unfortunately, 2.0 isn&#8217;t out until November.  Sucks.)  pretty much because he taught me C back when I was in high school with his first edition of &#8220;Programming in C&#8221;.  That and the original K&#38;R book on C were my bibles for the language, [...]]]></description>
			<content:encoded><![CDATA[<p>So I picked up Stephen Kochan&#8217;s book on Objective-C &#8220;<a href="http://www.amazon.com/Programming-Objective-C-Developers-Library-Stephen/dp/0672325861/ref=pd_bbs_sr_2?ie=UTF8&amp;s=books&amp;qid=1214367388&amp;sr=8-2" target="_blank">Programming in Objective-C</a>&#8221; (Unfortunately, 2.0 isn&#8217;t out until November.  Sucks.)  pretty much because he taught me C back when I was in high school with his first edition of &#8220;Programming in C&#8221;.  That and the original K&amp;R book on C were my bibles for the language, as I&#8217;m sure they were for a lot of people back in &#8220;the day&#8221;.  Hell, I still have both of my original books from damn near 20 years ago.</p>
<p>Wow.  That&#8217;s sort of fucking scary.  I feel old now =(</p>
<p>Moving on&#8230;</p>
<p>Now that I&#8217;m interested in learning ObjC for Mac/iPhone stuff, I thought it was great that Kochan had a book out on it.  I always liked his writing style, so this should be a good read.  I haven&#8217;t coded in C in ages, so hopefully I can ramp up and get back into it without much effort.</p>
<p>At first glance with the language, it shouldn&#8217;t be that tough.  There&#8217;s many similarities to Perl, at least for me, that will make it easier for me to pick it up.  I never learned C++ or any other strongly OOP language like Java, but Perls modules and class oriented style look pretty similar.</p>
<p>Anyway, hopefully I&#8217;ll have some updates on my progress.  And hopefully I won&#8217;t fucking pass out from my brain being overstuffed with code.  Dreams about code are never fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://jaylucky.com/2008/06/24/learning-objective-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mailing an Excel spreadsheet via Perl</title>
		<link>http://jaylucky.com/2007/05/17/21/</link>
		<comments>http://jaylucky.com/2007/05/17/21/#comments</comments>
		<pubDate>Thu, 17 May 2007 20:16:52 +0000</pubDate>
		<dc:creator>Jay Lucky</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://jaylucky.com/2007/05/17/21/</guid>
		<description><![CDATA[I thought I would pass on this little tidbit since it took me awhile to find out the specifics.  Using the MIME::Lite module, it&#8217;s actually pretty easy.  The only problem I had was figuring out the correct MIME type to use for the attachment.

my $SUBJECT = q(Example Spreadsheet Email!);
my $MESSAGE = q(This is [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I would pass on this little tidbit since it took me awhile to find out the specifics.  Using the <a href="http://search.cpan.org/author/YVES/MIME-Lite-3.01/lib/MIME/Lite.pm" target="_blank">MIME::Lite</a> module, it&#8217;s actually pretty easy.  The only problem I had was figuring out the correct <a href="http://en.wikipedia.org/wiki/MIME" target="_blank">MIME type</a> to use for the attachment.</p>
<pre><code>
my $SUBJECT = q(Example Spreadsheet Email!);
my $MESSAGE = q(This is the main message text body.);
my $XLSPATH = q(/home/foo/spreadsheets);
my $XLS = q(Example-20070517.xls);

my $msg = MIME::Lite->new(
        From    => $FROM,
        To      => $TO,
        Cc      => $CC,
        Subject => $SUBJECT,
        Type    => q(multipart/mixed)
);

$msg->attach(
        Type     => q(TEXT),
        Data     => $MESSAGE
);

if($XLS) {
        $msg->attach(
                Type     => q(application/msexcel),
                Path     => qq($XLSPATH/$XLS),
                Filename => $XLS,
                Encoding => q(base64)
        );
}

$msg->send;
</code></pre>
<p>See, pretty painless =)</p>
]]></content:encoded>
			<wfw:commentRss>http://jaylucky.com/2007/05/17/21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
