<?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>Copperwire</title>
	<atom:link href="http://copper.sourmilk.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://copper.sourmilk.net</link>
	<description>A Communications Tool</description>
	<lastBuildDate>Sat, 06 Mar 2010 04:12:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>March Madness (late) Day 3</title>
		<link>http://copper.sourmilk.net/2010/03/05/march-madness-late-day-3/</link>
		<comments>http://copper.sourmilk.net/2010/03/05/march-madness-late-day-3/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 03:07:44 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[March Madness]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=688</guid>
		<description><![CDATA[I know I&#8217;m a couple days behind, still trying to find a source of programs.  Here&#8217;s one I grabbed from an ACM ICPC Regional Contest, a program to calculate e.

calce.pdf:

#include &#60;stdio.h&#62;

long fact(long n);
double calce(int n);

int
main(int argc, char *argv[])
{
    int i;

    printf(&#34;n e\n&#34;);
    printf(&#34;- -----------\n&#34;);
  [...]]]></description>
			<content:encoded><![CDATA[<p>I know I&#8217;m a couple days behind, still trying to find a source of programs.  Here&#8217;s one I grabbed from an ACM ICPC <a href="http://www.ntnu.edu.tw/acm/ProblemSetArchive/B_US_GreatNY/2000/problema.pdf">Regional Contest</a>, a program to calculate <em>e</em>.<br />
<span id="more-688"></span><br />
calce.pdf:</p>
<pre class="brush: cpp; toolbar: false;">
#include &lt;stdio.h&gt;

long fact(long n);
double calce(int n);

int
main(int argc, char *argv[])
{
    int i;

    printf(&quot;n e\n&quot;);
    printf(&quot;- -----------\n&quot;);
    for (i = 0; i &lt;= 9; i++) {
        printf(&quot;%d %.10g\n&quot;, i, calce(i));
    }

    return 0;
}

long
fact(long n)
{
    if (n &lt;= 0) {
        return 1;
    } else {
        return n * fact(n - 1);
    }
}

double
calce(int n)
{
    int i;
    double sum = 0.0;

    for (i = 0; i &lt;= n; i++) {
        sum += 1.0 / fact(i);
    }

    return sum;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2010/03/05/march-madness-late-day-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>March Madness (late) Day 2</title>
		<link>http://copper.sourmilk.net/2010/03/03/march-madness-late-day-2/</link>
		<comments>http://copper.sourmilk.net/2010/03/03/march-madness-late-day-2/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 03:52:33 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[March Madness]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=682</guid>
		<description><![CDATA[I didn&#8217;t get a chance yesterday to complete the March Madness, and today, I started too late because I didn&#8217;t have any ideas.  Anyway, another person in the &#8217;space is doing Project Euler problems, so I did the first one in Matlab.

euler1.m:

% Project Euler - Problem 1
% for March Madness (late) Day 2

% If [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t get a chance yesterday to complete the March Madness, and today, I started too late because I didn&#8217;t have any ideas.  Anyway, another person in the &#8217;space is doing <a href="http://projecteuler.net/">Project Euler</a> problems, so I did the first one in Matlab.<br />
<span id="more-682"></span><br />
euler1.m:</p>
<pre class="brush: matlabkey; toolbar: false;">
% Project Euler - Problem 1
% for March Madness (late) Day 2

% If we list all the natural numbers below 10 that are multiples of
% 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
%
% Find the sum of all the multiples of 3 or 5 below 1000.

function euler1()

tosum = zeros(1,999);

tosum(3:3:999) = 1;
tosum(5:5:999) = 1;

sum35 = sum(find(tosum));

sprintf('The sum is %d\n', sum35)
</pre>
<p>Some notes: This has got to me the most inefficient way of doing it.  I&#8217;m sure I&#8217;m using a shit ton of memory for no goddamn reason.  I did it that way because I wanted to use some fancy Matlab function and so it doesn&#8217;t look like every other version in every other language.</p>
<p>I&#8217;ll have to catch up tomorrow and use a language whose file extension isn&#8217;t &#8220;.m&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2010/03/03/march-madness-late-day-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>March Madness Day 1</title>
		<link>http://copper.sourmilk.net/2010/03/01/march-madness-day-1/</link>
		<comments>http://copper.sourmilk.net/2010/03/01/march-madness-day-1/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 03:59:15 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[March Madness]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=654</guid>
		<description><![CDATA[It was proposed at FUBAR Labs that for each day in March, everyone (well, anyone who wanted to participate) should write a program.  I was on the fence about it, but decided to do one at the last hour since I had been telling myself that I should do more programming.  So, here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>It was proposed at FUBAR Labs that for each day in March, everyone (well, anyone who wanted to participate) should write a program.  I was on the fence about it, but decided to do one at the last hour since I had been telling myself that I should do more programming.  So, here&#8217;s mine for Day 1.  It&#8217;s a &#8220;simple&#8221; hello world program that uses objects written in Objective C.<br />
<span id="more-654"></span><br />
ComplexHelloWorld.m:</p>
<pre class="brush: objc; toolbar: false;">
#import &lt;Foundation/Foundation.h&gt;

#import &quot;Person.h&quot;

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    Person *eric = [[Person alloc] initWithName:@&quot;Eric&quot;];
    Person *world = [[Person alloc] init];

    [eric printHello];
    [world printHello];

    [pool drain];
    return 0;
}
</pre>
<p>Person.h:</p>
<pre class="brush: objc; toolbar: false;">
#import &lt;Cocoa/Cocoa.h&gt;

@interface Person : NSObject {
    NSString *myName;
}

- (id)initWithName: (NSString *)name;
- (void)printHello;

@end
</pre>
<p>Person.m:</p>
<pre class="brush: objc; toolbar: false;">
#import &quot;Person.h&quot;

@implementation Person

- (id)init {
    return [self initWithName:@&quot;World&quot;];
}

- (id)initWithName:(NSString *) name {
    [super init];
    myName = [[NSString alloc] initWithString:name];
    [myName retain];

    return self;
}

- (void)dealloc {
    [myName dealloc];
    [super dealloc];
}

- (void)printHello {
    NSLog(@&quot;Hello, %@!&quot;, myName);
}

@end
</pre>
<p>It&#8217;s pretty simple first program (mainly because I decided to do this at the last hour).  It probably leaks memory all over the place because I don&#8217;t remember how the hell to do memory management in Objective C (all the autorelease pool stuff is default Xcode template).</p>
<p>Let&#8217;s see if I can keep this up.</p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2010/03/01/march-madness-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The longest post</title>
		<link>http://copper.sourmilk.net/2009/10/16/the-longest-post/</link>
		<comments>http://copper.sourmilk.net/2009/10/16/the-longest-post/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 04:21:57 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[k2]]></category>
		<category><![CDATA[procrastination]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=575</guid>
		<description><![CDATA[I have no idea why I keep updating Wordpress and K2 (the theme), but I do.  I just updated K2 to the latest, tell me if there are any problems.
Hopefully I&#8217;ll come out with something with more content than this (after a couple good posts and a long hiatus it seems).  I know, [...]]]></description>
			<content:encoded><![CDATA[<p>I have no idea why I keep updating Wordpress and K2 (the theme), but I do.  I just updated K2 to the latest, tell me if there are any problems.</p>
<p>Hopefully I&#8217;ll come out with something with more content than this (after a couple good posts and a long hiatus it seems).  I know, it gets tiring.</p>
<p>I had a longer post, but I don&#8217;t think anyone wants to hear it.</p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2009/10/16/the-longest-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EA screwed the pooch</title>
		<link>http://copper.sourmilk.net/2009/04/09/ea-screwed-the-pooch/</link>
		<comments>http://copper.sourmilk.net/2009/04/09/ea-screwed-the-pooch/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 03:02:42 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Rants/Ramblings]]></category>
		<category><![CDATA[Crash]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[red alert 3]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=546</guid>
		<description><![CDATA[I just got Red Alert 3 for the Mac.  It worked fine after installing it, but after a reboot, it crashes on start up.
I must say, the EA support pages are pretty horrible.  It&#8217;s difficult to find support articles (worth anything) or to get patches.
I&#8217;d really appreciate it if someone could help me. [...]]]></description>
			<content:encoded><![CDATA[<p>I just got Red Alert 3 for the Mac.  It worked fine after installing it, but after a reboot, it crashes on start up.</p>
<p>I must say, the EA support pages are pretty horrible.  It&#8217;s difficult to find support articles (worth anything) or to get patches.</p>
<p>I&#8217;d really appreciate it if someone could help me.  I run the game on the top 24-inch iMac that just got released (Stock, except for a bluetooth mouse.  Stats are in the <a href="http://copper.sourmilk.net/systems/">Systems page</a>).<span id="more-546"></span>  Here is the messages I get on the &#8220;Game crash&#8221; screen:<br />
<code><br />
 : < << DID YOU REMEMBER TO BUILD DATA??? >>></p>
<p>You might have build the wrong LOD level!</p>
<p>Can't open stream data\mapmetadata.manifest<br />
256 addresses:<br />
(0): (unknown mod) (unknown)<br />
(0): (unknown mod) (unknown)<br />
... continues for a while ...<br />
(0): (unknown mod) (unknown)<br />
(0): (unknown mod) (unknown)</p>
<p>Because of the severity of this error the game will now exit.<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2009/04/09/ea-screwed-the-pooch/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Stupid Apple AV cable @#$%^</title>
		<link>http://copper.sourmilk.net/2009/01/17/stupid-apple-av-cable/</link>
		<comments>http://copper.sourmilk.net/2009/01/17/stupid-apple-av-cable/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 23:15:17 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[Rants/Ramblings]]></category>
		<category><![CDATA[AV]]></category>
		<category><![CDATA[cables]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[tight fit]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=533</guid>
		<description><![CDATA[The other week I decided to buy the AV cables for my iPod/iPhone, thinking it would be handy to play a few show that I have on my iPod.  After I got home from buying the (expensive) cables, I learned that they didn&#8217;t quite fit my television inputs.  With a little bit lot of force, they [...]]]></description>
			<content:encoded><![CDATA[<p>The other week I decided to buy the AV cables for my iPod/iPhone, thinking it would be handy to play a few show that I have on my iPod.  After I got home from buying the (expensive) cables, I learned that they didn&#8217;t quite fit my television inputs.  With a <span style="text-decoration: line-through;">little bit</span> lot of force, they might fit, but at the risk of breaking the inputs.  A little bit of googling shown that other people have gotten the same results.</p>
<p><span id="more-533"></span><img class="alignnone size-thumbnail wp-image-534" title="Stupid Apple cables" src="http://copper.sourmilk.net/wp-content/uploads/2009/01/photo-150x150.jpg" alt="Stupid Apple cables" width="150" height="150" /> <img class="alignnone size-thumbnail wp-image-535" title="Normal AV cables" src="http://copper.sourmilk.net/wp-content/uploads/2009/01/photo-1-150x150.jpg" alt="Normal AV cables" width="150" height="150" /></p>
<p>Looking at the images above, you can see Apple decided to be cool and continue the aluminum body all the way to the end of sleeve.  Most people seem to just toss the cables is frustration, but with a trip to the local store, you can get RCA adapters and use a short set of RCA cables (that you probably have laying around) to go in between.</p>
<p><img class="alignnone size-thumbnail wp-image-536" title="Apple AV cables with adapters" src="http://copper.sourmilk.net/wp-content/uploads/2009/01/photo-2-150x150.jpg" alt="Apple AV cables with adapters" width="150" height="150" /></p>
<p>This seems pretty simple solution, but I haven&#8217;t heard of anyone actually doing it.  With the adapters, you can put use a little bit of force to get the on the cable and just leave them on after you are done.  I&#8217;m pretty sure there is some loss in the adapters, but it&#8217;s better than nothing.</p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2009/01/17/stupid-apple-av-cable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Corona Yard</title>
		<link>http://copper.sourmilk.net/2008/12/11/corona-yard/</link>
		<comments>http://copper.sourmilk.net/2008/12/11/corona-yard/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 05:12:57 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[Pictures]]></category>
		<category><![CDATA[Railfanning]]></category>
		<category><![CDATA[7]]></category>
		<category><![CDATA[nyct]]></category>
		<category><![CDATA[subway]]></category>
		<category><![CDATA[yard]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=525</guid>
		<description><![CDATA[I took the tour of the Corona Yard, home of the 7 train, last Saturday.  I posted some pictures.
The tour check in was a bit rocky, but eventually turned out to be one of the better tours I&#8217;ve been on.  It started off with a discussion about sustainability, and how the Yard is the newest facility and [...]]]></description>
			<content:encoded><![CDATA[<p>I took the tour of the Corona Yard, home of the 7 train, last Saturday.  I posted some <a title="Corona Yard pictures" href="http://gallery.sourmilk.net/thumbnails.php?album=29" target="_blank">pictures</a>.</p>
<p>The tour check in was a bit rocky, but eventually turned out to be one of the better tours I&#8217;ve been on.  It started off with a discussion about sustainability, and how the Yard is the newest facility and how they took the opportunity to reduce energy use and reduce other wastes.</p>
<p>Once we made it down to the shop floor, we walked along the tracks with some explanation about various things we saw on the way.  Next up, we went into a R62A and were able to look around (including the cabs) and ask questions.  There they gave us a demo about the door systems and it&#8217;s safety features.  The three little kids on the tour were able to play around with the PA and make announcements.</p>
<p>After the demo, we continued along and was show the various part underneath the car and was show the machine that rounds the wheels (while they are still on the car).</p>
<p>Another demo was given about how they give the cars &#8220;third rail&#8221; power with the overhead power connectors (I think they were called bugs (or was that only for auxiliary power)) so they can move the cars into and out of the shop.</p>
<p>At the end of the tour, they handed out little plastic baggies with the wheel shavings, &#8220;7&#8243; stickers, and a pamphlet.</p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2008/12/11/corona-yard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lackawanna Railfest 2008</title>
		<link>http://copper.sourmilk.net/2008/09/01/lackawanna-railfest-2008/</link>
		<comments>http://copper.sourmilk.net/2008/09/01/lackawanna-railfest-2008/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 18:33:42 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[Pictures]]></category>
		<category><![CDATA[Railfanning]]></category>
		<category><![CDATA[lackawanna]]></category>
		<category><![CDATA[railfest]]></category>
		<category><![CDATA[scranton]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=520</guid>
		<description><![CDATA[I went to Steamtown on Saturday with some friends for Railfest.  I posted some pictures.
]]></description>
			<content:encoded><![CDATA[<p>I went to Steamtown on Saturday with some friends for Railfest.  I posted some <a title="Railfest Pictures" href="http://gallery.sourmilk.net/thumbnails.php?album=28">pictures</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2008/09/01/lackawanna-railfest-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress upgrade</title>
		<link>http://copper.sourmilk.net/2008/07/30/wordpress-upgrade/</link>
		<comments>http://copper.sourmilk.net/2008/07/30/wordpress-upgrade/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 22:44:52 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=517</guid>
		<description><![CDATA[Updated wordpress to the latest version after being lazy for a while.
It didn&#8217;t go quite as smooth as the previous upgrade, so please tell me if anything seems broken.
]]></description>
			<content:encoded><![CDATA[<p>Updated wordpress to the latest version after being lazy for a while.</p>
<p>It didn&#8217;t go quite as smooth as the previous upgrade, so please tell me if anything seems broken.</p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2008/07/30/wordpress-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>50 Years to Far Rockaway</title>
		<link>http://copper.sourmilk.net/2008/06/15/50-years-to-far-rockaway/</link>
		<comments>http://copper.sourmilk.net/2008/06/15/50-years-to-far-rockaway/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 03:06:14 +0000</pubDate>
		<dc:creator>ericr</dc:creator>
				<category><![CDATA[Pictures]]></category>
		<category><![CDATA[Railfanning]]></category>

		<guid isPermaLink="false">http://copper.sourmilk.net/?p=516</guid>
		<description><![CDATA[http://gallery.sourmilk.net/thumbnails.php?album=26
Posted the pictures I took on the &#8220;Nostalgia Train&#8221; excursion to Far Rockaway.  Just a photo dump, no editing except for size.
The trip started from 57 St/7 Av on a set of R1/9 cars.  We then proceeded to Queens Plaza to get on the E line so we could go down Eighth Av into Brooklyn.  There was [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gallery.sourmilk.net/thumbnails.php?album=26">http://gallery.sourmilk.net/thumbnails.php?album=26</a></p>
<p>Posted the pictures I took on the &#8220;Nostalgia Train&#8221; excursion to Far Rockaway.  Just a photo dump, no editing except for size.</p>
<p>The trip started from 57 St/7 Av on a set of R1/9 cars.  We then proceeded to Queens Plaza to get on the E line so we could go down Eighth Av into Brooklyn.  There was a brief stop at Court Street (the NYCT museum; yes we rode right into the museum), then headed to Rockaway Park.  If you stayed on the train, you would have gone to Far Rockaway and back across the bay before going back to Rockaway Park.</p>
]]></content:encoded>
			<wfw:commentRss>http://copper.sourmilk.net/2008/06/15/50-years-to-far-rockaway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
