<?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>Chris Roland</title>
	<atom:link href="http://www.chrisroland.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisroland.info</link>
	<description>Software, Web and Database Developer</description>
	<lastBuildDate>Sun, 07 Mar 2010 03:46:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Best database engine or access for F#?</title>
		<link>http://www.chrisroland.info/best-database-engine-or-access-for-fsharp/</link>
		<comments>http://www.chrisroland.info/best-database-engine-or-access-for-fsharp/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 03:46:10 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[F#]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=262</guid>
		<description><![CDATA[After going through a couple blog articles on F# access to different database engines, I wondered what&#8217;s the best database engine/access for F#?
I use NHibernate and SQL Server on a daily basis from C#, so I naturally want to use NHibernate from F#.  After some quick googl&#8230;research, I found this great article on how [...]]]></description>
			<content:encoded><![CDATA[<p>After going through a couple blog articles on F# access to different database engines, I wondered what&#8217;s the best database engine/access for F#?</p>
<p>I use NHibernate and SQL Server on a daily basis from C#, so I naturally want to use NHibernate from F#.  After some quick googl&#8230;research, I found this great article on how to setup F# to use NHibernate:<br />
<a href="http://strangelights.com/blog/archive/2009/12/20/1650.aspx">http://strangelights.com/blog/archive/2009/12/20/1650.aspx</a></p>
<p>I also came across an article on how to access <a href="http://www.mongodb.org/display/DOCS/Home">MongoDB</a> from F#:<br />
<a href="http://codebetter.com/blogs/matthew.podwysocki/archive/2010/02/09/exploring-mongodb-with-f.aspx">http://codebetter.com/blogs/matthew.podwysocki/archive/2010/02/09/exploring-mongodb-with-f.aspx</a></p>
<p>After going through both and doing a couple quick spikes, MongoDB seems like a natural fit for F# and the functional way of life.  Keep in mind, I&#8217;m new to functional programming and F#, so take this with a grain of salt and do your own research.</p>
<p>With F#&#8217;s parallel features, <a href="http://en.wikipedia.org/wiki/NoSQL">NoSQL</a> database engines (MongoDB, CouchDB, etc) seem like a perfect fit.  Large distributed data stores,  asynchronous parallel processing, data stored as key/value pairs/objects, you get the picture.</p>
<p>It would be great to hear from anyone who&#8217;s used either with F# and your experiences.  For now, I&#8217;m going to do some prototyping down both paths to see where what comes out the other side.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/best-database-engine-or-access-for-fsharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F# = what?</title>
		<link>http://www.chrisroland.info/f-what/</link>
		<comments>http://www.chrisroland.info/f-what/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 02:18:15 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[F#]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=256</guid>
		<description><![CDATA[I was reading through my most recent book addiction purchase (Programming F#) and I came across something I thought was interesting.
The (=) operator, basically in any other language assigns something to another thing, but in F# it&#8217;s actually a comparison operator.  In C# (==) is used for comparison and (=) is used for assignment. [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading through my most recent book addiction purchase (<a href="http://www.amazon.com/gp/product/0596153643">Programming F#</a>) and I came across something I thought was interesting.</p>
<p>The (=) operator, basically in any other language assigns something to another thing, but in F# it&#8217;s actually a comparison operator.  In C# (==) is used for comparison and (=) is used for assignment.  If you forget the second (=), you can create a fun bug, for example:<br />
<code><br />
bool canDoSomething = false;<br />
if (canDoSomething = true)<br />
{<br />
     DoSomething();<br />
}<br />
</code></p>
<p>In this example the if statement is assigning true to the canDoSomething variable, which evaluates to true if the assignment is successful.</p>
<p>The if statement should really be:<br />
<code><br />
if (canDoSomething == true)<br />
</code></p>
<p>In F# you &#8220;assign&#8221; using the let statement:<br />
<code><br />
let canDoSomething = true<br />
</code></p>
<p>Moral of the story is, if you program in F#, it&#8217;s easier to avoid this bug.  However, watch your step when going from F# to another language.</p>
<p>For a little bit more information, check out this list of F# arithmetic operators:<br />
<a href="http://msdn.microsoft.com/en-us/library/dd469493%28VS.100%29.aspx">http://msdn.microsoft.com/en-us/library/dd469493%28VS.100%29.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/f-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating CAPM with F#</title>
		<link>http://www.chrisroland.info/calculating-capm-with-f/</link>
		<comments>http://www.chrisroland.info/calculating-capm-with-f/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 00:00:57 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[Finance]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=242</guid>
		<description><![CDATA[The Capital Asset Pricing Model (CAPM) is a way to determine the rate of return for an asset, a single stock or the entire portfolio.
I wanted to see how this would be calculated in F#, so here you go, enjoy:

let capm (beta:float) (y:float) (z:float) = y + (beta * (z - y));;

]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://en.wikipedia.org/wiki/Capital_asset_pricing_model">Capital Asset Pricing Model (CAPM)</a> is a way to determine the rate of return for an asset, a single stock or the entire portfolio.</p>
<p>I wanted to see how this would be calculated in F#, so here you go, enjoy:</p>
<p><code><br />
let capm (beta:float) (y:float) (z:float) = y + (beta * (z - y));;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/calculating-capm-with-f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2010 Goals</title>
		<link>http://www.chrisroland.info/2010-goals/</link>
		<comments>http://www.chrisroland.info/2010-goals/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 17:45:59 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[2010Goals]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=220</guid>
		<description><![CDATA[I&#8217;m really excited about 2010.  Things are changing and I&#8217;ve never felt more sure about the direction of my career and personal life than I do now.  So to kick things off, I&#8217;m posting a list of my 2010 goals and I&#8217;ll track them through out the year with the 2010Goals category.
The goal [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really excited about 2010.  Things are changing and I&#8217;ve never felt more sure about the direction of my career and personal life than I do now.  So to kick things off, I&#8217;m posting a list of my 2010 goals and I&#8217;ll track them through out the year with the 2010Goals category.</p>
<p>The goal criteria is, it needs to be measurable and attainable within 2010.</p>
<ol>
<li>
<h3>List and read every book I&#8217;ve purchased that I still own</h3>
<p>             This is a challenging goal because I have a ton of books I still need to finish or read.  I love books and when I find a good one, I buy it.  The problem is I pushed off reading a bunch of them, telling myself I would read them later.  This goal will insure I finally get to them.
        </li>
<li>
<h3>Build a hobby robot with my son</h3>
<p>             I&#8217;m into hobby robotics and my son loves robots as well.  He seems to be into building things and this would be a perfect project for both of us.  Maybe it will help pick up toys <img src='http://www.chrisroland.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
        </li>
<li>
<h3>Teach my kids the abacus</h3>
<p>             The abacus is amazing and it&#8217;s proven to improve mental capabilities, plus it&#8217;s easy and fun.  If you want to know more, just do a search for abacus on YouTube.
        </li>
<li>
<h3>Give at least 5 presentations for any .NET based event or user group</h3>
<p>             I enjoy speaking about technology I&#8217;m passionate about.  The challenge is I don&#8217;t speak enough and I should.  So even though I set this goal at 5 presentations, I hope to do more based on time, availability, etc.
        </li>
<li>
<h3>Take an active role in the .NET community</h3>
<p>             I need to become more active in the community, so this goal translates to, obtain a position within a .NET user group.  I will contribute to the community in many other ways, however this will insure I consistently provide support to the community through out the year.
        </li>
<li>
<h3>Read at least 2 books on mortgages or home loans</h3>
<p>             I recently became employed by Quicken Loans and this goal is to help me understand that domain and industry.
        </li>
<li>
<h3>Become a MCPD (Microsoft Certified Professional Developer)</h3>
<p>             I find they are a great way to define and drive the direction of my career.  The technology landscape is continually changing and I need to insure I do as well.
        </li>
<li>
<h3>Take at least 2 general education courses for college</h3>
<p>             I need to get this party started.  I&#8217;m looking forward to taking a ton of math, finance and business classes, however I need to start with my gen eds.
        </li>
<li>
<h3>Get more F# in my life</h3>
<p>             Almost forgot this one, but this year I&#8217;m going to get more F# in my life.  I&#8217;ve had a small taste of functional programming and I want more.  Also, F# seems to be the coming up language of choice for developing finance solutions.
        </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/2010-goals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINQ to SQL data mapping</title>
		<link>http://www.chrisroland.info/linq-to-sql-data-mapping/</link>
		<comments>http://www.chrisroland.info/linq-to-sql-data-mapping/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 02:50:28 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=210</guid>
		<description><![CDATA[I&#8217;m currently working on an ASP.NET MVC project and I&#8217;m using LINQ to SQL to manage my data.  One of the fields I&#8217;m working with is stored as a MONEY data type in SQL Server.  I wanted to find the best CLR data type to use when I mapped the field in my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on an ASP.NET MVC project and I&#8217;m using LINQ to SQL to manage my data.  One of the fields I&#8217;m working with is stored as a MONEY data type in SQL Server.  I wanted to find the best CLR data type to use when I mapped the field in my LINQ Data Context.  After some researching I came across a great MSDN article showing what types to use when mapping back to the database with LINQ.  There is even an awesome grid showing the best types to use and the expected data loss.</p>
<p>Here is the link:<br />
<a href="http://msdn.microsoft.com/en-us/library/bb386947.aspx">http://msdn.microsoft.com/en-us/library/bb386947.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/linq-to-sql-data-mapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove empty array elements in PHP</title>
		<link>http://www.chrisroland.info/remove-empty-array-elements-in-php/</link>
		<comments>http://www.chrisroland.info/remove-empty-array-elements-in-php/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 02:23:56 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=208</guid>
		<description><![CDATA[Here is a quick tip on how to remove elements with empty values.  All you have to use is the array_filter($myarray) function.  Here is an example.

$myarray = array();
$myarray[] = 1;
$myarray[] = '';
$myarray[] = 'a';
print_r($myarray);
Array
(
     [0] => 1
     [1] =>
     [2] => [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick tip on how to remove elements with empty values.  All you have to use is the array_filter($myarray) function.  Here is an example.</p>
<p><code><br />
$myarray = array();<br />
$myarray[] = 1;<br />
$myarray[] = '';<br />
$myarray[] = 'a';</p>
<p>print_r($myarray);</p>
<p>Array<br />
(<br />
     [0] => 1<br />
     [1] =><br />
     [2] => a<br />
)<br />
</code></p>
<p>When you use array_filter() this is what you get:<br />
<code><br />
$myarray = array_filter($myarray);<br />
print_r($myarray);</p>
<p>Array<br />
(<br />
     [0] => 1<br />
     [1] => a<br />
)<br />
</code></p>
<p>Of course you can use array_filter with a callback function to intelligently remove elements, but if you just want to remove empty values, this is the best way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/remove-empty-array-elements-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Going to give Oxite another try</title>
		<link>http://www.chrisroland.info/going-to-give-oxite-another-try/</link>
		<comments>http://www.chrisroland.info/going-to-give-oxite-another-try/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 21:30:06 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Oxite]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=205</guid>
		<description><![CDATA[After going through the Oxite hosting issue on Godaddy, I decided to look into the hosting issue further.  Basically with Godaddy, unless I had a VPS with them, hosting Oxite is a bunch of hoops I don&#8217;t want to jump through just to get a blog going.  So, to give Oxite a fair [...]]]></description>
			<content:encoded><![CDATA[<p>After going through the Oxite hosting issue on Godaddy, I decided to look into the hosting issue further.  Basically with Godaddy, unless I had a VPS with them, hosting Oxite is a bunch of hoops I don&#8217;t want to jump through just to get a blog going.  So, to give Oxite a fair chance I&#8217;m going to get a hosting account with <a href="http://www.discountasp.net">Discount ASP.NET</a>, who I hear has great support for ASP.NET.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/going-to-give-oxite-another-try/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grand Rapids GiveCamp 2009</title>
		<link>http://www.chrisroland.info/grand-rapids-givecamp-2009/</link>
		<comments>http://www.chrisroland.info/grand-rapids-givecamp-2009/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 17:12:46 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=203</guid>
		<description><![CDATA[Time for another GiveCamp.  This time it will be in Grand Rapids at the YMCA.  I&#8217;m looking forward to this event and being able to help non-profits in any way I can.  I&#8217;ll try and keep the posts coming during the event, you may see a couple 3AM posts, you were warned [...]]]></description>
			<content:encoded><![CDATA[<p>Time for another GiveCamp.  This time it will be in Grand Rapids at the YMCA.  I&#8217;m looking forward to this event and being able to help non-profits in any way I can.  I&#8217;ll try and keep the posts coming during the event, you may see a couple 3AM posts, you were warned <img src='http://www.chrisroland.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The GR GiveCamp organizers setup <a href="http://www.assembla.com/">Assembla</a> for us to use during the event for task tracking, document management, etc.  This will be cool, since everyone will be using the same system to track everything.</p>
<p>Well, I&#8217;m off.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/grand-rapids-givecamp-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP-GTK who knew GTK could look so good</title>
		<link>http://www.chrisroland.info/php-gtk-who-knew-gtk-could-look-so-good/</link>
		<comments>http://www.chrisroland.info/php-gtk-who-knew-gtk-could-look-so-good/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 06:11:51 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP-GTK]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=199</guid>
		<description><![CDATA[Looking good as in tasty, yummy, delicious.  Not as in, hey nice hair or where did you buy that shirt.
I&#8217;m a Qt kind of guy when it comes to OSS GUI frameworks and really Qt is more than that.  However lately I&#8217;m spending some of my time in PHP.  I really enjoy [...]]]></description>
			<content:encoded><![CDATA[<p>Looking good as in tasty, yummy, delicious.  Not as in, hey nice hair or where did you buy that shirt.</p>
<p>I&#8217;m a Qt kind of guy when it comes to OSS GUI frameworks and really Qt is more than that.  However lately I&#8217;m spending some of my time in PHP.  I really enjoy developing in PHP and I&#8217;m always trying to find new and fun ways to use a language I spend time in.  Since PHP is primarily a web development language, I wanted to see what libraries/frameworks were out there to support desktop application development with PHP.</p>
<p>I looked at <a href="http://www.php-qt.org/">PHP-Qt</a>, however I feel that project still has a ways to go before I can start using it.  Keep in mind, I work on a Windows box all day and I didn&#8217;t want to have to jump through the cygwin hoop.  I think they will have good support for Windows soon, but I want something that I can use now.</p>
<p>I did some more research and came across the <a href="http://gtk.php.net/">PHP-GTK</a> project.  The first thing I look for in a framework project is the documentation.  I was surprised to see the amount of <a href="http://gtk.php.net/manual/en/">documentation </a>and with some code samples.  The docs are not perfect, but they provide me with what I need.  </p>
<p>Demos are the second thing I look for.  I want to see how it will work, how the code is compiled/ran and if I can run it on my system.  Within a couple minutes of unzipping a folder, I was up and running.</p>
<p>So, if you are a PHP developer looking to develop a desktop application, I would consider taking a look at PHP-GTK.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/php-gtk-who-knew-gtk-could-look-so-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a module to an article in Joomla</title>
		<link>http://www.chrisroland.info/adding-a-module-to-an-article-in-joomla/</link>
		<comments>http://www.chrisroland.info/adding-a-module-to-an-article-in-joomla/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 04:04:38 +0000</pubDate>
		<dc:creator>Chris Roland</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.chrisroland.info/?p=196</guid>
		<description><![CDATA[If you want to add a module directly into an article just follow the steps below:


Enable the Content &#8211; Load Module plugin
Go to the Extensions->Plugins Manager section and enable the &#8216;Content &#8211; Load Module&#8217; plugin.


Enter a unique position name for your module
Go to the Extensions->Module Manager, select your module and enter a unique position in [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to add a module directly into an article just follow the steps below:</p>
<ol>
<li>
<b>Enable the Content &#8211; Load Module plugin</b><br />
Go to the Extensions->Plugins Manager section and enable the &#8216;Content &#8211; Load Module&#8217; plugin.
</li>
<li>
<b>Enter a unique position name for your module</b><br />
Go to the Extensions->Module Manager, select your module and enter a unique position in the Position field in the Details section. For example mod_mymodule.
</li>
<li>
<b>Enter the loadposition tag into the article</b><br />
Edit the article you want to put the module in and enter the {loadposition positionname} tag<br />
For example <i>{loadposition mod_mymodule}</i>
</li>
</ol>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisroland.info/adding-a-module-to-an-article-in-joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
