<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>Alex Moore</title>
    <link rel="self" type="application/xml" href="http://geekswithblogs.net/alexmoore/Atom.aspx" />
    <subtitle type="html"> Enginerding</subtitle>
    <id>http://geekswithblogs.net/alexmoore/Default.aspx</id>
    <author>
        <name>alexmoore</name>
        <uri>http://geekswithblogs.net/alexmoore/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2009-08-17T00:15:50Z</updated>
    <entry>
        <title>Using ActiveRecord with SQL Server 2000/2005/2008</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/alexmoore/archive/2009/08/17/using-activerecord-with-sql-server-200020052008.aspx" />
        <id>http://geekswithblogs.net/alexmoore/archive/2009/08/17/using-activerecord-with-sql-server-200020052008.aspx</id>
        <published>2009-08-17T00:11:54-04:00:00</published>
        <updated>2009-08-17T00:15:50Z</updated>
        <content type="html">&lt;p&gt;On a recent project I needed to test my application with lots of data so I remembered my good friend the Faker Gem from the Ruby world.  &lt;br /&gt;I didn’t know how to connect ActiveRecord to SQL Server, so I searched the webs and found &lt;a href="http://www.lostechies.com/blogs/rhouston/archive/2008/05/03/connecting-activerecord-to-sql-server.aspx" target="_blank"&gt;this article by Ray Houston at Los Techies&lt;/a&gt;.  &lt;br /&gt;Unfortunately since the article was 13 months old, the Ruby libraries have evolved to not work that way anymore :)  So after some head scratching I got it to work again.&lt;/p&gt;  &lt;h3&gt;How to connect ActiveRecord to SQL Server&lt;/h3&gt;  &lt;ol&gt;   &lt;li&gt;If you don’t have Ruby installed, grab the one-click installer from &lt;a href="http://rubyforge.org/frs/?group_id=167&amp;amp;release_id=28426"&gt;http://rubyforge.org/frs/?group_id=167&amp;amp;release_id=28426&lt;/a&gt; and make sure you check the box to install rubygems. &lt;/li&gt;    &lt;li&gt;Open up your PowerShell or console, and run:  &lt;br /&gt;&lt;font face="Courier New"&gt;gem update ––system&lt;/font&gt;&lt;font face="trebu"&gt;        &lt;br /&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;gem install activerecord activerecord-sqlserver-adapter        &lt;br /&gt;&lt;/font&gt;&lt;em&gt;*This should install all prerequisites gems as well. &lt;/em&gt;&lt;/li&gt;    &lt;li&gt;Grab my example from github:      &lt;br /&gt;&lt;a href="http://github.com/alexmoore/activerecord-with-sqlserver-example/tree/master"&gt;http://github.com/alexmoore/activerecord-with-sqlserver-example/tree/master&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Run the CreatePersonTable.sql script to add the example table to your database. &lt;/li&gt;    &lt;li&gt;Open Config.rb and put your database connection info in. &lt;/li&gt;    &lt;li&gt;Run: &lt;font face="Courier New"&gt;ruby PersonFactory.rb&lt;/font&gt;  and you should be golden!       &lt;br /&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;In my next post I will show how to use the Faker gem and some statistics tricks to quickly mock up a plethora of test data.&lt;/p&gt;  &lt;p&gt;-- Alex&lt;/p&gt;&lt;img src="http://geekswithblogs.net/alexmoore/aggbug/134124.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/alexmoore/comments/134124.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/alexmoore/comments/commentRss/134124.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/alexmoore/services/trackbacks/134124.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Good .Net Performance Talks</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/alexmoore/archive/2008/10/30/good-.net-performance-talks.aspx" />
        <id>http://geekswithblogs.net/alexmoore/archive/2008/10/30/good-.net-performance-talks.aspx</id>
        <published>2008-10-30T13:48:40-04:00:00</published>
        <updated>2008-12-29T18:15:18Z</updated>
        <content type="html">So I've been following PDC this week as much as possible, and came across this gem on &lt;a href="javascript:void(0);/*1225388769055*/"&gt;Vance Morrison's Blog&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;a href="javascript:void(0);/*1225388874955*/"&gt;Slides for our All Day PDC 2008 talks on: Performance By Design&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I recommend the Parallel Talk as it is more in depth than mine (they had more than 10 minutes for their presentation &lt;img alt="" src="/Providers/BlogEntryEditor/FCKeditor/editor/images/smiley/msn/regular_smile.gif" /&gt;).  &lt;br /&gt;
&lt;br /&gt;
Two things to take away:&lt;br /&gt;
&lt;ol&gt;
    &lt;li&gt;You can run your Garbage Collector on a separate thread:&lt;br /&gt;
        EXE.Config &amp;lt;gcServer enabled="true" /&amp;gt;&lt;/li&gt;
    &lt;li&gt;Shared state is the enemy!&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
The ASP.Net slides are good too, and go into great length about caching and IISconfiguration.&lt;br /&gt;
&lt;br /&gt;
-- Alex Moore&lt;img src="http://geekswithblogs.net/alexmoore/aggbug/126402.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/alexmoore/comments/126402.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/alexmoore/comments/commentRss/126402.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/alexmoore/services/trackbacks/126402.aspx</trackback:ping>
    </entry>
    <entry>
        <title>CONDG Lightning Talk Slides</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/alexmoore/archive/2008/10/26/condg-lightning-talk-slides.aspx" />
        <id>http://geekswithblogs.net/alexmoore/archive/2008/10/26/condg-lightning-talk-slides.aspx</id>
        <published>2008-10-26T22:55:01-04:00:00</published>
        <updated>2008-10-26T23:01:24Z</updated>
        <content type="html">&lt;p&gt;Here are the slides for my “Shallow Dive: PFX” talk, as promised.&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.slideshare.net/alexmoore/shallow-dive-pfx-presentation-695596" href="http://www.slideshare.net/alexmoore/shallow-dive-pfx-presentation-695596"&gt;http://www.slideshare.net/alexmoore/shallow-dive-pfx-presentation-695596&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;For the demos, I used the LINQRayTracer and C# Raytracer examples that come with the June08 PFX CTP.  &lt;/p&gt;  &lt;p&gt;If you have any questions about PFX or the slides, just email or twitter DM me.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Till next time, &lt;/p&gt;  &lt;p&gt;Alex Moore&lt;/p&gt;&lt;img src="http://geekswithblogs.net/alexmoore/aggbug/126204.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/alexmoore/comments/126204.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/alexmoore/comments/commentRss/126204.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/alexmoore/services/trackbacks/126204.aspx</trackback:ping>
    </entry>
    <entry>
        <title>CONDG October Meeting Recap</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/alexmoore/archive/2008/10/24/condg-october-meeting-recap.aspx" />
        <id>http://geekswithblogs.net/alexmoore/archive/2008/10/24/condg-october-meeting-recap.aspx</id>
        <published>2008-10-24T00:29:38-04:00:00</published>
        <updated>2008-10-24T00:32:07Z</updated>
        <content type="html">&lt;p&gt;So I gave my 10 minute “Shallow Dive: PFX” presentation at &lt;a href="http://condg.org/"&gt;CONDG&lt;/a&gt; tonight, and it went really smoothly.  There were a lot of good presentations tonight, and it’s wonderful to see people in the development community giving back by doing these presentations, teaching, and inspiring people.  I will post my slide deck this weekend, after I add some notes so readers can follow along.&lt;/p&gt;  &lt;p&gt;I would like to give props out to &lt;a href="http://blog.stevehorn.cc/"&gt;Steve Horn&lt;/a&gt; for his &lt;a href="http://jquery.com/"&gt;JQuery&lt;/a&gt; presentation, and to Greg Malcolm for his &lt;a href="http://www.mono-project.com/Main_Page"&gt;Mono&lt;/a&gt; presentation.  Great stuff! &lt;/p&gt;  &lt;p&gt;I did stay up late last night and submitted a &lt;a href="http://www.codemash.org"&gt;CodeMash&lt;/a&gt; perspective titled “Belly Flop: PFX”, hopefully it gets accepted.  I would love to extend on this presentation to show more of the architectural and design implications of Concurrent / Parallel Programming, and I think &lt;a href="http://www.codemash.org"&gt;CodeMash&lt;/a&gt; would be the perfect venue for this.&lt;/p&gt;  &lt;p&gt;More to come soon…&lt;/p&gt;  &lt;p&gt;-- Alex&lt;/p&gt;&lt;img src="http://geekswithblogs.net/alexmoore/aggbug/126071.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/alexmoore/comments/126071.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/alexmoore/comments/commentRss/126071.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/alexmoore/services/trackbacks/126071.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Parallel Extensions Links</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/alexmoore/archive/2008/10/22/parallel-extensions-links.aspx" />
        <id>http://geekswithblogs.net/alexmoore/archive/2008/10/22/parallel-extensions-links.aspx</id>
        <published>2008-10-22T16:40:42-04:00:00</published>
        <updated>2008-10-24T00:34:32Z</updated>
        <content type="html">&lt;p&gt;Here are some links to help you get started with the Microsoft Parallel Extensions to the .Net Framework (PFX).&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;h3&gt;&lt;/h3&gt;  &lt;h3&gt;Starting Out&lt;/h3&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=348F73FD-593D-4B3C-B055-694C50D2B0F3&amp;amp;displaylang=en"&gt;PFX CTP&lt;/a&gt; – Here are the latest CTP bits from June 2008.  They come with a whole lot of good examples and good documentation to get you started.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/concurrency/default.aspx"&gt;MSDN Parallel Computing Dev Center&lt;/a&gt; – Plenty of white papers, videos, podcasts, and articles to get you started.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://channel9.msdn.com/tags/Back+To+Basics/"&gt;Channel 9 Back to Basics Series&lt;/a&gt; (&lt;a href="http://channel9.msdn.com/tags/Back+To+Basics/RSS/"&gt;RSS&lt;/a&gt;) – This series is just getting started but looks very promising as a resource for developers new to parallel and concurrent programming.  It plans to cover Race Conditions, Deadlocks, Task Granularity,  Load Balancing, and Data Locality.  &lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;h3&gt;Blogs&lt;/h3&gt;  &lt;p&gt;&lt;a href="http://www.bluebytesoftware.com/blog/Default.aspx"&gt;Joe Duffy&lt;/a&gt; (&lt;a href="http://www.bluebytesoftware.com/blog/SyndicationService.asmx/GetRss"&gt;RSS&lt;/a&gt;) – Joe is one of the lead developers for the Parallel Computing Platform, and also just got done writing “The” book for concurrent programming in Windows and .Net.  There is a lot of great information here.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://herbsutter.wordpress.com/"&gt;Herb Sutter&lt;/a&gt; (&lt;a href="http://herbsutter.wordpress.com/feed/"&gt;RSS&lt;/a&gt;) – One of the great names in concurrent programming, a little more for the C++ crowd. &lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/pfxteam/"&gt;PFX Team Blog&lt;/a&gt; (&lt;a href="http://blogs.msdn.com/pfxteam/rss.xml"&gt;RSS&lt;/a&gt;) – News and information straight from the horse’s mouth.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;h3&gt;Books&lt;/h3&gt;  &lt;p&gt;&lt;a href="http://www.amazon.com/Concurrent-Programming-Windows-Microsoft-Development/dp/032143482X"&gt;Concurrent Programming on Windows&lt;/a&gt;, Joe Duffy – This is supposed to be “The” book about programming concurrently in Windows.  I have personally bought the “Rough Cut” from Safari and can safely recommend it to anybody trying to learn about concurrent and parallel programming.  It is divided into 4 section:  Concepts, Mechanisms, Algorithms, and Systems, so there is fun for the whole family.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;h3&gt;Videos/Screencasts&lt;/h3&gt;  &lt;p&gt;&lt;a href="http://channel9.msdn.com/tags/Parallel+Extensions/"&gt;Channel 9 Parallel Extensions&lt;/a&gt; (&lt;a href="http://channel9.msdn.com/tags/Parallel+Extensions/RSS/"&gt;RSS&lt;/a&gt;) – Great collection for learning all about the Parallel Extensions in and out.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://channel9.msdn.com/tags/Parallel+Computing/" target="_blank"&gt;Channel 9 Parallel Computing&lt;/a&gt; (&lt;a href="http://channel9.msdn.com/tags/Parallel+Computing/RSS/" target="_blank"&gt;RSS&lt;/a&gt;) – Focuses more on the whole of the Parallel Computing Platform movement.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;I hope these resources can get you started into the world of Parallel/Concurrent programming.&lt;/p&gt;  &lt;p&gt;-- Alex&lt;/p&gt;&lt;img src="http://geekswithblogs.net/alexmoore/aggbug/126034.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/alexmoore/comments/126034.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/alexmoore/comments/commentRss/126034.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/alexmoore/services/trackbacks/126034.aspx</trackback:ping>
    </entry>
</feed>