<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>HOrdine Development</title>
	<atom:link href="http://hordine.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hordine.wordpress.com</link>
	<description>General posts about Software Development</description>
	<lastBuildDate>Tue, 10 Jan 2012 20:11:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hordine.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/7a194bbe64ec005fc72aa91eb7628861?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>HOrdine Development</title>
		<link>http://hordine.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hordine.wordpress.com/osd.xml" title="HOrdine Development" />
	<atom:link rel='hub' href='http://hordine.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Runtime value in DataSets</title>
		<link>http://hordine.wordpress.com/2011/12/05/runtime-value-in-datasets/</link>
		<comments>http://hordine.wordpress.com/2011/12/05/runtime-value-in-datasets/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 14:22:00 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[DBUnit]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1479</guid>
		<description><![CDATA[In order to enter a value into a certain column as test data, DBUnit offers developers the option of creating a DataSet file. A simple dataSet file looks like this: &#160; In the above example, the value for the dateRegistered column is a variable that can set at test-time, in the following way:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1479&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In order to enter a value into a certain column as test data, DBUnit offers developers the option of creating a DataSet file.</p>
<p>A simple dataSet file looks like this:<br />
<pre class="brush: xml;">
&lt;!DOCTYPE dataset SYSTEM &quot;dataset.dtd&quot;&gt;
&lt;dataset&gt;
  &lt;table name=&quot;bankaccount&quot;&gt;
    &lt;column&gt;pkey&lt;/column&gt;
    &lt;column&gt;accountNumber&lt;/column&gt;
    &lt;column&gt;balance&lt;/column&gt;
    &lt;column&gt;bankCode&lt;/column&gt;
    &lt;column&gt;dateRegistered&lt;/column&gt;
    &lt;column&gt;statusKey&lt;/column&gt;

    &lt;row&gt;
      &lt;value&gt;1&lt;/value&gt;
      &lt;value&gt;1&lt;/value&gt;
      &lt;value&gt;1000&lt;/value&gt;
      &lt;value&gt;300&lt;/value&gt;
      &lt;value&gt;[registerDate]&lt;/value&gt;
      &lt;value&gt;10&lt;/value&gt;
    &lt;/row&gt;
  &lt;/table&gt;

&lt;/dataset&gt;
</pre><br />
&nbsp;<br />
In the above example, the value for the dateRegistered column is a variable that can set at test-time, in the following way:</p>
<p><pre class="brush: java;">
@Override
protected IDataSet getDataSet() throws Exception {
    XmlDataSet bankAccountDataSet = new XmlDataSet(
        this.getClass().getClassLoader().getResourceAsStream(
            &quot;datasets/bankAccount_dataset.xml&quot;));
    ReplacementDataSet rBankAccountDataSet = 
        new ReplacementDataSet(bankAccountDataSet);
    rBankAccountDataSet.addReplacementObject(
        &quot;[registerDate]&quot;, new Timestamp(new Date().getTime()));
    return new CompositeDataSet(new IDataSet[] {rBankAccountDataSet});
}
</pre> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1479/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1479/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1479/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1479&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/12/05/runtime-value-in-datasets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>Search a file in your remote svn repository</title>
		<link>http://hordine.wordpress.com/2011/12/05/search-a-file-in-your-remote-svn-repository/</link>
		<comments>http://hordine.wordpress.com/2011/12/05/search-a-file-in-your-remote-svn-repository/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 13:21:17 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[MAC OS]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1471</guid>
		<description><![CDATA[The following MAC OS Terminal and svn command searches remotely, in your svn repository, for a file called ResetTotalsJob.java: svn list http://ezpay-dev.liquix.eu/svn/Projects --depth infinity &#124; fgrep ResetTotalsJob.java The svn list command with the &#8211;depth infinity option lists all files, starting from the specified remote repository location,  and the files in ALL subfolders recursively from there on. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1471&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following MAC OS Terminal and svn command searches remotely, in your svn repository, for a file called ResetTotalsJob.java:</p>
<p><span style="color:#0000ff;"><em><code>svn list http://ezpay-dev.liquix.eu/svn/Projects --depth infinity | fgrep ResetTotalsJob.java</code></em></span></p>
<p>The <em>svn list</em> command with the <em>&#8211;depth infinity </em>option lists all files, starting from the specified remote repository location,  and the files in ALL subfolders recursively from there on.</p>
<p>The fgrep MAC OS command filters the result returned by that svn command and displays only the lines containing <em>ResetTotalsJob.java.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1471/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1471&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/12/05/search-a-file-in-your-remote-svn-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>MAC OS X Terminal Commands</title>
		<link>http://hordine.wordpress.com/2011/12/01/mac-os-x-terminal-commands/</link>
		<comments>http://hordine.wordpress.com/2011/12/01/mac-os-x-terminal-commands/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 15:45:50 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[MAC OS]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1467</guid>
		<description><![CDATA[These are just some examples of what I&#8217;ve picked up so far from working with Mac OS. env =&#62;mac os command to see the values of system variables  sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit hosts =&#62; forces the hosts file to be opened by TextEdit. grep -lr &#8220;reporting&#8221; . =&#62; searches all files containing &#8220;reporting&#8221;, starting at current directory [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1467&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>These are just some examples of what I&#8217;ve picked up so far from working with Mac OS.</p>
<p><em>env</em></p>
<p style="padding-left:30px;">=&gt;mac os command to see the values of system variables</p>
<p> <em>sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit hosts</em></p>
<p style="padding-left:30px;">=&gt; forces the hosts file to be opened by TextEdit.</p>
<p><em>grep -lr &#8220;reporting&#8221; .</em></p>
<p style="padding-left:30px;">=&gt; searches all files containing &#8220;reporting&#8221;, starting at current directory and searches recursively in all directories contained therein.</p>
<p><em>fgrep -ilr &#8220;reloadCard&#8221; .</em></p>
<p><em>whereis mvn</em></p>
<p style="padding-left:30px;">=&gt; shows where that program is located</p>
<p><em> ls -la /usr/bin/mvn</em></p>
<p style="padding-left:30px;">=&gt; shows where this symbolic link is pointing to</p>
<p><em>sudo ln -s /Users/hordine/software/apache-maven-2.2.1/bin/mvn /usr/bin/mvn</em></p>
<p style="padding-left:30px;">=&gt; to create a symbolic link</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1467/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1467/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1467&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/12/01/mac-os-x-terminal-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>Schedule a Quartz Job to run only once</title>
		<link>http://hordine.wordpress.com/2011/11/28/schedule-a-quartz-job-to-run-only-once/</link>
		<comments>http://hordine.wordpress.com/2011/11/28/schedule-a-quartz-job-to-run-only-once/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 14:16:17 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Quartz Scheduler]]></category>
		<category><![CDATA[QuartzScheduler]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1455</guid>
		<description><![CDATA[Below is one way to schedule a Quartz Job to run only once, and one minute after QuartzScheduler schedules the Job. Calendar cal = Calendar.getInstance(); cal.setTime(new Date()); int minute = cal.get(Calendar.MINUTE) + 1; int hour = cal.get(Calendar.HOUR_OF_DAY); String jobCron = "1 " + minute + " " + hour + " * * ?"; return [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1455&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is one way to schedule a Quartz Job to run only once, and one minute after QuartzScheduler schedules the Job.</p>
<p><code><br />
    Calendar cal = Calendar.getInstance();<br />
    cal.setTime(new Date());<br />
    int minute = cal.get(Calendar.MINUTE) + 1;<br />
    int hour = cal.get(Calendar.HOUR_OF_DAY);<br />
    String jobCron = "1 " + minute + " " + hour + " * * ?";<br />
    return new ScheduledJob[] {<br />
        new ScheduledJob( "LebaraPromotionVoucherJob", LebaraPromotionVoucherJob.class, WEB_RELOAD_SOLUTION_JOBS, jobCron)<br />
    };<br />
</code></p>
<p><span style="color:#000000;">The minute variable holds the value of the current minute plus 1, the hour the value of the current hour, and the final Cron Expression specifies the 1st second of the next minute of the current hour of each day.</span></p>
<p>This is useful for testing Quartz Jobs. That way the job will run only once, each day, but by the same minute of the next day you&#8217;ll have done all the debugging that you needed to do.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1455/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1455&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/11/28/schedule-a-quartz-job-to-run-only-once/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>Loading data from a CSV file into MySQL</title>
		<link>http://hordine.wordpress.com/2011/11/28/loading-data-from-a-csv-file-into-mysql/</link>
		<comments>http://hordine.wordpress.com/2011/11/28/loading-data-from-a-csv-file-into-mysql/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 13:42:22 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Script]]></category>
		<category><![CDATA[MySQLScript]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1449</guid>
		<description><![CDATA[Below is an example of how to load data from a CSV file into a MySQL table using MySQL Script. load data local infile &#8216;/Users/hordine/documents/MSISDNPUK.txt&#8217; replace into table registrationdb.activation_code FIELDS TERMINATED BY &#8216;,&#8217; LINES TERMINATED BY &#8216;\n&#8217; (deviceNumber, @activationCode) set institutionId = &#8217;999999&#8242;, activationCode = SHA1(@activationCode), registrationDate = current_timestamp &#160; Load Data Local infile means [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1449&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is an example of how to load data from a CSV file into a MySQL table using MySQL Script.</p>
<p><span style="color:#0000ff;">load data local </span><br />
<span style="color:#0000ff;"> infile &#8216;/Users/hordine/documents/MSISDNPUK.txt&#8217;</span><br />
<span style="color:#0000ff;"> replace </span><br />
<span style="color:#0000ff;"> into table registrationdb.activation_code</span><br />
<span style="color:#0000ff;"> FIELDS TERMINATED BY &#8216;,&#8217;</span><br />
<span style="color:#0000ff;"> LINES TERMINATED BY &#8216;\n&#8217;</span><br />
<span style="color:#0000ff;"> (deviceNumber, @activationCode)</span><br />
<span style="color:#0000ff;"> set institutionId = &#8217;999999&#8242;, activationCode = SHA1(@activationCode), registrationDate = current_timestamp</span></p>
<p>&nbsp;</p>
<p><span style="color:#000000;"><span style="color:#0000ff;"><strong>Load Data Local infile</strong></span> means you&#8217;re going to load data from the local file that you&#8217;ll specify next. </span></p>
<p><span style="color:#0000ff;"><strong>Replace</strong></span> means that if a row already exists in the table into which you&#8217;re importing the data, the row will be deleted and a new one will be created. A row is considered as existing when the value of the primary key, of a unique key, or of a unique index, matches the value being imported from the text file.</p>
<p><span style="color:#0000ff;"><strong>Into table</strong></span> is pretty much obvious and if you need me to explain what that means maybe you shouldn&#8217;t be reading this anyway.</p>
<p><span style="color:#0000ff;"><strong>FIELDS TERMINATED BY</strong></span> specifies the character that separates the fields, or columns, if you will.</p>
<p><span style="color:#0000ff;"><strong>LINES TERMINATED BY</strong></span> specifies the character that marks the end a line, or of a record if you want it to be called a record. &#8216;\n&#8217; is actually the default value, which works fine for text files being read from MAC OS, but if you&#8217;re using Windows, you should mark the end of a line as &#8216;\r\n&#8217;.</p>
<p><span style="color:#0000ff;"><strong>(deviceNumber, @activationCode)</strong></span> means that the two values (read for each line) will be stored in the deviceNumber column of the table and the @activationCode variable.</p>
<p>Also for each line, the next line (<span style="color:#0000ff;">set institutionId = &#8217;999999&#8242;, activationCode = SHA1(@activationCode), registrationDate = current_timestamp</span>) is executed and sets the value of the column institutionId to a constant value, activationCode to the encoded version of the variable @activationCode, and registrationDate to the current timestamp.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1449/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1449/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1449/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1449/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1449/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1449/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1449/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1449/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1449/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1449/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1449/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1449/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1449/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1449/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1449&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/11/28/loading-data-from-a-csv-file-into-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>MacOS Terminal commands</title>
		<link>http://hordine.wordpress.com/2011/11/22/macos-terminal-commands/</link>
		<comments>http://hordine.wordpress.com/2011/11/22/macos-terminal-commands/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 12:21:22 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Mac_OS]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1414</guid>
		<description><![CDATA[env Shows the values attributed to environment variables fgrep Can be used to search files containing a certain pattern (String). Eg.: fgrep -ilr &#8220;reloadCard&#8221; . searches all files containing &#8220;reporting&#8221;, starting at current directory and searches recursively in all directories contained therein. sudo Runs the next command as a super user. Eg.: sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit hosts runs the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1414&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>env</strong></h2>
<p>Shows the values attributed to environment variables</p>
<h2>fgrep</h2>
<p>Can be used to search files containing a certain pattern (String).</p>
<p>Eg.: fgrep -ilr &#8220;reloadCard&#8221; .</p>
<p>searches all files containing &#8220;reporting&#8221;, starting at current directory and searches recursively in all directories contained therein.</p>
<h2>sudo</h2>
<p>Runs the next command as a super user.</p>
<p>Eg.: sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit hosts</p>
<p>runs the TextEdit application to open the hosts file.</p>
<h2>Whereis</h2>
<p>Shows where the specified command is located.</p>
<p>Eg.: whereis mvn</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1414/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1414&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/11/22/macos-terminal-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>Querying Jobs in SQL Server Data dictionary</title>
		<link>http://hordine.wordpress.com/2011/11/07/querying-jobs-in-sql-server-data-dictionary/</link>
		<comments>http://hordine.wordpress.com/2011/11/07/querying-jobs-in-sql-server-data-dictionary/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 15:55:27 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[DBMS]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1394</guid>
		<description><![CDATA[Here are a couple of queries to find information about Jobs registered in an SQL Server 2005 database: SELECT CONVERT(DATETIME, RTRIM(jh.run_date)) + (jh.run_time * 9 + jh.run_time % 10000 * 6 + jh.run_time % 100 * 10) / 216e4 AS RunDateTime, j.name AS JobName, jh.step_id AS StepID, SUBSTRING(RIGHT(&#8217;000000&#8242; + CONVERT(varchar(6), jh.run_duration), 6), 1, 2) + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1394&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are a couple of queries to find information about Jobs registered in an SQL Server 2005 database:</p>
<ul>
<li>SELECT</li>
<ul>
<li>CONVERT(DATETIME, RTRIM(jh.run_date))<br />
+ (jh.run_time * 9 +<br />
jh.run_time % 10000 * 6 +<br />
jh.run_time % 100 * 10) / 216e4 AS RunDateTime,</li>
<li>j.name AS JobName,</li>
<li>jh.step_id AS StepID,</li>
<li>SUBSTRING(RIGHT(&#8217;000000&#8242; + CONVERT(varchar(6), jh.run_duration), 6), 1, 2) + &#8216;:&#8217; + SUBSTRING(RIGHT(&#8217;000000&#8242; + CONVERT(varchar(6), jh.run_duration), 6), 3, 2) + &#8216;:&#8217; + SUBSTRING(RIGHT(&#8217;000000&#8242; + CONVERT(varchar(6), jh.run_duration), 6), 5, 2) AS StepRunTime,</li>
<li>jh.step_name AS StepName</li>
</ul>
<li>FROM msdb..sysjobhistory jh</li>
</ul>
<p>INNER JOIN msdb..sysjobs j ON jh.job_id = j.job_id</p>
<p>ORDER BY jh.run_date, jh.run_time, j.job_id, jh.step_id</p>
<p>select job.name as job_name, job.start_step_id,</p>
<p>step.step_id, step.step_name, step.subsystem, step.command,</p>
<p>step.flags, step.additional_parameters, step.cmdexec_success_code,</p>
<p>step.on_success_action, step.on_success_step_id, step.on_fail_action,</p>
<p>step.on_fail_step_id, step.output_file_name, step.last_run_outcome,</p>
<p>step.last_run_duration, step.last_run_retries, step.last_run_date,</p>
<p>step.last_run_time</p>
<p>from  msdb..sysjobsteps step</p>
<p>join msdb..sysjobs job on step.job_id = job.job_id</p>
<p>where job.enabled = 1</p>
<p>order by job_name, step.step_id</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1394/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1394&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/11/07/querying-jobs-in-sql-server-data-dictionary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>Exporting to CSV and PDF files</title>
		<link>http://hordine.wordpress.com/2011/11/01/exporting-to-csv-and-pdf-files/</link>
		<comments>http://hordine.wordpress.com/2011/11/01/exporting-to-csv-and-pdf-files/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 15:54:03 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[JasperReports]]></category>
		<category><![CDATA[JasperReport]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1391</guid>
		<description><![CDATA[Here&#8217;s a nice and simple example of how to export your Jrxml report to a PDF and to a CSV file. In this example the DataSource for the report was a query hardcoded in the Jrxml. String periodString = sdf.format(params.get(&#8220;REPORTING_DATE&#8221;)); String jasperFileName= &#8220;ManagementSummary.jasper&#8221;; String jasperCsvFileName= &#8220;ManagementSummaryCSV.jasper&#8221;; String jasperFullFileName = jasperFileDirectory + jasperFileName; System.out.println(&#8220;Filling report with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1391&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nice and simple example of how to export your Jrxml report to a PDF and to a CSV file.</p>
<p>In this example the DataSource for the report was a query hardcoded in the Jrxml.</p>
<p><span style="color:#0000ff;">String periodString = sdf.format(params.get(&#8220;REPORTING_DATE&#8221;));</span><br />
<span style="color:#0000ff;">String jasperFileName= &#8220;ManagementSummary.jasper&#8221;;</span><br />
<span style="color:#0000ff;">String jasperCsvFileName= &#8220;ManagementSummaryCSV.jasper&#8221;;</span><br />
<span style="color:#0000ff;">String jasperFullFileName = jasperFileDirectory + jasperFileName;</span><br />
<span style="color:#0000ff;">System.out.println(&#8220;Filling report with jasper report file [" + jasperFullFileName + "] with parameters [" + params + "]&#8220;);</span><br />
<span style="color:#0000ff;">String jrprintFileName = StringUtils.replace(jasperFileName, &#8220;.jasper&#8221;, &#8220;_&#8221; + providerId + &#8220;_&#8221; + periodString + &#8220;.jrprint&#8221;);</span><br />
<span style="color:#0000ff;">String jrPrintFilePath = generatedReportsDirectory + jrprintFileName;</span><br />
<span style="color:#0000ff;">String pdfFileName = null;</span></p>
<ul>
<li><span style="color:#0000ff;">try {</span></li>
<ul>
<li><span style="color:#0000ff;">JasperPrint jasperPrint = JasperFillManager.fillReport(jasperFileDirectory + jasperFileName, params, connection);</span></li>
<li><span style="color:#0000ff;">System.out.println(&#8220;Done generating [" + generatedReportsDirectory + jrprintFileName + "]&#8220;);</span></li>
<li><span style="color:#0000ff;">// determine the pdf file name</span></li>
<li><span style="color:#0000ff;">pdfFileName = StringUtils.replace(jrPrintFilePath, &#8220;.jrprint&#8221;, &#8220;.pdf&#8221;);</span></li>
<li><span style="color:#0000ff;">String csvFileName = StringUtils.replace(jrPrintFilePath, &#8220;.jrprint&#8221;, &#8220;.csv&#8221;);</span></li>
<li><span style="color:#0000ff;">JasperExportManager.exportReportToPdfFile(jasperPrint, pdfFileName);</span></li>
<li><span style="color:#0000ff;">System.out.println(&#8220;Done generating [" + pdfFileName + "]&#8220;);</span></li>
<li><span style="color:#0000ff;">System.out.println(&#8220;Generating report in CSV&#8221;);</span></li>
<li><span style="color:#0000ff;">jasperPrint = JasperFillManager.fillReport(jasperFileDirectory + jasperCsvFileName, params, connection);</span></li>
<li><span style="color:#0000ff;">// This is the part to export to a CSV</span></li>
<li><span style="color:#0000ff;">JRCsvExporter csvExporter = new JRCsvExporter();</span></li>
<li><span style="color:#0000ff;">csvExporter.setParameter(JRCsvExporterParameter.FIELD_DELIMITER, &#8220;,&#8221;);</span></li>
<li><span style="color:#0000ff;">csvExporter.setParameter(JRCsvExporterParameter.RECORD_DELIMITER,&#8221;\n&#8221;);</span></li>
<li><span style="color:#0000ff;">csvExporter.setParameter(JRCsvExporterParameter.JASPER_PRINT, jasperPrint);</span></li>
<li><span style="color:#0000ff;">csvExporter.setParameter(JRCsvExporterParameter.IGNORE_PAGE_MARGINS, true);</span></li>
<li><span style="color:#0000ff;">csvExporter.setParameter(JRCsvExporterParameter.OUTPUT_FILE_NAME, csvFileName);</span></li>
<li><span style="color:#0000ff;">csvExporter.exportReport();</span></li>
</ul>
<li><span style="color:#0000ff;">} catch (JRException e) {</span></li>
<ul>
<li><span style="color:#0000ff;">e.printStackTrace();</span></li>
</ul>
<li><span style="color:#0000ff;">}</span></li>
</ul>
<div><span style="color:#0000ff;"><br />
</span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1391&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/11/01/exporting-to-csv-and-pdf-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>Division undefined in JasperReport</title>
		<link>http://hordine.wordpress.com/2011/11/01/division-undefined-in-jasperreport/</link>
		<comments>http://hordine.wordpress.com/2011/11/01/division-undefined-in-jasperreport/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 15:01:56 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[iReport]]></category>
		<category><![CDATA[JasperReport]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1383</guid>
		<description><![CDATA[When calculating a field text expression that included a division, JasperFillManager.fillReport() threw an JRExpressionEvalException caused by a division by zero. Here&#8217;s the full stack trace: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : $F{number_awaiting_moto}/$V{transaction_project_number_total} at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:195) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:589) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:557) at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:929) at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:383) at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:368) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:258) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:499) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2036) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:760) at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1383&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When calculating a field text expression that included a division, JasperFillManager.fillReport() threw an JRExpressionEvalException caused by a division by zero.</p>
<p>Here&#8217;s the full stack trace:</p>
<blockquote><p><span style="color:#ff0000;">net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :</span><br />
<span style="color:#ff0000;"> Source text : $F{number_awaiting_moto}/$V{transaction_project_number_total}</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:195)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:589)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:557)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:929)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:383)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:368)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:258)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:499)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2036)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:760)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:270)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:946)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)</span><br />
<span style="color:#ff0000;"> at eu.liquix.reporting.DailyRecurringTransactionsReporting.generateDailyRecurringTransactionSummary(DailyRecurringTransactionsReporting.java:191)</span><br />
<span style="color:#ff0000;"> at eu.liquix.reporting.DailyRecurringTransactionsReporting.main(DailyRecurringTransactionsReporting.java:121)</span><br />
<span style="color:#ff0000;"> Caused by: java.lang.ArithmeticException: Division undefined</span><br />
<span style="color:#ff0000;"> at java.math.BigDecimal.divide(BigDecimal.java:1654)</span><br />
<span style="color:#ff0000;"> at org.codehaus.groovy.runtime.typehandling.BigDecimalMath.divideImpl(BigDecimalMath.java:66)</span><br />
<span style="color:#ff0000;"> at org.codehaus.groovy.runtime.dgmimpl.NumberNumberDiv$NumberNumber.invoke(NumberNumberDiv.java:320)</span><br />
<span style="color:#ff0000;"> at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)</span><br />
<span style="color:#ff0000;"> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)</span><br />
<span style="color:#ff0000;"> at ManagementSummaryCSV_1320158618653_126888.evaluate(calculator_ManagementSummaryCSV_1320158618653_126888:709)</span><br />
<span style="color:#ff0000;"> at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:182)</span><br />
<span style="color:#ff0000;"> &#8230; 18 more</span></p></blockquote>
<p>The query that I used as my datasource sums up a bunch of values and it would return one row with a bunch of zeros as a result, even if no records where found. Then, a variable in my Jrxml would also be attributed zero, and finally the evaluation of a field expression, which divided something by that variable would cause the error.</p>
<p>To solve it, I changed the field expression to this:<br />
$V{transaction_project_number_total} == 0? 0 :<br />
$F{number_awaiting_moto}/$V{transaction_project_number_total}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1383&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/11/01/division-undefined-in-jasperreport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating a remote debugging configuration with Eclipse</title>
		<link>http://hordine.wordpress.com/2011/10/21/creating-a-remote-debugging-configuration-with-eclipse/</link>
		<comments>http://hordine.wordpress.com/2011/10/21/creating-a-remote-debugging-configuration-with-eclipse/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 14:53:29 +0000</pubDate>
		<dc:creator>hordine</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://hordine.wordpress.com/?p=1368</guid>
		<description><![CDATA[If you startup your application server from outside of Eclipse, for instance, by running the command &#8220;mvn cargo:start&#8221;, you need to set up a Remote Debugging configuration on Eclipse, in order to debug your application. Here&#8217;s how you can do it. First you need to find out at which socket transport port your application server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1368&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you startup your application server from outside of Eclipse, for instance, by running the command &#8220;mvn cargo:start&#8221;, you need to set up a Remote Debugging configuration on Eclipse, in order to debug your application.</p>
<p>Here&#8217;s how you can do it.</p>
<p>First you need to find out at which socket transport port your application server is listening for debug information. That&#8217;s usually sent to the dt_socket socket transport, which allows a JVM to communicate with debugging applications.</p>
<p>Here&#8217;s an example of Tomcat&#8217;s console displaying that information:</p>
<p><a href="http://hordine.files.wordpress.com/2011/10/dt_socket-listening.jpg"><img class="alignleft size-full wp-image-1369" title="dt_socket listening" src="http://hordine.files.wordpress.com/2011/10/dt_socket-listening.jpg?w=570&#038;h=354" alt="" width="570" height="354" /></a></p>
<p>Now you can create your debug configuration on Eclipse.</p>
<p>For that, go to &#8220;Debug configurations…&#8221;, right click on Java Remote Application and select New:</p>
<p><a href="http://hordine.files.wordpress.com/2011/10/new-remote-java-application.jpg"><img class="alignleft size-full wp-image-1370" title="new remote java application debugging configuration" src="http://hordine.files.wordpress.com/2011/10/new-remote-java-application.jpg?w=570&#038;h=356" alt="" width="570" height="356" /></a></p>
<p>Enter the configuration&#8217;s name, the project that you want to debug, the host name, and the port at which your application server is listening for transport dt_socket (in this case 5555), and click Apply.</p>
<p>You&#8217;re done!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hordine.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hordine.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hordine.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hordine.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hordine.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hordine.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hordine.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hordine.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hordine.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hordine.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hordine.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hordine.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hordine.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hordine.wordpress.com/1368/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hordine.wordpress.com&amp;blog=5990710&amp;post=1368&amp;subd=hordine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hordine.wordpress.com/2011/10/21/creating-a-remote-debugging-configuration-with-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a6fc6ab92ba4212867075c08ada048a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hordine</media:title>
		</media:content>

		<media:content url="http://hordine.files.wordpress.com/2011/10/dt_socket-listening.jpg" medium="image">
			<media:title type="html">dt_socket listening</media:title>
		</media:content>

		<media:content url="http://hordine.files.wordpress.com/2011/10/new-remote-java-application.jpg" medium="image">
			<media:title type="html">new remote java application debugging configuration</media:title>
		</media:content>
	</item>
	</channel>
</rss>
