<?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>PMA Media Group&#187; Uncategorized</title>
	<atom:link href="http://www.pmamediagroup.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pmamediagroup.com</link>
	<description>Unique Marketing Techniques and Strategies with Guaranteed Results!</description>
	<lastBuildDate>Thu, 29 Jul 2010 15:34:44 +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>Lambdas</title>
		<link>http://www.pmamediagroup.com/2010/07/procs-and-lambdas/</link>
		<comments>http://www.pmamediagroup.com/2010/07/procs-and-lambdas/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 22:52:42 +0000</pubDate>
		<dc:creator>Narshlob</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.pmamediagroup.com/?p=1014</guid>
		<description><![CDATA[What are these Lambdas you speak of?
This article is focused on Lambdas as used in the Ruby language.
What are Lambdas? They&#8217;re given several names in other languages.

Lambda
Anonymous Function
Closure

In Ruby, we just call it a Lambda function. It&#8217;s defined as such:

x = lambda &#123; return &#34;ar har har har&#34; &#125;

Calling this method will return &#8220;ar har [...]]]></description>
			<content:encoded><![CDATA[<h2>What are these Lambdas you speak of?</h2>
<p>This article is focused on Lambdas as used in the Ruby language.<br />
What are Lambdas? They&#8217;re given several names in other languages.</p>
<ul>
<li>Lambda</li>
<li>Anonymous Function</li>
<li>Closure</li>
</ul>
<p>In Ruby, we just call it a Lambda function. It&#8217;s defined as such:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">x = <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#996600;">&quot;ar har har har&quot;</span> <span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>Calling this method will return &#8220;ar har har har&#8221; as a return value. If that were put into a function, like so,</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> foo
  x = <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#996600;">&quot;ar har har har&quot;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
  x.<span style="color:#9900CC;">call</span>
  <span style="color:#0000FF; font-weight:bold;">return</span> <span style="color:#996600;">&quot;yo ho ho ho&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>This will actually return &#8220;yo ho ho ho&#8221;. If you were to puts x.call, however, you would see &#8220;ar har har har&#8221;. Very interesting. So returning from lambda acts just as a function would, hence it&#8217;s an anonymous function.</p>
<p>Lambdas have an interesting quirk in that if you declare one as such:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">x = <span style="color:#CC0066; font-weight:bold;">lambda</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>x, y<span style="color:#006600; font-weight:bold;">|</span> <span style="color:#CC0066; font-weight:bold;">puts</span> x <span style="color:#006600; font-weight:bold;">+</span> y <span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>And then call it like this:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">x.<span style="color:#9900CC;">call</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">1</span>, <span style="color:#006666;">2</span>, <span style="color:#006666;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<p>It will throw an argument error</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pmamediagroup.com/2010/07/procs-and-lambdas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Culerity and Celerity, JavaScript enabled testing in Cucumber</title>
		<link>http://www.pmamediagroup.com/2009/06/culerity-and-celerity-javascript-enabled-testing-in-cucumber/</link>
		<comments>http://www.pmamediagroup.com/2009/06/culerity-and-celerity-javascript-enabled-testing-in-cucumber/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 23:02:30 +0000</pubDate>
		<dc:creator>fugufish</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[activescaffold]]></category>
		<category><![CDATA[celerity]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[culerity]]></category>
		<category><![CDATA[htmUnit]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.pmamediagroup.com/?p=821</guid>
		<description><![CDATA[As you may know, testing JavaScript inesnsive applications using Cucumber can be a pain. There are several ways to handle this; Selenium, Watir and the like. The easiest way I have found however is by using Celerity a jRuby API for htmlUnit, a fully functional headless browser that completely supports JavaScript, and you don&#8217;t have [...]]]></description>
			<content:encoded><![CDATA[<p>As you may know, testing JavaScript inesnsive applications using Cucumber can be a pain. There are several ways to handle this; Selenium, Watir and the like. The easiest way I have found however is by using <a title="Celerity" href="http://celerity.rubyforge.org/">Celerity</a> a jRuby API for htmlUnit, a fully functional headless browser that completely supports JavaScript, and you don&#8217;t have to serve your application on jRuby to use it!. I was able to get Celerity to play nice duruing Cucumber tests by doing the following:  First, you will need of course jRuby. The Culerity gem will start up Celerity in the jRuby environment, and proxy the actual browser through it. Download <a title="jRuby" href="http://jruby.codehaus.org/">jRuby</a> and extract it to wherever you want it located. In my case I put it in /opt, and set your PATH accordingly.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">export PATH=$HOME<span style="color:#006600; font-weight:bold;">/</span>jruby<span style="color:#006600; font-weight:bold;">/</span>bin:$PATH</pre></div></div>

<p>Next install the Celerity gem in jRuby (we are using the github version rather than the ruby forge version, as it provides a later version):</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">jruby <span style="color:#006600; font-weight:bold;">-</span>S gem install jarib<span style="color:#006600; font-weight:bold;">-</span>celerity <span style="color:#006600; font-weight:bold;">--</span>source=http:<span style="color:#006600; font-weight:bold;">//</span>gems.<span style="color:#9900CC;">github</span>.<span style="color:#9900CC;">com</span></pre></div></div>

<p>Now install the Culerity gem. This provides the interface between Celerity and your environment without forcing you to run in jRuby</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"> gem install langalex<span style="color:#006600; font-weight:bold;">-</span>culerity <span style="color:#006600; font-weight:bold;">--</span>source http:<span style="color:#006600; font-weight:bold;">//</span>gems.<span style="color:#9900CC;">github</span>.<span style="color:#9900CC;">com</span></pre></div></div>

<p>Place this in your test environment:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># config/environments/test.rb</span>
&nbsp;
config.<span style="color:#9900CC;">gem</span> <span style="color:#996600;">&quot;langalex-culerity&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:lib</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#0000FF; font-weight:bold;">false</span></pre></div></div>

<p>I call <code>:lib =&gt; false</code> here to avoid loading the gem. This is done in the file generated by culerity.  Finally remove <code>features/steps/webrat_steps.rb</code> as it will conflict with Culerity, and run:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">script<span style="color:#006600; font-weight:bold;">/</span>generate culerity</pre></div></div>

<p>Enjoy!  Culerity should have very similar syntax to webrat, however keep in mind you may see some differences that you may need to adjust.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pmamediagroup.com/2009/06/culerity-and-celerity-javascript-enabled-testing-in-cucumber/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Design and SEO Rap</title>
		<link>http://www.pmamediagroup.com/2009/05/web-design-and-seo-rap/</link>
		<comments>http://www.pmamediagroup.com/2009/05/web-design-and-seo-rap/#comments</comments>
		<pubDate>Fri, 08 May 2009 21:36:33 +0000</pubDate>
		<dc:creator>Brandon Buttars</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.pmamediagroup.com/?p=780</guid>
		<description><![CDATA[Here is a sweet rap song about web design coding and SEO.

]]></description>
			<content:encoded><![CDATA[<p>Here is a sweet rap song about web design coding and SEO.</p>
<p><object width="425" height="344" data="http://www.youtube.com/v/a0qMe7Z3EYg&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/a0qMe7Z3EYg&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;feature=player_embedded&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pmamediagroup.com/2009/05/web-design-and-seo-rap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>April Fool&#8217;s Joke</title>
		<link>http://www.pmamediagroup.com/2009/04/april-fools-joke/</link>
		<comments>http://www.pmamediagroup.com/2009/04/april-fools-joke/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 03:15:36 +0000</pubDate>
		<dc:creator>jaredd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.pmamediagroup.com/?p=240</guid>
		<description><![CDATA[Well throughout the day when I went to use the restroom, the stalls were full of people in them, later i caught on that it was the same guys shoes.
And by the end of the day I was worried for the guys health and I went to investigate and this is what I found.



Very Funny [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_241" class="wp-caption aligncenter" style="width: 522px"><img class="size-full wp-image-241 " title="1238622412639" src="http://www.pmamediagroup.com/wp-content/uploads/2009/04/1238622412639.jpg" alt="What I saw." width="512" height="384" /><p class="wp-caption-text">What I saw.</p></div>
<p style="text-align: center;">Well throughout the day when I went to use the restroom, the stalls were full of people in them, later i caught on that it was the same guys shoes.</p>
<p style="text-align: center;">And by the end of the day I was worried for the guys health and I went to investigate and this is what I found.</p>
<p style="text-align: center;">
<p><span id="more-240"></span></p>
<div id="attachment_242" class="wp-caption aligncenter" style="width: 522px"><img class="size-full wp-image-242 " title="1238622442349" src="http://www.pmamediagroup.com/wp-content/uploads/2009/04/1238622442349.jpg" alt="Closer inspection." width="512" height="384" /><p class="wp-caption-text">Closer inspection.</p></div>
<p style="text-align: center;">
<div id="attachment_243" class="wp-caption aligncenter" style="width: 394px"><img class="size-full wp-image-243 " title="1238622454889" src="http://www.pmamediagroup.com/wp-content/uploads/2009/04/1238622454889.jpg" alt="Ahhahhh it's a trick." width="384" height="512" /><p class="wp-caption-text">Ahhahhh it&#39;s a trick.</p></div>
<p style="text-align: center;">Very Funny indeed.  :-)  Nice april fools joke Justin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pmamediagroup.com/2009/04/april-fools-joke/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: www.pmamediagroup.com @ 2010-07-31 10:40:58 -->