<?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"
	>

<channel>
	<title>Jumbabox</title>
	<atom:link href="http://www.jumbabox.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jumbabox.com</link>
	<description>tech, analytics, sci-fi etc.</description>
	<pubDate>Mon, 15 Sep 2008 05:12:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Ext JS Tree TreeLoader with Rails</title>
		<link>http://www.jumbabox.com/2008/09/ext-js-tree-treeloader-with-rails/</link>
		<comments>http://www.jumbabox.com/2008/09/ext-js-tree-treeloader-with-rails/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 05:12:00 +0000</pubDate>
		<dc:creator>Andrew Cetinick</dc:creator>
		
		<category><![CDATA[Ext JS]]></category>

		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=799</guid>
		<description><![CDATA[Recently I been playing around with alot of Ext JS.  It&#8217;s a great Ajax Framework, which makes building a full Ajax application easy as pie.  All you really need to worry about is how to transfer Json between your Rails application and Ext JS.
Here&#8217;s a tutorial on how to get Ext JS&#8217;s TreePanel going with [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I been playing around with alot of Ext JS.  It&#8217;s a great Ajax Framework, which makes building a full Ajax application easy as pie.  All you really need to worry about is how to transfer Json between your Rails application and Ext JS.</p>
<p>Here&#8217;s a tutorial on how to get Ext JS&#8217;s TreePanel going with Ruby on Rails.</p>
<p><span id="more-799"></span></p>
<h2>Ext JS Implementation</h2>
<p>You&#8217;ll start by creating the Tree component in your view.  This is an example of how it should look:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p7997"><td width="1%" class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code" id="p799code7"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> tree <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">tree</span>.<span style="color: #660066;">TreePanel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
      useArrows<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
      autoScroll<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
      animate<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
      containerScroll<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
      <span style="color: #006600; font-style: italic;">// auto create TreeLoader</span>
      loader<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">tree</span>.<span style="color: #660066;">TreeLoader</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>dataUrl<span style="color: #339933;">:</span><span style="color: #3366CC;">'/groups.json'</span><span style="color: #339933;">,</span> requestMethod<span style="color: #339933;">:</span> <span style="color: #3366CC;">'GET'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
&nbsp;
      root<span style="color: #339933;">:</span>  <span style="color: #003366; font-weight: bold;">new</span> Ext.<span style="color: #660066;">tree</span>.<span style="color: #660066;">AsyncTreeNode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        text<span style="color: #339933;">:</span> <span style="color: #3366CC;">'Root Node'</span><span style="color: #339933;">,</span>
        draggable<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
        disabled<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        expandable<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span>
        expanded<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
        id<span style="color: #339933;">:</span><span style="color: #3366CC;">'source'</span>  
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></td></tr></table></div>

<p>The most important line in this code above is <strong>line number 7</strong>.  This will call the URL to retrieve the Tree in Json format.  I use a GET request so it will goto my index action in Rails using a Restful design.</p>
<h2>Rails Tree Plugin</h2>
<p>As you may have noticed from my example I&#8217;m using Group as the model for my tree.  In your model you should install a tree plugin similar to <a href="http://github.com/rails/acts_as_tree/tree/master" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://github.com/rails/acts_as_tree/tree/master');">acts_as_tree</a> so you get access to methods such as <strong>group.children</strong>.</p>
<p>If your using the above plugin, add this line into your model to specify your model to use the plugin:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p7998"><td class="code" id="p799code8"><pre class="ruby ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># /app/models/group.rb</span>
<span style="color:#9966CC; font-weight:bold;">class</span> Group <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActiveRecord::Base</span>
  acts_as_tree <span style="color:#ff3333; font-weight:bold;">:order</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;name&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:dependent</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:destroy</span>
  ....
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<blockquote><p>If you find acts_as_tree to be limited in functionality, there are better tree plugins that I recommend having a look at such as <a href="http://github.com/lawrencepit/acts_as_nested_set/tree/master" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://github.com/lawrencepit/acts_as_nested_set/tree/master');">acts_as_nested_set</a> </p></blockquote>
<h2>Rails Model Implementation</h2>
<p>For my implementation I needed a boolean function to return true/false if group was a leaf node or not.  I added this function into my model.</p>

<div class="wp_codebox"><table width="100%" ><tr id="p7999"><td class="code" id="p799code9"><pre class="ruby ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># /app/models/group.rb</span>
  ...
  <span style="color:#9966CC; font-weight:bold;">def</span> leaf?
    <span style="color:#9966CC; font-weight:bold;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>children.<span style="color:#9900CC;">size</span> == 0<span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#0000FF; font-weight:bold;">false</span>
    <span style="color:#9966CC; font-weight:bold;">else</span>
      <span style="color:#0000FF; font-weight:bold;">true</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
  ...</pre></td></tr></table></div>

<p>Also I added a function to return the root node groups.</p>

<div class="wp_codebox"><table width="100%" ><tr id="p79910"><td class="code" id="p799code10"><pre class="ruby ruby" style="font-family:monospace;">  <span style="color:#008000; font-style:italic;"># /app/models/group.rb</span>
  ...
  <span style="color:#9966CC; font-weight:bold;">def</span> <span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">find_root_nodes</span>
    find<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:all</span>, <span style="color:#ff3333; font-weight:bold;">:conditions</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;parent_id IS NULL&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
  ...</pre></td></tr></table></div>

<h2>Handling JSON requests with Rails</h2>
<p>Using a Restful design here.  I made my controller return json using .json at the end of the URL.  To allow this I added this line to the end of my routes.rb file</p>

<div class="wp_codebox"><table width="100%" ><tr id="p79911"><td class="code" id="p799code11"><pre class="ruby ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># END OF /config/routes.rb</span>
  ...
  <span style="color:#9900CC;">map</span>.<span style="color:#9900CC;">connect</span> <span style="color:#996600;">':controller/:action.:format'</span>
  ...</pre></td></tr></table></div>

<h2>Rails Controller Implementation</h2>
<p>My index action in my controller serves the GET request and spits out json when .json is supplied at the end of the URL.  A extra function (get_ext_tree) is required to recursively add the children to a tree node.  This function will return JSON in the format required for the Ext JS TreeLoader.</p>

<div class="wp_codebox"><table width="100%" ><tr id="p79912"><td class="code" id="p799code12"><pre class="ruby ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># /app/controllers/groups_controller.rb</span>
<span style="color:#9966CC; font-weight:bold;">class</span> GroupsController <span style="color:#006600; font-weight:bold;">&lt;</span> ApplicationController
  <span style="color:#9966CC; font-weight:bold;">def</span> index
      groups = Group.<span style="color:#9900CC;">find_root_nodes</span>
      json_data = get_ext_tree<span style="color:#006600; font-weight:bold;">&#40;</span>groups,<span style="color:#0000FF; font-weight:bold;">nil</span><span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    respond_to <span style="color:#9966CC; font-weight:bold;">do</span> |format|
      <span style="color:#CC0066; font-weight:bold;">format</span>.<span style="color:#9900CC;">html</span>  <span style="color:#008000; font-style:italic;">#/groups</span>
      <span style="color:#CC0066; font-weight:bold;">format</span>.<span style="color:#9900CC;">json</span> <span style="color:#006600; font-weight:bold;">&#123;</span> render <span style="color:#ff3333; font-weight:bold;">:json</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> json_data <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#008000; font-style:italic;"># /groups.json</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> get_ext_tree<span style="color:#006600; font-weight:bold;">&#40;</span>groups, parent<span style="color:#006600; font-weight:bold;">&#41;</span>  
    data = <span style="color:#CC0066; font-weight:bold;">Array</span>.<span style="color:#9900CC;">new</span>  
    groups.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span> |group|  
      <span style="color:#9966CC; font-weight:bold;">if</span> group.<span style="color:#9900CC;">leaf</span>?  
        <span style="color:#9966CC; font-weight:bold;">if</span> data.<span style="color:#9900CC;">empty</span>?  
          data =   <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">&quot;text&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span>  group.<span style="color:#9900CC;">name</span>, <span style="color:#996600;">&quot;id&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> group.<span style="color:#9900CC;">id</span>, <span style="color:#996600;">&quot;leaf&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span>,  
              <span style="color:#996600;">&quot;children&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> get_ext_tree<span style="color:#006600; font-weight:bold;">&#40;</span>group.<span style="color:#9900CC;">children</span>,group<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#93;</span>   
        <span style="color:#9966CC; font-weight:bold;">else</span>  
          data.<span style="color:#9900CC;">concat</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">&quot;text&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span>  group.<span style="color:#9900CC;">name</span>, <span style="color:#996600;">&quot;id&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> group.<span style="color:#9900CC;">id</span>, <span style="color:#996600;">&quot;leaf&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span>,  
                <span style="color:#996600;">&quot;children&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> get_ext_tree<span style="color:#006600; font-weight:bold;">&#40;</span>group.<span style="color:#9900CC;">children</span>,group<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>  
        <span style="color:#9966CC; font-weight:bold;">end</span>  
      <span style="color:#9966CC; font-weight:bold;">else</span>  
        data.<span style="color:#9900CC;">concat</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">&quot;text&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> group.<span style="color:#9900CC;">name</span>, <span style="color:#996600;">&quot;id&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> group.<span style="color:#9900CC;">id</span>, <span style="color:#996600;">&quot;leaf&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>, <span style="color:#996600;">&quot;children&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>   
      <span style="color:#9966CC; font-weight:bold;">end</span>  
    <span style="color:#006600; font-weight:bold;">&#125;</span>  
    <span style="color:#0000FF; font-weight:bold;">return</span> data  
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/09/ext-js-tree-treeloader-with-rails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to install Pentaho 1.7 GA on Ubuntu Hardy</title>
		<link>http://www.jumbabox.com/2008/09/how-to-install-pentaho-on-ubuntu-hardy/</link>
		<comments>http://www.jumbabox.com/2008/09/how-to-install-pentaho-on-ubuntu-hardy/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 00:31:29 +0000</pubDate>
		<dc:creator>schone</dc:creator>
		
		<category><![CDATA[Business Intelligence]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[open source]]></category>

		<category><![CDATA[pentaho]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=788</guid>
		<description><![CDATA[Pentaho is an amazing open source tool for Business Intelligence and the other day I succesfully got it working with some help from the guys over at ##pentaho @ irc.freenode.net. So here is a tutorial on how to get Pentaho 1.7 running on a Ubuntu Hardy webserver or local box!
Resources which are handy when it [...]]]></description>
			<content:encoded><![CDATA[<p>Pentaho is an amazing open source tool for Business Intelligence and the other day I succesfully got it working with some help from the guys over at ##pentaho @ irc.freenode.net. So here is a tutorial on how to get Pentaho 1.7 running on a Ubuntu Hardy webserver or local box!</p>
<p>Resources which are handy when it comes to Pentaho:</p>
<ul>
<li>##pentaho - IRC support channel</li>
<li><a href="http://www.pentaho-wiki.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.pentaho-wiki.com/');">Unofficial Pentaho Wiki</a></li>
<li><a href="http://www.google.com.au/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwiki.pentaho.com%2F&amp;ei=McbFSP6PLZmQsQPZz9H4Bw&amp;usg=AFQjCNHftJ8LIv5uqBVD05GkmkVq-IMCxQ&amp;sig2=o7IGeRYpQAL55HsMCTtw2Q" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.google.com.au/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwiki.pentaho.com%2F&amp;ei=McbFSP6PLZmQsQPZz9H4Bw&amp;usg=AFQjCNHftJ8LIv5uqBVD05GkmkVq-IMCxQ&amp;sig2=o7IGeRYpQAL55HsMCTtw2Q');">Official Pentaho Wiki</a></li>
</ul>
<p><strong>Extra props to to bugg from ##pentaho!</strong></p>
<p><span id="more-788"></span></p>
<h2><span class="mw-headline">Assumptions</span></h2>
<p>Before you begin your installation I will assume that you have installed and have running:</p>
<ul>
<li>MySql - <a class="external text" title="http://www.howtogeek.com/howto/ubuntu/install-mysql-server-5-on-ubuntu/" rel="nofollow" href="http://www.howtogeek.com/howto/ubuntu/install-mysql-server-5-on-ubuntu/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.howtogeek.com/howto/ubuntu/install-mysql-server-5-on-ubuntu/');">click here for a tutorial</a></li>
<li>Apache ANT - <a class="external text" title="http://ant.apache.org/manual/index.html" rel="nofollow" href="http://ant.apache.org/manual/index.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://ant.apache.org/manual/index.html');">click here for manual</a></li>
</ul>
<p>If someone gets the time maybe they can write out the above two steps :)</p>
<p><a name="Directory_Structure"></a></p>
<h3><span class="mw-headline">Directory Structure</span></h3>
<p>When setting up my pentaho install I decided to layout my directory similar to this:</p>
<ul>
<li>/opt/tomcat_dir - your tomcat installation directory</li>
<li>/opt/pentaho - holds pentaho related folders</li>
<li>/opt/pentaho/pentaho-solutions - holds the pentaho solution files</li>
</ul>
<p><a name="Step_1:_Install_and_configure_the_JAVA_JDK_and_JRE"></a></p>
<h2><span class="mw-headline">Step 1: Install and configure the JAVA JDK and JRE</span></h2>
<p>The first step is to first install the latest Java JDK &amp; JRE (1.6 for this tutorial). To install the latest version of the JAVA JDK and JRE, at the terminal prompt type:</p>
<pre>   $terminal &gt; sudo apt-get install sun-java6-jdk sun-java6-jre</pre>
<p>You will be prompted to install the necessary files, just hit the Y key. Ubuntu will automatically install the JAVA JDK and JRE in the following directory</p>
<pre>   /usr/lib/jvm/java-6-sun-1.6.0.06/</pre>
<p>To check if it all went well type this at the terminal prompt, it should let you know what version of JAVA you have installed on your Ubuntu box.</p>
<pre>   $terminal &gt; java -version</pre>
<p>Now before we continue we have to set the JAVA_HOME as an evironment variable (for Tomcat), you can do this two ways:</p>
<p><strong>Method 1 (On the fly)</strong></p>
<pre>   $terminal&gt; export JAVA_HOME = "/usr/lib/jvm/java-6-sun-1.6.0.06"</pre>
<p><strong>Method 2 (On startup)</strong></p>
<pre>   $terminal&gt; sudo vi /etc/profile or /etc/.bashrc</pre>
<p>Paste this line at the end</p>
<pre>   export JAVA_HOME = "/usr/lib/jvm/java-6-sun-1.6.0.06"</pre>
<p>Now we have the JAVA JDK and JRE installed and configured! Lets move onto Tomcat..</p>
<p><a name="Step_2:_Installation_and_configuration_of_Tomcat"></a></p>
<h2><span class="mw-headline">Step 2: Installation and configuration of Tomcat</span></h2>
<p>For this tutorial I will be using Tomcat 5.5. Before we install Tomcat, lets create a working directory to dump all the new .tars and .zips we will be downloading.</p>
<pre>   $terminal&gt; sudo mkdir work
   $terminal&gt; cd work</pre>
<p>To install Tomcat 5.5 at the terminal prompt type the following command, however if you want to download the .tar file directly or from another mirror click here (<a class="external free" title="http://tomcat.apache.org/download-55.cgi" rel="nofollow" href="http://tomcat.apache.org/download-55.cgi" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://tomcat.apache.org/download-55.cgi');">http://tomcat.apache.org/download-55.cgi</a>):</p>
<pre>   $terminal&gt; sudo wget <a class="external free" title="http://apache.mirror.aussiehq.net.au/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.tar.gz" rel="nofollow" href="http://apache.mirror.aussiehq.net.au/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.tar.gz" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://apache.mirror.aussiehq.net.au/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.tar.gz');">http://apache.mirror.aussiehq.net.au/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.tar.gz</a></pre>
<p>The next step is to extract the .tar.gz we just downloaded:</p>
<pre>   $terminal&gt; sudo tar xvf apache-tomcat-5.5.26.tar.gz</pre>
<p>You will now have a directory labelled &#8220;apache-tomcat-5.5.26&#8243;, lets move this to a more sensible location. If you don&#8217;t have /opt/ directory create it by typing the following at the terminal prompt:</p>
<pre>   $terminal&gt; sudo mkdir /opt</pre>
<p>Then copy the &#8220;apache-tomcat-5.5.26&#8243; folder to the /opt/ directory by typing the following at the terminal prompt (make sure you are still in your work directory):</p>
<pre>   $terminal&gt; sudo mv apache-tomcat-5.5.26 /opt</pre>
<p>The last step is to chmod 777 this new directory, why? I had alot of issue installing at the root level on my ubuntu box in regards to permissions etc, chmod&#8217;ing 777 everything fixes it up.</p>
<pre>   $terminal&gt; sudo chmod 777 -R /opt/apache-tomcat-5.5.26</pre>
<ul>
<li> The -R is a recursive function which chmods all sub directories under the main directory.</li>
</ul>
<p>Phew! So now we have installed the JAVA JDK and JRE and Tomcat, lets move on to getting Pentaho up and running!</p>
<p><a name="Step_3:_Installing_and_configuring_Pentaho"></a></p>
<h2><span class="mw-headline">Step 3: Installing and configuring Pentaho</span></h2>
<p>We will need to download 4 packages to get our Pentaho installation working on this configuration:</p>
<ul>
<li>pentaho_j2ee_deployments-1.7.1.zip</li>
<li>pentaho_solutions-1.7.1.zip</li>
<li>Pentaho MySql .sql Sample Script - <a class="external text" title="http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/" rel="nofollow" href="http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/');">here</a></li>
<li>MySql connector JAVA 5.1.6 - <a class="external text" title="http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/pick#mirrors" rel="nofollow" href="http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/pick#mirrors" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/pick#mirrors');">here</a></li>
</ul>
<p>Firstly lets download the Pentaho related packages. If you don&#8217;t want to use the wget command you can just visit this <a class="external text" title="http://sourceforge.net/project/showfiles.php?group_id=140317&amp;package_id=160028&amp;release_id=622669" rel="nofollow" href="http://sourceforge.net/project/showfiles.php?group_id=140317&amp;package_id=160028&amp;release_id=622669" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://sourceforge.net/project/showfiles.php?group_id=140317&amp;package_id=160028&amp;release_id=622669');">page</a> and download the above files or just type the following commands at the terminal prompt (make sure you are in your work directory):</p>
<pre>   $terminal&gt; sudo wget <a class="external free" title="http://internode.dl.sourceforge.net/sourceforge/pentaho/pentaho_j2ee_deployments-1.7.1.zip" rel="nofollow" href="http://internode.dl.sourceforge.net/sourceforge/pentaho/pentaho_j2ee_deployments-1.7.1.zip" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://internode.dl.sourceforge.net/sourceforge/pentaho/pentaho_j2ee_deployments-1.7.1.zip');">http://internode.dl.sourceforge.net/sourceforge/pentaho/pentaho_j2ee_deployments-1.7.1.zip</a>
   $terminal&gt; sudo wget <a class="external free" title="http://internode.dl.sourceforge.net/sourceforge/pentaho/pentaho_solutions-1.7.1.zip" rel="nofollow" href="http://internode.dl.sourceforge.net/sourceforge/pentaho/pentaho_solutions-1.7.1.zip" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://internode.dl.sourceforge.net/sourceforge/pentaho/pentaho_solutions-1.7.1.zip');">http://internode.dl.sourceforge.net/sourceforge/pentaho/pentaho_solutions-1.7.1.zip</a></pre>
<p><strong>Creating the MySql databases</strong></p>
<p>First download the MySql Pentaho Sample .sql script by clicking finding the latest version from <a class="external text" title="http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/" rel="nofollow" href="http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/');">here</a> or by running this command (within the work directory):</p>
<pre>   $terminal&gt; sudo wget <a class="external free" title="http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/SampleDataDump_MySql.sql" rel="nofollow" href="http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/SampleDataDump_MySql.sql" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/SampleDataDump_MySql.sql');">http://source.pentaho.org/svnroot/legacy/pentaho-data/branches/1.7/mysql5/SampleDataDump_MySql.sql</a></pre>
<p>Before logging into MySql to run the script make sure you are in the same directory where the .sql file is located then log into mysql:</p>
<pre>   $terminal&gt; mysql -u[username] -p[password]</pre>
<p>Then from the mysql prompt type the following in:</p>
<pre>   $mysql&gt; source .sql;</pre>
<p>This will run the .sql script and create 3 databases:</p>
<ol>
<li>hibernate</li>
<li>quartz</li>
<li>sampledata</li>
</ol>
<p>To check if these databases were created run this command:</p>
<pre>   $mysql&gt; show databases;</pre>
<p>Now exit out of MySql:</p>
<pre>   $mysql&gt; exit</pre>
<p><strong>Install the MySql Connector</strong></p>
<p>Download the MySql connector from this <a class="external text" title="http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/pick#mirrors" rel="nofollow" href="http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/pick#mirrors" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/pick#mirrors');">link</a> or type this at the command prompt (in your work directory):</p>
<pre>   $terminal&gt; sudo wget <a class="external free" title="http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/http://mysql.mirrors.ilisys.com.au/" rel="nofollow" href="http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/http://mysql.mirrors.ilisys.com.au/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/http://mysql.mirrors.ilisys.com.au/');">http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/http://mysql.mirrors.ilisys.com.au/</a></pre>
<p>Once that has downloaded into your work directory, extract the tar.gz file:</p>
<pre>   $terminal&gt; sudo tar xvf mysql-connector-java-5.1.6.tar.gz</pre>
<p>Now we will need to copy the mysql-connector-java-5.1.6-bin.jar file to the /opt/apache-tomcat-5.5.26/common/lib/ directory:</p>
<pre>   $terminal&gt; sudo cp mysql-connector-java-5.1.6-bin.jar /opt/apache-tomcat-5.5.26/common/lib/</pre>
<p><strong>Installing the Pentaho packages</strong></p>
<p>Firstly, lets unzip both the zip files we just downloaded (make sure you in your working directory):</p>
<pre>   $terminal&gt; sudo unzip pentaho_j2ee_deployments-1.7.1.zip
   $terminal&gt; sudo unzip pentaho_solutions-1.7.1.zip</pre>
<p>If you don&#8217;t have UNZIP installed, you can install it by typing this command:</p>
<pre>   $terminal&gt; sudo apt-get unzip</pre>
<p>Now we will need to user ANT to build our .wars for deployment on Tomcat, navigate to the pentaho_j2ee_deployments directory:</p>
<pre>   $terminal&gt; cd pentaho_j2ee_deployments</pre>
<p>Now run the following commands from the terminal prompt, after each command is complete you should see a &#8220;BUILD SUCCESFUL&#8221; message.</p>
<pre>   $terminal&gt; ant ant zip-pentaho-style-war
   $terminal&gt; ant zip-pentaho-steel-wheels-style-war
   $terminal&gt; ant zip-pentaho-portal-layout-war
   $terminal&gt; ant war-pentaho-tomcat-mysql</pre>
<p>This will create the 4 .wars, now we will need to copy these to our /opt/apache-tomcat-5.5.26/webapps/ directory, to do this run the following commands at the terminal prompt (make sure you are in the pentaho_j2ee_deployments directory when running these):</p>
<pre>   $terminal&gt; sudo cp /build/pentaho-wars/*.wars /opt/apache-tomcat-5.5.26/webapps/
   $terminal&gt; sudo cp /build/pentaho-wars/tomcat/mysql/*.wars /opt/apache-tomcat-5.5.26/webapps/</pre>
<p>To check if that was succesful type:</p>
<pre>   $terminal&gt; ls /opt/apache-tomcat-5.5.26/webapps/</pre>
<p>You should see the following files:</p>
<ol>
<li>pentaho.war</li>
<li>sw-style.war</li>
<li>pentaho-portal-layout.war</li>
<li>pentaho-style.war</li>
</ol>
<p>To deploy these .wars we are going to quickly start up tomcat and shut it down, at the terminal prompt navigate to the /opt/apache-tomcat-5.5.26/bin/ directory and run the ./startup.sh script.</p>
<pre>   $terminal&gt; cd /opt/apache-tomcat-5.5.26/bin
   $terminal&gt; ./startup.sh
   $terminal&gt; ./shutdown.sh</pre>
<p>Now you will notice that the following directories under the /webapps folder have been created:</p>
<ol>
<li>pentaho/</li>
<li>sw-style/</li>
<li>pentaho-portal-layout/</li>
<li>pentaho-style/</li>
</ol>
<p>Setting up Pentaho Solutions Navigate back to our work directory and move the &#8220;pentaho_solutions&#8221; folder to a directory of choice, as you can see at the start of this tutorial I have decided to use the /opt/pentaho directory. So to start off type this at the command prompt:</p>
<pre>   $terminal&gt; sudo mv pentaho-solutions/ /opt/pentaho/</pre>
<p>Next chmod 777 this directory (it will cause a lot of headaches if you don&#8217;t!)</p>
<pre>   $terminal&gt; sudo chmod 777 -R /opt/pentaho/pentaho-solutions</pre>
<p><strong>Configurations</strong></p>
<p>We are so close! Now we need to tweak a couple configuration settings.</p>
<p><strong>Pentaho configuration</strong></p>
<p>We will need to make sure that Pentaho points to right directory when loading up pentaho-solutions, to do this, navigate to the WEB_INF/ directory under your opt/apache-tomcat-5.5.26/webapps/pentaho/ location.</p>
<pre>   $terminal&gt; cd /opt/apache-tomcat-5.5.26/webapps/pentaho/WEB_INF</pre>
<p>Then open up the web.xml file for editing</p>
<pre>   $terminal&gt; sudo vi web.xml</pre>
<p>Find the following passages and make the changes to the bold areas Change this to the directory where you have uncompressed the pentaho-solutions.zip, in this example it is /opt/pentaho/pentaho-solutions</p>
<pre>   &lt;context-param&gt;
   &lt;param-name&gt;solution-path&lt;/param-name&gt;
   &lt;param-value&gt;<strong>/opt/pentaho/pentaho-solutions</strong>&lt;/param-value&gt;
   &lt;/context-param&gt;</pre>
<p>If you are accessing your Pentaho installation remotely or if it is installed on a web server change the &#8220;localhost&#8221; to your server&#8217;s ip if not just leave it as &#8220;localhost&#8221;.</p>
<pre>   &lt;context-param&gt;
   &lt;param-name&gt;base-url&lt;/param-name&gt;
   &lt;param-value&gt;<strong><a class="external free" title="http://localhost:8080/pentaho/" rel="nofollow" href="http://localhost:8080/pentaho/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://localhost:8080/pentaho/');">http://localhost:8080/pentaho/</a></strong>&lt;/param-value&gt;
   &lt;/context-param&gt;</pre>
<p><strong>Pentaho data sources configuration</strong></p>
<p>The first one is to edit the data sources so they point our locally hosted mysql database, navigate to the /conf/ directory under your tomcat directory:</p>
<pre>   $terminal&gt; cd /opt/apache-tomcat-5.5.26/conf/</pre>
<p>Then open up the server.xml file for editing</p>
<pre>   $terminal&gt; sudo vi server.xml</pre>
<p>We will need to paste the following piece of code before the &lt;/Host&gt; tags (found at the bottom). But before pasting make sure you change the following:</p>
<ol>
<li>Any references to &#8220;myserver&#8221; to your mysql&#8217;s ip or just to &#8220;localhost&#8221;</li>
<li>Replace any instances of username=&#8221;pentaho_user&#8221; password=&#8221;password&#8221; to your databases username i.e. root and password for that user.</li>
</ol>
<pre> &lt;Context path="/pentaho" docbase="webapps/pentaho/"&gt;
 &lt;Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/&gt;
 &lt;Resource name="jdbc/Hibernate" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="hibuser" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/hibernate" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/SampleData" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/Quartz" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/quartz" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/Shark" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/shark" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/SampleDataAdmin" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/solution1" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/solution2" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/solution3" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/solution4" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/solution5" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/datasource1" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/datasource2" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/datasource3" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/datasource4" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
 &lt;Resource name="jdbc/datasource5" auth="Container" type="javax.sql.DataSource" maxActive="20"
   maxIdle="5" maxWait="10000" <strong>username="pentaho_user" password="password"</strong> validationQuery="Select 1"
   factory="org.apache.commons.dbcp.BasicDataSourceFactory" driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://<strong>myserver</strong>/sampledata" testOnBorrow="true" testWhileIdle="true" timeBetweenEvictionRunsMillis="10000"
   maxEvictableIdleTimeMillis="60000"/&gt;
  &lt;/Context&gt;</pre>
<p>The last data source to edit is the hibernate configuration, so navigate to the directory where the hibernate configuration file is located:</p>
<pre>   $terminal&gt; cd /opt/apache-tomcat-5.5.26/webapps/pentaho/WEB-INF/classes/</pre>
<p>Then open up the hibernate.cfg.xml file for editing</p>
<pre>   $terminal&gt; sudo vi hibernate.cfg.xml</pre>
<p>Find the following areas in the file and edit them (seen in bold below):</p>
<ol>
<li>Any references to &#8220;myserver&#8221; to your mysql&#8217;s ip or just to &#8220;localhost&#8221;</li>
<li>Change hibuser to your MySql username i.e. root</li>
<li>Change password to your MySql password</li>
</ol>
<pre>   &lt;property name="connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
   &lt;property name="connection.url"&gt;jdbc:mysql://<strong>myserver</strong>:3306/hibernate&lt;/property&gt;
   &lt;property name="dialect"&gt;org.pentaho.repository.MySQL5InnoDBDialect&lt;/property&gt;
   &lt;property name="connection.username"&gt;<strong>hibuser</strong>&lt;/property&gt;
   &lt;property name="connection.password"&gt;<strong>password</strong>&lt;/property&gt;
   &lt;property name="connection.pool_size"&gt;10&lt;/property&gt;
   &lt;property name="show_sql"&gt;false&lt;/property&gt;
   &lt;property name="hibernate.jdbc.use_streams_for_binary"&gt;true&lt;/property&gt;</pre>
<p><a name="Step_4:_Running_Pentaho"></a></p>
<h2><span class="mw-headline">Step 4: Running Pentaho</span></h2>
<p>Finally we are here! Navigate to the bin directory under your Tomcat installation:</p>
<pre>   $terminal&gt; cd /opt/apache-tomcat-5.5.26/bin</pre>
<p>Then issue the ./startup.sh command</p>
<pre>   $terminal&gt; ./startup.sh</pre>
<pre>   Now, open up a web browser and type in:</pre>
<ol>
<li><a class="external free" title="http://localhost:8080/pentaho" rel="nofollow" href="http://localhost:8080/pentaho" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://localhost:8080/pentaho');">http://localhost:8080/pentaho</a> (if you are hosting locally)</li>
<li><a class="external free" title="http://yourip:8080/pentaho" rel="nofollow" href="http://yourip:8080/pentaho" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://yourip:8080/pentaho');">http://yourip:8080/pentaho</a> (if you are hosting remotely)</li>
</ol>
<p>You should now have a working installation of Pentaho deployed with Tomcat on a MySql database!</p>
<p><a name="Finishing_Notes"></a></p>
<h2><span class="mw-headline">Finishing Notes</span></h2>
<p>I would like to thank bugg_tb for his contribution to the inital version of this wiki. If you are experiencing maxpermsize errors run the following commands or put them in your ./profile ./bashrc files:</p>
<pre>JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx512m -XX:PermSize=32m -XX:MaxPermSize=128m -Xss2m"</pre>
<pre>JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"</pre>
<p>Don&#8217;t forget to sudo!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/09/how-to-install-pentaho-on-ubuntu-hardy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Building a Pivot Table on any flat Text file</title>
		<link>http://www.jumbabox.com/2008/08/building-a-pivot-table-on-any-flat-text-file/</link>
		<comments>http://www.jumbabox.com/2008/08/building-a-pivot-table-on-any-flat-text-file/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 23:16:17 +0000</pubDate>
		<dc:creator>schone</dc:creator>
		
		<category><![CDATA[Excel 2003]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Tips]]></category>

		<category><![CDATA[pivot table]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=779</guid>
		<description><![CDATA[Pivot Tables are a great tool for manipulating your data but when it comes to choosing which data source you want to manipulate the list is almost endless, especially with any flat text file, and yes, WITHOUT VBA! Here is a cheat sheet to get you started!

After clicking on the PivotTable and PivotChart Report&#8230; option [...]]]></description>
			<content:encoded><![CDATA[<p>Pivot Tables are a great tool for manipulating your data but when it comes to choosing which data source you want to manipulate the list is almost endless, especially with any flat text file, and yes, <strong>WITHOUT VBA! </strong>Here is a cheat sheet to get you started!</p>
<p><span id="more-779"></span></p>
<p>After clicking on the <strong>PivotTable and PivotChart Report&#8230;</strong> option the <strong>first step</strong> of the wizard will ask you <em>where is the data you want to analyze</em>, make sure you click the <strong>External Data Source</strong> radio button.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/08/externaldatasrc.png" ><img class="size-full wp-image-780" title="externaldatasrc" src="http://www.jumbabox.com/wp-content/uploads/2008/08/externaldatasrc.png" alt="" width="309" height="93" /></a></p>
<p>For the second step, click on the <strong>Get Data&#8230;</strong> button.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/08/getdata.png" ><img class="alignnone size-full wp-image-781" title="getdata" src="http://www.jumbabox.com/wp-content/uploads/2008/08/getdata.png" alt="" width="376" height="180" /></a></p>
<p>From the <strong>Choose Data Source</strong> dialog box, double click on the <strong>&lt;New Data Source&gt;</strong> option.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/08/chsdatasrouce.png" ><img class="alignnone size-full wp-image-782" title="chsdatasrouce" src="http://www.jumbabox.com/wp-content/uploads/2008/08/chsdatasrouce.png" alt="" width="458" height="230" /></a></p>
<p>A <strong>Create New Data Source</strong> dialog box will  , type in a name for your New Data Source (in this example I have named mine, sample_data_source), the driver drop down list will now be active. The option we need is the <strong>Microsoft Text Driver (*.txt, *.csv)</strong>,<strong> </strong>select this option.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/08/done.png" ><img class="alignnone size-full wp-image-783" title="done" src="http://www.jumbabox.com/wp-content/uploads/2008/08/done.png" alt="" width="381" height="292" /></a></p>
<p>For the third option we need to specify the directory where the .txt or .csv file is located, click on the <strong>Connect</strong> button, then click on the <strong>Select Directory </strong>button and from the file browser navigate and select the directory which contains your text files.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/08/founddir.png" ><img class="alignnone size-full wp-image-784" title="founddir" src="http://www.jumbabox.com/wp-content/uploads/2008/08/founddir.png" alt="" width="500" height="278" /></a></p>
<p>Now the directory should be visible under the <strong>Create New Data Source</strong> dialog box.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/08/visible.png" ><img class="alignnone size-full wp-image-785" title="visible" src="http://www.jumbabox.com/wp-content/uploads/2008/08/visible.png" alt="" width="381" height="292" /></a></p>
<p>The last step is to select a default table, I know it says it is optional but I recommend it&#8217;s best to do this now so you don&#8217;t encounter problems down the line. The drop down box should have all the .txt and .csv files listed under the directory we selected previously.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/08/listoftext.png" ><img class="alignnone size-full wp-image-786" title="listoftext" src="http://www.jumbabox.com/wp-content/uploads/2008/08/listoftext.png" alt="" width="381" height="313" /></a></p>
<p>Select the text file you want to base your Pivot Table on and click the <strong>OK</strong> button. Now you should be able to see under the <strong>Sample Data Source</strong> menu the data source we just created, select it and click on the <strong>OK</strong> button.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/08/sampledatasource.png" ><img class="alignnone size-full wp-image-787" title="sampledatasource" src="http://www.jumbabox.com/wp-content/uploads/2008/08/sampledatasource.png" alt="" width="458" height="230" /></a></p>
<p>Now you will be take through all the standard steps that follow setting up a Pivot Table on an External Data Source which I have gone through in detail for <a href="http://www.jumbabox.com/tag/pivot-table/"  target="_blank">these tutorials</a>.</p>
<p>That&#8217;s how you create a Pivot Table on a flat text file!</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/08/building-a-pivot-table-on-any-flat-text-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Changing WeBrick Server Root</title>
		<link>http://www.jumbabox.com/2008/07/changing-webrick-server-root/</link>
		<comments>http://www.jumbabox.com/2008/07/changing-webrick-server-root/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 00:25:18 +0000</pubDate>
		<dc:creator>Andrew Cetinick</dc:creator>
		
		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[WeBrick]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=778</guid>
		<description><![CDATA[Recently I needed to change my WeBrick&#8217;s application root from /public to something else.  If you need to have it running under a different directory, all of your routing to public stylesheets, images, etc. will have errors.

In your Rails directory open the file /vendor/rails/railties/lib/commands/servers/webrick.rb (or where you have installed Rails):

...
OPTIONS = &#123;
  :port  [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to change my WeBrick&#8217;s application root from /public to something else.  If you need to have it running under a different directory, all of your routing to public stylesheets, images, etc. will have errors.</p>
<p><span id="more-778"></span></p>
<p>In your Rails directory open the file <strong>/vendor/rails/railties/lib/commands/servers/webrick.rb</strong> (or where you have installed Rails):</p>

<div class="wp_codebox"><table width="100%" ><tr id="p77814"><td class="code" id="p778code14"><pre class="ruby ruby" style="font-family:monospace;">...
<span style="color:#9900CC;">OPTIONS</span> = <span style="color:#006600; font-weight:bold;">&#123;</span>
  <span style="color:#ff3333; font-weight:bold;">:port</span>         <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">3000</span>,
  <span style="color:#ff3333; font-weight:bold;">:ip</span>           <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;0.0.0.0&quot;</span>,
  <span style="color:#ff3333; font-weight:bold;">:environment</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ENV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">'RAILS_ENV'</span><span style="color:#006600; font-weight:bold;">&#93;</span> || <span style="color:#996600;">&quot;development&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">dup</span>,
  <span style="color:#ff3333; font-weight:bold;">:server_root</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">expand_path</span><span style="color:#006600; font-weight:bold;">&#40;</span>RAILS_ROOT <span style="color:#006600; font-weight:bold;">+</span> <span style="color:#996600;">&quot;/public_html/&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,
  <span style="color:#ff3333; font-weight:bold;">:server_type</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#6666ff; font-weight:bold;">WEBrick::SimpleServer</span>,
  <span style="color:#ff3333; font-weight:bold;">:charset</span>      <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;UTF-8&quot;</span>,
  <span style="color:#ff3333; font-weight:bold;">:mime_types</span>   <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#6666ff; font-weight:bold;">WEBrick::HTTPUtils::DefaultMimeTypes</span>,
  <span style="color:#ff3333; font-weight:bold;">:debugger</span>     <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span>
<span style="color:#006600; font-weight:bold;">&#125;</span>
...</pre></td></tr></table></div>

<p>You may change the settings for WeBrick including the port, environment and server root to use.  Very handy stuff!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/07/changing-webrick-server-root/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using the Query Builder in Oracle&#8217;s SQL Developer</title>
		<link>http://www.jumbabox.com/2008/07/using-the-query-builder-in-oracles-sql-developer/</link>
		<comments>http://www.jumbabox.com/2008/07/using-the-query-builder-in-oracles-sql-developer/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 05:17:32 +0000</pubDate>
		<dc:creator>schone</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Queries]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=730</guid>
		<description><![CDATA[SQL Developer is a free tool from Oracle which is great for database querying and extraction and the best thing is that it doesn&#8217;t just support Oracle it also supports Access, MySQL and SQL Server. Another hidden feature for all the novice SQL programmers is the Query Builder (similar to Access and SQL Server), so [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.oracle.com/technology/software/products/sql/index.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.oracle.com/technology/software/products/sql/index.html');">SQL Developer</a></strong> is a <em><span style="color: #000000;">free</span></em> tool from Oracle which is great for database querying and extraction and the best thing is that it doesn&#8217;t just support Oracle it also supports Access, MySQL and SQL Server. Another hidden feature for all the novice SQL programmers is the <strong>Query Builder</strong> (similar to Access and SQL Server), so I thought I would do a quick post to go over the features of <strong>Query Builder</strong>.</p>
<p><span id="more-730"></span></p>
<h2>Where is it?</h2>
<p>Firstly Open up a Blank SQL Worksheet, to do this click on the <a href="http://www.jumbabox.com/wp-content/uploads/2008/07/sqlicon.png" ><img class="alignnone size-full wp-image-731" title="sqlicon" src="http://www.jumbabox.com/wp-content/uploads/2008/07/sqlicon.png" alt="" width="25" height="23" /></a> icon found on the toolbar at the top, then select a connection you would like to build your query on. In the example below I&#8217;m going to build my query on a connection called <strong>EARTH_ORCL</strong>.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/sqlworksheet.png" ><img class="alignnone size-full wp-image-732" title="sqlworksheet" src="http://www.jumbabox.com/wp-content/uploads/2008/07/sqlworksheet.png" alt="" width="214" height="100" /></a></p>
<p>You should now see a new tab appear which will be labelled the name of your connection.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/sqltab.png" ><img class="alignnone size-full wp-image-733" title="sqltab" src="http://www.jumbabox.com/wp-content/uploads/2008/07/sqltab.png" alt="" width="283" height="95" /></a></p>
<p>Next right click in the area where you would type your SQL query and select the <strong>Query </strong>option.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/querybuilder.png" ><img class="alignnone size-full wp-image-734" title="querybuilder" src="http://www.jumbabox.com/wp-content/uploads/2008/07/querybuilder.png" alt="" width="216" height="409" /></a></p>
<p>That&#8217;s it! You should now be able to see the Query Builder window.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/querybuilderdone.png" ><img class="alignnone size-full wp-image-735" title="querybuilderdone" src="http://www.jumbabox.com/wp-content/uploads/2008/07/querybuilderdone.png" alt="" width="500" height="363" /></a></p>
<h2>Layout</h2>
<p>Below is an overlay of the layout of the query builder you might need to click on the image to open up a larger version.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/layout.png" ><img class="alignnone size-full wp-image-736" title="layout" src="http://www.jumbabox.com/wp-content/uploads/2008/07/layout.png" alt="" width="500" height="321" /></a></p>
<h2>Building a Query</h2>
<p>The query can be built in two different sections:</p>
<ul>
<li><strong>SELECT Columns</strong> Tab : Where the SELECT part of your statement is built</li>
<li><strong>Create Where Clause </strong>Tab : Where the WHERE part of your statement is built</li>
</ul>
<p>Lets start with the first tab.</p>
<h3><strong>Select Columns</strong></h3>
<p>You can do more than just create the SELECT part of your SQL statement, in this area you are also able to perform joins! So lets get started&#8230;</p>
<p><strong>Drag and drop</strong> a table from the left hand side pane to the right hand side area, the table should now appear in the right hand side area along with the columns available.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/step1.png" ><img class="alignnone size-full wp-image-737" title="step1" src="http://www.jumbabox.com/wp-content/uploads/2008/07/step1.png" alt="" width="460" height="216" /></a></p>
<p>To select which colums you want in your <strong>SELECT</strong> statement click on the check boxes next to the columns <strong>or</strong> click on the check box available at the top to select all columns (or *). In my example I have only chosen four columns.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/steptwo.png" ><img class="alignnone size-full wp-image-738" title="steptwo" src="http://www.jumbabox.com/wp-content/uploads/2008/07/steptwo.png" alt="" width="458" height="212" /></a></p>
<p>Now, I need to join this table with another table, to do this <strong>drag and drop</strong> another table onto the same area. Then drag and drop a column onto the other column which you would like to perform the join on.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/performjoin.png" ><img class="alignnone size-full wp-image-740" title="performjoin" src="http://www.jumbabox.com/wp-content/uploads/2008/07/performjoin.png" alt="" width="474" height="367" /></a></p>
<p>Once you have dropped the link, you should now see a join has been completed, I&#8217;m going to select only one field from the second table.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/18.png" ><img class="alignnone size-full wp-image-767" title="18" src="http://www.jumbabox.com/wp-content/uploads/2008/07/18.png" alt="" width="486" height="370" /></a></p>
<blockquote><p>You can change the properties of the join by right clicking on it and selecting one of the options available.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/joinprop.png" ><img class="alignnone size-full wp-image-742" title="joinprop" src="http://www.jumbabox.com/wp-content/uploads/2008/07/joinprop.png" alt="" width="124" height="180" /></a></p></blockquote>
<p>Now we should be able to see what the <strong>SELECT</strong> part of our SQL statement looks like, click on the <strong>Show SQL</strong> tab. It doesn&#8217;t look pretty but it will do for now, lets move onto the <strong>WHERE</strong> statement!</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/sqlselect.png" ><img class="alignnone size-full wp-image-747" title="sqlselect" src="http://www.jumbabox.com/wp-content/uploads/2008/07/sqlselect.png" alt="" width="500" height="107" /></a></p>
<h3>Create Where Clause</h3>
<p>Click on the<strong> Create Where Clause</strong> and you should notice a blank <strong>WHERE </strong>clause already setup, there are three parts to this blank <strong>WHERE </strong>clause:</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/whereoverview.png" ><img class="alignnone size-full wp-image-748" title="whereoverview" src="http://www.jumbabox.com/wp-content/uploads/2008/07/whereoverview.png" alt="" width="407" height="49" /></a></p>
<p>In my example I will first select the P_CODE column from the AR_POSTCODE_GEO table.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/where11.png" ><img class="alignnone size-full wp-image-750" title="where1" src="http://www.jumbabox.com/wp-content/uploads/2008/07/where11.png" alt="" width="480" height="166" /></a></p>
<p>Then from the operator drop down box I will select contains.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/whereis2.png" ><img class="alignnone size-full wp-image-751" title="where2" src="http://www.jumbabox.com/wp-content/uploads/2008/07/whereis2.png" alt="" width="480" height="166" /></a></p>
<p>To finish of this <strong>WHERE </strong>clause I will enter my condition.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/where3.png" ><img class="alignnone size-full wp-image-752" title="where3" src="http://www.jumbabox.com/wp-content/uploads/2008/07/where3.png" alt="" width="481" height="29" /></a></p>
<p>There you have it, I have just created a <strong>WHERE </strong>clause for my SQL statement, clicking on the <strong>Show SQL tab</strong> will represent what we have built so far:</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/sqlwithwhere.png" ><img class="alignnone size-full wp-image-753" title="sqlwithwhere" src="http://www.jumbabox.com/wp-content/uploads/2008/07/sqlwithwhere.png" alt="" width="500" height="96" /></a></p>
<h4>Adding more Conditions</h4>
<p>You can add more conditions by right clicking in the Create Where Clause tab&#8217;s area and choosing the Add Condition option.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/addcondition.png" ><img class="alignnone size-full wp-image-754" title="addcondition" src="http://www.jumbabox.com/wp-content/uploads/2008/07/addcondition.png" alt="" width="140" height="55" /></a></p>
<p>After adding a second condition, you will notice that a conditional operator drop down box will appear on the left hand side.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/andwhere.png" ><img class="alignnone size-full wp-image-755" title="andwhere" src="http://www.jumbabox.com/wp-content/uploads/2008/07/andwhere.png" alt="" width="499" height="55" /></a></p>
<p>There are four different conidtional options available :</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/listofopcond.png" ><img class="alignnone size-full wp-image-756" title="listofopcond" src="http://www.jumbabox.com/wp-content/uploads/2008/07/listofopcond.png" alt="" width="120" height="114" /></a></p>
<h4>Nesting Conditions</h4>
<p>The great feature of the WHERE clause is that you can nest them, right click on the operational condition you have set up and a menu will pop up asking to insert a condition.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/submenu.png" ><img class="alignnone size-full wp-image-757" title="submenu" src="http://www.jumbabox.com/wp-content/uploads/2008/07/submenu.png" alt="" width="143" height="191" /></a></p>
<p>As you can see, I have inserted an OR condition and it has nested the AND statement.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/insertandnesterd.png" ><img class="alignnone size-full wp-image-758" title="insertandnesterd" src="http://www.jumbabox.com/wp-content/uploads/2008/07/insertandnesterd.png" alt="" width="500" height="105" /></a></p>
<p>For this example I&#8217;m going to keep it simple and use only one WHERE condition.</p>
<h3><strong>Viewing Results</strong></h3>
<p>To see what the final output of the SQL statement you have built is, click on the <strong>View Results</strong> tab and then click on the <strong>Green</strong> play button.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/28.png" ><img class="alignnone size-full wp-image-769" title="28" src="http://www.jumbabox.com/wp-content/uploads/2008/07/28.png" alt="" width="393" height="84" /></a></p>
<p>The query which was just built should display as a data set :</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/36.png" ><img class="alignnone size-full wp-image-770" title="36" src="http://www.jumbabox.com/wp-content/uploads/2008/07/36.png" alt="" width="387" height="278" /></a></p>
<blockquote><p>You can also set the query to refresh automatically by using the Refresh: drop down box :</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/refresh.png" ><img class="alignnone size-full wp-image-771" title="refresh" src="http://www.jumbabox.com/wp-content/uploads/2008/07/refresh.png" alt="" width="131" height="163" /></a></p></blockquote>
<p>After you happy with the query you have built and the resulting data set which is produced, click on the <strong>Apply</strong> button, this will bring back to the SQL worksheet for the database we were working on and have the SQL statement laid out!</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/sql.png" ><img class="alignnone size-full wp-image-772" title="sql" src="http://www.jumbabox.com/wp-content/uploads/2008/07/sql.png" alt="" width="500" height="151" /></a></p>
<p>Looks ugly? To format it hit <strong>CTRL + B</strong> and it should be formatted perfectly now.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/nicestatement.png" ><img class="alignnone size-full wp-image-773" title="nicestatement" src="http://www.jumbabox.com/wp-content/uploads/2008/07/nicestatement.png" alt="" width="500" height="170" /></a></p>
<blockquote><p><span style="color: #ff0000;"><strong>IMPORTANT NOTE!</strong><em> </em></span><br />
Once you create a query using the query builder you can not use query builder to edit it, you will have to start from the beginning, so make sure you data set is correct before clicking on the Apply button!</p></blockquote>
<p>So that&#8217;s how you can use the query builder within Oracle&#8217;s SQL Developer, did I forget to mention that it&#8217;s free? <img src='http://www.jumbabox.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.oracle.com/technology/software/products/sql/index.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.oracle.com/technology/software/products/sql/index.html');">Click here to download SQL Developer</a></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/07/using-the-query-builder-in-oracles-sql-developer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Improve video playback over a wireless connection with VLC</title>
		<link>http://www.jumbabox.com/2008/07/improve-video-playback-over-a-wireless-connection-with-vlc/</link>
		<comments>http://www.jumbabox.com/2008/07/improve-video-playback-over-a-wireless-connection-with-vlc/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 14:17:44 +0000</pubDate>
		<dc:creator>schone</dc:creator>
		
		<category><![CDATA[Tips]]></category>

		<category><![CDATA[Lifestyle]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=763</guid>
		<description><![CDATA[So I just picked up a new laptop, the Dell Studio 15&#8243; which looks and performs great but as I&#8217;m in a brick walled apartment I had issues with streaming video over a wireless connection from my Linux file server. The symptoms were stuttering, hitching and skipping but with VLC I was able to fix [...]]]></description>
			<content:encoded><![CDATA[<p>So I just picked up a new laptop, the Dell Studio 15&#8243; which looks and performs great but as I&#8217;m in a brick walled apartment I had issues with streaming video over a wireless connection from my Linux file server. The symptoms were stuttering, hitching and skipping but with VLC I was able to fix this issue!</p>
<p><span id="more-763"></span></p>
<p>Firstly open up VLC and the click on <strong>Settings &gt; Preferences</strong>.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/17.png" ><img class="alignnone size-full wp-image-764" title="1" src="http://www.jumbabox.com/wp-content/uploads/2008/07/17.png" alt="" width="378" height="173" /></a></p>
<p>Now follow these steps in the <strong>Preferences</strong> dialog box:</p>
<ol>
<li>Expand the <strong>Input / Codecs </strong>option</li>
<li>Expand the <strong>Access Modules </strong>option</li>
<li>Click on the <strong>File</strong> option</li>
<li>Check the <strong>Advanced Options </strong>check box in the bottom right hand corner</li>
</ol>
<p>Your <strong>Preferences</strong> dialog box should look now look like this:</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/27.png" ><img class="alignnone size-full wp-image-766" title="2" src="http://www.jumbabox.com/wp-content/uploads/2008/07/27.png" alt="" width="500" height="321" /></a></p>
<p>You will see that the <strong>Caching value in ms</strong> is set to <em>300 ms</em>.<strong> </strong>That means that VLC only caches (pre-loads) 300ms or 0.3 seconds of video playback which is not a lot of time especially if you are trying to stream movie length DivX rips. Change this value to a more reasonable amount, I set mine to 3000 ms (3 seconds) and click on the <strong>Save</strong> button.</p>
<p>Now try and play your video, you should have seamless play without any hitches, if you still do try increasing the <strong>Caching value in ms</strong> value, the only cons of increasing this value are seeing increases in loads times when:</p>
<ul>
<li>Loading the file</li>
<li>Playing from a Pause state</li>
<li>Skipping and searching through the video</li>
</ul>
<p>Another way around this problem is to just use an Ethernet cable <img src='http://www.jumbabox.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/07/improve-video-playback-over-a-wireless-connection-with-vlc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Resources for all Star Trek Fans</title>
		<link>http://www.jumbabox.com/2008/07/resources-for-all-star-trek-fans/</link>
		<comments>http://www.jumbabox.com/2008/07/resources-for-all-star-trek-fans/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 05:43:29 +0000</pubDate>
		<dc:creator>schone</dc:creator>
		
		<category><![CDATA[Science Fiction]]></category>

		<category><![CDATA[Star Trek]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=760</guid>
		<description><![CDATA[You would think after the announcement of a new Star Trek movie and talks of sequels Paramount would give StarTrek.com some resources to keep chuggin along? Well after Paramount decided it would dismiss the great web masters of StarTrek.com we have seen a once great source of information neglected and left to rot.
I thought it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/broken.png" ><img class="alignleft size-full wp-image-761" title="broken" src="http://www.jumbabox.com/wp-content/uploads/2008/07/broken.png" alt="" width="113" height="99" /></a>You would think after the announcement of a new Star Trek movie and talks of sequels Paramount would give StarTrek.com <em>some</em> resources to keep chuggin along? Well after Paramount decided it would dismiss the great web masters of StarTrek.com we have seen a once great source of information neglected and left to rot.</p>
<p>I thought it would be good to go over some resources for all the latest and past Trek news that I use and hopefully have you also remove StarTrek.com from your bookmarks.</p>
<p><span id="more-760"></span></p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/rubbish.png" ><img class="aligncenter size-full wp-image-762" title="rubbish" src="http://www.jumbabox.com/wp-content/uploads/2008/07/rubbish.png" alt="" width="500" height="357" /></a></p>
<p style="text-align: center;"><em>Time to log onto a Star Trek forum that actually works&#8230;</em></p>
<ul>
<li><a href="http://www.trekmovie.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.trekmovie.com/');">TrekMovie.com</a> - For all the latest news on the new Trek movie and Trek related releases</li>
<li><a href="http://memory-alpha.org/en/wiki/Main_Page" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://memory-alpha.org/en/wiki/Main_Page');">MemoryAlpha.org</a> - A great updated Wiki and also has a very active community forum</li>
<li><a href="http://www.gateworld.net" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.gateworld.net');">Gateworld.net</a> - Have a great Star Trek and MASSIVE Stargate community</li>
<li><a href="http://www.trektoday.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.trektoday.com/');">TrekToday.com</a> - A Trek news site which is just a large RSS feed</li>
</ul>
<p>Hopefully these links can quench your thirst for up to date Trek news.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/07/resources-for-all-star-trek-fans/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Free software for every Analyst</title>
		<link>http://www.jumbabox.com/2008/07/free-tools-for-every-data-reporting-and-business-analyst/</link>
		<comments>http://www.jumbabox.com/2008/07/free-tools-for-every-data-reporting-and-business-analyst/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 01:01:06 +0000</pubDate>
		<dc:creator>schone</dc:creator>
		
		<category><![CDATA[Lifestyle]]></category>

		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=726</guid>
		<description><![CDATA[After working in the &#8216;analyst&#8217; field for a while now I have come accross a lot of tools which can be helpful to squeezing that extra piece of data out or creating a whiz bang report. Here is a list of free tools which should help you along the way!

Here is a summarized list of [...]]]></description>
			<content:encoded><![CDATA[<p>After working in the &#8216;analyst&#8217; field for a while now I have come accross a lot of tools which can be helpful to squeezing that extra piece of data out or creating a whiz bang report. Here is a list of free tools which should help you along the way!</p>
<p><span id="more-726"></span></p>
<p>Here is a summarized list of the products below:</p>
<ul>
<li><strong>Screen Capturing</strong>
<ul>
<li>MWSnap : <a href="http://www.mirekw.com/winfreeware/mwsnap.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.mirekw.com/winfreeware/mwsnap.html');" target="_blank">Product Homepage</a></li>
</ul>
</li>
<li><strong>Image Editing</strong>
<ul>
<li>Paint.NET : <a href="http://www.getpaint.net/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.getpaint.net/');">Product Homepage</a></li>
</ul>
</li>
<li><strong>Querying and Data Extraction</strong>
<ul>
<li>SQL Developer (Oracle) : <a href="http://www.oracle.com/technology/products/database/sql_developer/index.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.oracle.com/technology/products/database/sql_developer/index.html');">Product Homepage</a></li>
</ul>
</li>
<li><strong>Text Editor</strong>
<ul>
<li>PSPad Editor : <a href="http://www.google.com.au/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.pspad.com%2F&amp;ei=54V9SICDE4KksAPd85zUDw&amp;usg=AFQjCNGhVuwT9ekBkitq2SUxuD2mEMiVBA&amp;sig2=WllLpk2PRPUyaPAMEZmNzQ" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.google.com.au/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.pspad.com%2F&amp;ei=54V9SICDE4KksAPd85zUDw&amp;usg=AFQjCNGhVuwT9ekBkitq2SUxuD2mEMiVBA&amp;sig2=WllLpk2PRPUyaPAMEZmNzQ');">Product Hompage</a></li>
</ul>
</li>
<li><strong>Statistical Related</strong>
<ul>
<li>R Project : <a href="http://www.r-project.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.r-project.org/');">Product Hompage</a></li>
</ul>
</li>
</ul>
<h3>MWSnap</h3>
<p>Documentation and training documents can get tedious when you need to provide screen shots of examples.<strong> MWSnap</strong> is the best tool out there for all your screen capturing needs! With hot keys and drag and drop capture areas - this is definitely the holy grail of screen capturing tools.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/16.png" ><img class="aligncenter size-medium wp-image-727" title="1" src="http://www.jumbabox.com/wp-content/uploads/2008/07/16.png" alt="" width="300" height="236" /></a></p>
<p><strong>MWSnap&#8217;s</strong> last release was way back in 2002 but this works perfectly with XP (it isn&#8217;t 100% in Vista though).</p>
<ul>
<li><a href="http://www.mirekw.com/winfreeware/mwsnap.html" target="_blank">Product Homepage<br />
</a></li>
</ul>
<h3>Paint.NET</h3>
<p>An answer to a free Adobe Photoshop! When trying to create custom images or touch up any images <strong>Paint.NET</strong> is a great free application, it contains lots of filters and plug ins and is supported on XP and Vista!</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/25.png" ><img class="aligncenter size-medium wp-image-728" title="25" src="http://www.jumbabox.com/wp-content/uploads/2008/07/25.png" alt="" width="300" height="225" /></a></p>
<ul>
<li><a href="http://www.getpaint.net/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.getpaint.net/');">Product Homepage</a></li>
</ul>
<h3>SQL Developer</h3>
<p>A product from Oracle, <strong>SQL Developer</strong> can support <strong>Access, MySQL, SQL Server </strong>with Querying and Data Extraction. The great thing about this tool is that it also includes a Query Builder option for all the novice SQL programmers. <strong>SQL Developer</strong> can be installed on XP, Vista, OS X and Linux.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/35.png" ><img class="aligncenter size-medium wp-image-729" title="3" src="http://www.jumbabox.com/wp-content/uploads/2008/07/35.png" alt="" width="300" height="228" /></a></p>
<ul>
<li><a href="http://www.oracle.com/technology/products/database/sql_developer/index.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.oracle.com/technology/products/database/sql_developer/index.html');">Product Homepage</a></li>
</ul>
<h3>PSPad</h3>
<p><strong>PSPad</strong> supports multiple coding languages and can edit anything and everything, it also has a great inbuilt FTP client. This is great for opening those large text and CSV data dumps! Runs on both XP and Vista.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/62.png" ><img class="aligncenter size-medium wp-image-743" title="62" src="http://www.jumbabox.com/wp-content/uploads/2008/07/62.png" alt="" width="300" height="240" /></a></p>
<ul>
<li><a href="http://www.google.com.au/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.pspad.com%2F&amp;ei=54V9SICDE4KksAPd85zUDw&amp;usg=AFQjCNGhVuwT9ekBkitq2SUxuD2mEMiVBA&amp;sig2=WllLpk2PRPUyaPAMEZmNzQ" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.google.com.au/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.pspad.com%2F&amp;ei=54V9SICDE4KksAPd85zUDw&amp;usg=AFQjCNGhVuwT9ekBkitq2SUxuD2mEMiVBA&amp;sig2=WllLpk2PRPUyaPAMEZmNzQ');">Product Hompage</a></li>
</ul>
<h3>R Project</h3>
<p>For all your statistical minded folks this is a great open source tool for performing basic to advanced statistical analysis and supports numerous community created plug ins. I have now replaced SPSS with this tool! Runs on Linux, OS X, XP and Vista.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/r.png" ><img class="alignnone size-medium wp-image-745" title="r" src="http://www.jumbabox.com/wp-content/uploads/2008/07/r.png" alt="" width="300" height="200" /></a></p>
<ul>
<li><a href="http://www.r-project.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.r-project.org/');">Product Hompage</a></li>
</ul>
<p>If you have any other free software that helps you as an analyst comment them!</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/07/free-tools-for-every-data-reporting-and-business-analyst/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Debugging Rails with Netbeans</title>
		<link>http://www.jumbabox.com/2008/07/debugging-rails-with-netbeans/</link>
		<comments>http://www.jumbabox.com/2008/07/debugging-rails-with-netbeans/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 06:50:54 +0000</pubDate>
		<dc:creator>Andrew Cetinick</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[Debugging]]></category>

		<category><![CDATA[Netbeans]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=719</guid>
		<description><![CDATA[Here&#8217;s how you can setup debugging with your Ruby environment using Netbeans 6.1.  Netbeans 6.1 comes with a debugger installed, but only with JRuby, this is how to set it up to work with Ruby.





Due to a bug with Netbeans 6.1 you must have the following versions of gems installed:

ruby-debug-ide 0.1.10
ruby-debug-base 0.10.0

This bug will [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-720" title="picture-21" src="http://www.jumbabox.com/wp-content/uploads/2008/07/picture-21.png" alt="" width="203" height="161" />Here&#8217;s how you can setup debugging with your Ruby environment using Netbeans 6.1.  Netbeans 6.1 comes with a debugger installed, but only with JRuby, this is how to set it up to work with Ruby.</p>
<p>
<p>
<p>
<p>
<span id="more-719"></span></p>
<blockquote><p>Due to a <a href="http://www.netbeans.org/issues/show_bug.cgi?id=137641" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.netbeans.org/issues/show_bug.cgi?id=137641');">bug</a> with Netbeans 6.1 you must have the following versions of gems installed:</p>
<ul>
<li>ruby-debug-ide 0.1.10</li>
<li>ruby-debug-base 0.10.0</li>
</ul>
<p>This bug will be resolved in Netbeans 6.5, to allow support for newer versions of the gems.</p></blockquote>
<h2>Install the required gems</h2>
<p>Install the two gems via gem command:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p71917"><td class="code" id="p719code17"><pre class="bash bash" style="font-family:monospace;">gem <span style="color: #c20cb9; font-weight: bold;">install</span> ruby-debug-ide <span style="color: #660033;">-v</span> 0.1.10
gem <span style="color: #c20cb9; font-weight: bold;">install</span> ruby-debug-base <span style="color: #660033;">-v</span> 0.10.0</pre></td></tr></table></div>

<p>If you need to uninstall newer versions of the gems, you can uninstall by:</p>

<div class="wp_codebox"><table width="100%" ><tr id="p71918"><td class="code" id="p719code18"><pre class="bash bash" style="font-family:monospace;">gem uninstall ruby-debug-ide <span style="color: #660033;">-v</span> 0.2.0
gem uninstall ruby-debug-base <span style="color: #660033;">-v</span> 0.10.1</pre></td></tr></table></div>

<p>Once installed, when you open up Netbeans goto, <strong>Tools -&gt; Ruby Platforms </strong>in the menu and select click <strong>Autodetect Platforms</strong>.  Your screen should look similar to this: (Note: MacOSX setup)</p>
<p><img class="alignnone size-full wp-image-721" title="picture-11" src="http://www.jumbabox.com/wp-content/uploads/2008/07/picture-11.png" alt="" width="500" height="259" /></p>
<h2>Inserting a Break Point</h2>
<p><img class="alignleft size-full wp-image-722" title="picture-31" src="http://www.jumbabox.com/wp-content/uploads/2008/07/picture-31.png" alt="" width="194" height="107" />You can insert break points in your Ruby code and in your views.  You can simply add one by clicking the line number on the left side of the line of code you wish the debugger to stop.</p>
<p>
<p>
<p><h2>Debug Your File</h2>
<p>Simply right-click your code and select <strong>Debug &#8220;&lt;filename&gt;&#8221;</strong>.</p>
<p><img class="aligncenter size-full wp-image-723" title="picture-41" src="http://www.jumbabox.com/wp-content/uploads/2008/07/picture-41.png" alt="" width="362" height="324" /></p>
<p>Your default browser should attempt to load the page, and if you go back into Netbeans you can see information about the break point and the current local variables at the break point.</p>
<p style="text-align: center;"><img class="size-full wp-image-720 aligncenter" title="picture-21" src="http://www.jumbabox.com/wp-content/uploads/2008/07/picture-21.png" alt="" width="203" height="161" /></p>
<h2>Debug Toolbar</h2>
<p><img class="alignleft size-full wp-image-725" title="picture-51" src="http://www.jumbabox.com/wp-content/uploads/2008/07/picture-51.png" alt="" width="200" height="39" />You have access to your normal debug functions such as Step In/Out, Continue etc, via the Netbeans Debug toolbar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/07/debugging-rails-with-netbeans/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using the AND / OR operators in Excel</title>
		<link>http://www.jumbabox.com/2008/07/using-the-and-or-operators-in-excel/</link>
		<comments>http://www.jumbabox.com/2008/07/using-the-and-or-operators-in-excel/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 00:37:17 +0000</pubDate>
		<dc:creator>schone</dc:creator>
		
		<category><![CDATA[Excel 2003]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.jumbabox.com/?p=712</guid>
		<description><![CDATA[Coming from a SQL programming background you might find it difficult trying to adapt the AND / OR operators to your Excel formulas, so here is a method that I use to solve this problem.

The Formulas
To use the AND operator use the following format:
= IF( AND( logical_1, logical_2, ... ), TRUE, FALSE )
To use the [...]]]></description>
			<content:encoded><![CDATA[<p>Coming from a SQL programming background you might find it difficult trying to adapt the AND / OR operators to your Excel formulas, so here is a method that I use to solve this problem.</p>
<p><span id="more-712"></span></p>
<h3>The Formulas</h3>
<p>To use the AND operator use the following format:</p>
<pre>= IF( AND( logical_1, logical_2, ... ), TRUE, FALSE )</pre>
<p>To use the OR operator use the following format:</p>
<pre>= IF( OR( logical_1, logical_2, ... ), TRUE, FALSE )</pre>
<p>Simple huh? Lets put this to practice!</p>
<h3>Example #1 - Using AND</h3>
<p>I have the following data set which shows the amount of new and cancelled customers by Country.</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/15.png" ><img class="alignnone size-full wp-image-713" title="1" src="http://www.jumbabox.com/wp-content/uploads/2008/07/15.png" alt="" width="284" height="156" /></a></p>
<p>I will create a new column called Target and I want this column to follow these conditions:</p>
<ol>
<li>New customers has to be greater than 5<br />
<strong>AND</strong></li>
<li>Cancel customers has to be less than 2</li>
</ol>
<p>In my new column I enter the following formula :</p>
<pre>= IF( AND( B4 &gt; 5, C4 &lt; 2 ), "Pass Target", "Failed Target" )</pre>
<p>As a screen shot:</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/24.png" ><img class="alignnone size-full wp-image-714" title="2" src="http://www.jumbabox.com/wp-content/uploads/2008/07/24.png" alt="" width="500" height="125" /></a></p>
<p>After copying this formula down for the rest of the Target<strong> </strong>column:</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/33.png" ><img class="alignnone size-full wp-image-715" title="3" src="http://www.jumbabox.com/wp-content/uploads/2008/07/33.png" alt="" width="351" height="149" /></a></p>
<blockquote><p>In SQL terms the formula would look like this:</p>
<pre>SELECT * FROM table WHERE NEW &gt; 5 AND CANCEL &lt; 2</pre>
<p>You can also add as many conditions to the AND() formula.</p></blockquote>
<h3>Example #2 - Using OR</h3>
<p>We will use the same data set from above in this example and replace the AND operator with OR.</p>
<p>In the Target column I want the condition to be :</p>
<ol>
<li>New customers has to be greater than 5<br />
<strong>OR</strong></li>
<li>Cancel customers has to be less than 2</li>
</ol>
<p>In my new column I enter the following formula :</p>
<pre>= IF( OR( B4 &gt; 5, C4 &lt; 2 ), "Pass Target", "Failed Target" )</pre>
<p>As a screen shot:</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/42.png" ><img class="alignnone size-full wp-image-716" title="4" src="http://www.jumbabox.com/wp-content/uploads/2008/07/42.png" alt="" width="500" height="109" /></a></p>
<p>After copying this formula down for the rest of the Target<strong> </strong>column:</p>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/51.png" ><img class="alignnone size-full wp-image-717" title="51" src="http://www.jumbabox.com/wp-content/uploads/2008/07/51.png" alt="" width="354" height="150" /></a></p>
<blockquote><p>In SQL terms the formula would look like this:</p>
<pre>SELECT * FROM table WHERE NEW &gt; 5 OR CANCEL &lt; 2</pre>
<p>You can also add as many conditions to the OR() formula.</p></blockquote>
<p><a href="http://www.jumbabox.com/wp-content/uploads/2008/07/andorexample.xls">Download this example as an Excel Workbook<br />
</a></p>
<p>If you have any other ways of approaching this leave a comment!</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jumbabox.com/2008/07/using-the-and-or-operators-in-excel/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
