<?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>LEXECORP</title>
	<atom:link href="http://lexecorp.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lexecorp.com</link>
	<description>Technical Software Services</description>
	<lastBuildDate>Sat, 10 Oct 2009 02:13:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='lexecorp.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d8d9e432eef345337ceb81eeb70c8478?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>LEXECORP</title>
		<link>http://lexecorp.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lexecorp.com/osd.xml" title="LEXECORP" />
	<atom:link rel='hub' href='http://lexecorp.com/?pushpress=hub'/>
		<item>
		<title>Heads are in the Cloud</title>
		<link>http://lexecorp.com/2009/10/10/heads-are-in-the-cloud/</link>
		<comments>http://lexecorp.com/2009/10/10/heads-are-in-the-cloud/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 02:13:08 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[cloud computing]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=2032</guid>
		<description><![CDATA[I just read Bob&#8217;s very good write-up on the Oracle Cloud-Computing-roundtable-luncheon and wondered why managers often get so lost with technology.
Fads, there are a lot of them. But I think there is substance to this one. It is the Startup&#8217;s and SME&#8217;s who are the ones to pay heed! View this particular fad with the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=2032&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I just read Bob&#8217;s very good write-up on the <a href="http://wordpress.transentia.com.au/wordpress/2009/10/10/oracle-cloud-computing-roundtable-luncheon/">Oracle Cloud-Computing-roundtable-luncheon</a> and wondered why managers often get so lost with technology.</p>
<p>Fads, there are a lot of them. But I think there is substance to this one. It is the Startup&#8217;s and SME&#8217;s who are the ones to pay heed! View this particular fad with the same interest as the Internet Shop Front! Yes, it &#8220;levels the playing field&#8221; yet more.</p>
<p>Think about it, when you are financially at your most vulnerable, others will provision you with the infrastructure and know how that the huge corporates have, and pay through the nose for. But Bob is right, I don&#8217;t think this offers much to the big corporates. Much hassle for little return.</p>
<p>So don&#8217;t keep your heads in the clouds, start your reading <a href="http://en.wikipedia.org/wiki/Cloud_computing">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/2032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/2032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/2032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/2032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/2032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/2032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/2032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/2032/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/2032/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/2032/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=2032&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/10/10/heads-are-in-the-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>
	</item>
		<item>
		<title>A Coder&#8217;s (warped) view of project &#8220;world&#8221;</title>
		<link>http://lexecorp.com/2009/10/05/a-coders-warped-view-of-project-world/</link>
		<comments>http://lexecorp.com/2009/10/05/a-coders-warped-view-of-project-world/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 03:37:11 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Process and practice]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=2026</guid>
		<description><![CDATA[ I wonder if the years of staring at computer screens has affected my world view? OK, no doubt of that. Everything is a project in progress or a problem to be solved. Does it drive your partner nuts? My kids try to assist me in seeing just that. Here you see them checking on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=2026&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://alexlexecorp.files.wordpress.com/2009/10/skewed.jpg"><img class="alignleft size-full wp-image-2027" title="skewed" src="http://alexlexecorp.files.wordpress.com/2009/10/skewed.jpg?w=200&#038;h=150" alt="skewed" width="200" height="150" /></a> I wonder if the years of staring at computer screens has affected my world view? OK, no doubt of that. Everything is a project in progress or a problem to be solved. Does it drive your partner nuts? My kids try to assist me in seeing just that. Here you see them checking on me. They are my pet project, or is it the other way around? People who live computers often have a twisted view. At least my kids still love me.</p>
<p>I suspect that computer people don&#8217;t always see, with regards projects, that a machine and its software are just useful tools. Sometimes the practitioners within a project can be much less than a &#8220;useless tool&#8221;, but I&#8217;ll curb my innuendo. If you like sci fi then you have a future view, but for now, software just comes as bundles, tools no more and no less.</p>
<p>Maybe a young IT practitioner is a little like a young petrolhead, or 1110000 1100101 1110100 1110010 1101111 1101100 1101000 1100101 1100001 1100100. Yes they plough heaps of their time (which is money) into their obsession, and in the case of the latter, occasionally plough their cars. We techies, well we get involved in train wrecks. Not sure why that is, but we do seem to have nerd like train watcher qualities! We &#8220;spot&#8221; language features and create equally useless lists.</p>
<p>But how do we get so carried away? How does our obsession cloud our ability to drive and deliver projects? Well did you check if my binary was correct? Excessive technical focus!</p>
<p>So, we can get carried away with the object of our desires (our latest language or platform or maybe device). But let&#8217;s think projects, the actual purpose for many of these odd obsessions. The project is the encapsulation of anything new that we do, or at least set out to achieve.</p>
<p>Let&#8217;s look at specifics, I&#8217;m thinking that</p>
<blockquote><p>we don&#8217;t often see the project target too clearly</p></blockquote>
<p>Must be all that astigmatism and close focus myopia. Or is it, as in so many areas of focused activity, that our minds just play tricks on us? We happily race towards a fictional target. Tilting at windmills?</p>
<p>Sometimes we trick ourselves by equating the fastest performing result with a meaningful project end goal. Yes not always the desired result. Obsessions, desires, I&#8217;m starting to feel strangely hot now, oh &#8220;Yeah, baby&#8221;.</p>
<p>Sometimes we show unreasonable reliance and belief in a silver bullet. Latest methodology anyone? The only way to steer a direct course? Oh please. Methodologies often rightly address the most common set of mistakes, but they can&#8217;t transmute lead into gold or does the sow&#8217;s ear to silk purse metaphor do it for you? Yes,</p>
<blockquote><p>GOOD people over process</p></blockquote>
<p>there was a reason for that one (lookup the <strong>Agile manifesto</strong>), but excuse the liberal addition of my extra defining word.</p>
<p>What else, seeing as this might be a veiled rant. Well just one more mistake we often don&#8217;t think about as techies &#8211; that a &#8220;working solution&#8221; might not actually be more important than the perceptions of the client! Hmmm, if only I didn&#8217;t keep solving my wife&#8217;s issues and just said, &#8220;Yes dear&#8221;.</p>
<p>Does that last issue sound too extreme to you? Well, clients not only pay our fees but present us with the outline of a project. We might fill in the gaps but they need to be HAPPY. They might then come back for more. Or not!</p>
<p>Maybe the biggest problem for many techies is the absence of soft skills. Maybe because acquiring the hard skills takes so damn long!?</p>
<p>Our industry has grown so rapidly that now we have fast track routes to becoming the leaders within our domain. Well not in all places, but I&#8217;m sure you have been to sites where the PM&#8217;s ruled the roost! Some without a background in software process maybe or with little love for or ability with technical practice!!!</p>
<p>Hard skills, once they set, tend to make an essential bedrock on which to lay and seat those higher level skills. Do I have to say &#8220;Duh!&#8221;.</p>
<p>Ok, having indicated a little dissatisfaction, I will make note of what I see (warped as it may be) and make mention of that which represents what I do like within this loose discussion on the game of</p>
<blockquote><p>Project hit and miss</p></blockquote>
<p>A little Yang if you will.</p>
<p>I do like communication. Not just the &#8220;round up the nervous juniors to see if they can be made to talk or possibly pee themselves&#8221;. Ah you enjoy this pointless abuse of a non agile group mimicking a Scrum?  Yes, the session might last the length of an abstracted and quite boring Union scrum, but hey in the real world they introduced league to rectify that! It&#8217;s all about &#8220;shared thinking and shared goals&#8221;, don&#8217;t just copy a format because the course said so!</p>
<p>I do like that Scrum and Lean ARE giving new project focus and managerial techniques to technical teams that used to stay glued to their screens. Until the software got into acceptance!</p>
<p>I like the lead who checks on how things are going &#8211; both project and otherwise, and who both suggests and listens.  And even understands!</p>
<p>I like the sharing of leadership. Take the reigns when this feature is your forte. People who buy in by sharing their enthusiasm and ability. Yes, you&#8217;ve been in such a team and liked it I&#8217;ll wager!</p>
<p>I like a warped sense of humour and a distorted view of the world. Turn what is requested, or DEMANDED, upside down and inside out. You will be surprised by how amenable others are to a good solution! Ok, you will also be surprised by the opposite, but we&#8217;re trying to Yang right now.</p>
<p>I like people who realise that their most powerful tool, in their technical arsenal, is their noggin! Computers are still a bit like cars. You can make them sexy on the outside, go fast stripes and flashing lights,  but they are still as primitive as a hairy arsed baboon or a troop of PHB&#8217;s (<strong>Pointy-Haired Boss,</strong> see Dilbert)</p>
<p>You can&#8217;t always change the world around you. And with a skewed view of the world, maybe that wouldn&#8217;t be a safe move either. But if I have a warped perspective, it is only because I refuse to fit into a poorly applied matrix, or a pigeon holed role, or into anything which isn&#8217;t a part of a solution to a client&#8217;s real problem.</p>
<p>Is it time for a little closure? How about a simple credo?</p>
<blockquote><p>make sure your project team tilts at meaningful targets</p>
<p>make sure your team has the most appropriate solutions</p>
<p>make sure the team consists of the right sort of noggins needed to implement them</p></blockquote>
<p>I&#8217;ll be starting a new religion in my next installment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/2026/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=2026&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/10/05/a-coders-warped-view-of-project-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>

		<media:content url="http://alexlexecorp.files.wordpress.com/2009/10/skewed.jpg" medium="image">
			<media:title type="html">skewed</media:title>
		</media:content>
	</item>
		<item>
		<title>Mobile code is always fiddly</title>
		<link>http://lexecorp.com/2009/07/24/mobile-code-is-always-fiddly/</link>
		<comments>http://lexecorp.com/2009/07/24/mobile-code-is-always-fiddly/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 09:16:52 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Embedded and mobile phone platforms]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[pys60]]></category>
		<category><![CDATA[s60]]></category>
		<category><![CDATA[tradesman]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=1998</guid>
		<description><![CDATA[Today I learnt that one couldn&#8217;t set locale with PyS60! Basically you can&#8217;t &#8220;import locale&#8221; because there isn&#8217;t such a module (it wasn&#8217;t ported to Symbian S60).
I also discovered that there is a bug with formatting floats. One gets &#8220;.&#8221; instead of &#8220;,&#8221; leaving one with no idea where the decimal point is! You may [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1998&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Today I learnt that one couldn&#8217;t set locale with PyS60! Basically you can&#8217;t &#8220;import locale&#8221; because there isn&#8217;t such a module (it wasn&#8217;t ported to Symbian S60).</p>
<p>I also discovered that there is a bug with formatting floats. One gets &#8220;.&#8221; instead of &#8220;,&#8221; leaving one with no idea where the decimal point is! You may have noticed on my last sample screen. This left me with no choice but to manually repair with a little string manipulation.</p>
<p>However, one win was with fonts. That shot also made it obvious that not everyone can see small print, so a little fiddling got the app not only easier to see, but also directed the attention of the user to the result.</p>
<p><img class="alignnone size-medium wp-image-1999" title="Screenshot" src="http://alexlexecorp.files.wordpress.com/2009/07/screenshot0007.jpg?w=300&#038;h=225" alt="Screenshot" width="300" height="225" /></p>
<p>A fun aside. Now I must get around to updating the data for the equations. Bye for now.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/1998/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/1998/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/1998/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/1998/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/1998/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/1998/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/1998/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/1998/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/1998/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/1998/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1998&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/07/24/mobile-code-is-always-fiddly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>

		<media:content url="http://alexlexecorp.files.wordpress.com/2009/07/screenshot0007.jpg?w=300" medium="image">
			<media:title type="html">Screenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Austrade &#8211; the conclusion</title>
		<link>http://lexecorp.com/2009/07/23/austrade-the-conclusion/</link>
		<comments>http://lexecorp.com/2009/07/23/austrade-the-conclusion/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 00:28:37 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[austrade]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=1995</guid>
		<description><![CDATA[Well what a surprise! We got registered with Austrade. The formatting is still an issue but I&#8217;m glad we got there. This is strange, we looked for ages and never found ourselves. We gave up! A potential client emailed us (mentioning Austrade) which was the way we found out (but not from Austrade themselves)
Well the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1995&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Well what a surprise! We got registered with <a href="http://www.austrade.gov.au/SupplierDetails.aspx?ORGID=8000001602&amp;folderid=1736">Austrade</a>. The <a href="http://lexecorp.com/2009/02/14/austrade-take-2/">formatting</a> is still an issue but I&#8217;m glad we got there. This is strange, we looked for ages and never found ourselves. We gave up! A potential client emailed us (mentioning Austrade) which was the way we found out (but not from Austrade themselves)</p>
<p>Well the entry is a little out of date but it is obviously now there. So, for those also targeting the export market, maybe this is worth doing!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/1995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/1995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/1995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/1995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/1995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/1995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/1995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/1995/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/1995/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/1995/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1995&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/07/23/austrade-the-conclusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>
	</item>
		<item>
		<title>Groovy Piles went mobile</title>
		<link>http://lexecorp.com/2009/07/22/groovy-piles-went-mobile/</link>
		<comments>http://lexecorp.com/2009/07/22/groovy-piles-went-mobile/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 12:37:25 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Embedded and mobile phone platforms]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[s60]]></category>
		<category><![CDATA[symbian]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=1986</guid>
		<description><![CDATA[If you read this site, you will know the experimentation we do with Groovy and when we first had Piles. Well without the improvements of the second attempt (when we used more accurate data) we have done the same solution as a mobile (phone) application called Tradie, which runs on Symbian S60 smartphones (and IPhones [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1986&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>If you read this site, you will know the experimentation we do with Groovy and when we first had <a href="http://lexecorp.com/2009/07/06/groovy-coding-a-pile-of-dirt/">Piles</a>. Well without the improvements of the <a href="http://lexecorp.com/2009/07/06/groovy-gave-me-piles/">second attempt</a> (when we used more accurate data) we have done the same solution as a mobile (phone) application called Tradie, which runs on Symbian S60 smartphones (and IPhones &#8211; we just don&#8217;t have one <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  )</p>
<p>Why mobile? Well there is no point in getting your shiny notebook all dirty, whilst outside, when your phone can do all the work! It&#8217;s a lot lighter too. We called it Tradie because it&#8217;s the kind of thing an Aussie tradesman might want to know the answer too, but just doesn&#8217;t have the Mathematica skills to address <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . We even added a metric option (the default) but wanted to show the same calculation as the first post (most of our readers are probably in the Imperial U.S anyway).</p>
<p><img class="alignnone size-medium wp-image-1987" title="Screenshot" src="http://alexlexecorp.files.wordpress.com/2009/07/screenshot0003.jpg?w=300&#038;h=225" alt="Screenshot" width="300" height="225" /></p>
<p>Actually (little history here) we had developed a video surveillance mobile prototype as a front end to the Gizzy product. As we recently reported, Gizzy is no more and so our fancy mobile application, which negotiated the Gizzy protocols to acquire video server images, is thus also no more.</p>
<p>Nonetheless, though markets are sour and companies are going under, there is an optimists view of this (I think)! As we had previously posted on the value of <a href="http://lexecorp.com/2009/03/15/site-review-sample/">by-products</a>, our skills are also a by-product of our work (those of us in ICT anyway). Though revisiting mobile development after over 7 or 8 months was a little stressful, the core knowledge and skills acquired got us going in record time.</p>
<p>I am tempted to take an aside and comment on how hirers acquire staff based on what skills they can evidence (via testing) on any particular day! Such a short sighted view of what constitutes skill and staff value! Not so much looking for a useful skills base but a monkey to jump though hoops methinks. No, I wont make comment <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>These are lean times in the ICT world and I will note that an exceptionally talented (and skilled) ex-colleague was unsuccessful with landing a contract. Oh boy does that company not know what opportunity they missed! Didn&#8217;t think a more mature candidate could keep up with the technology I am told. Hmmmm.</p>
<p>We&#8217;ll keep you posted on more experiments, prototypes and products as we go along.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/1986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/1986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/1986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/1986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/1986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/1986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/1986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/1986/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/1986/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/1986/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1986&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/07/22/groovy-piles-went-mobile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>

		<media:content url="http://alexlexecorp.files.wordpress.com/2009/07/screenshot0003.jpg?w=300" medium="image">
			<media:title type="html">Screenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Nokia Software Updater</title>
		<link>http://lexecorp.com/2009/07/22/nokia-software-updater/</link>
		<comments>http://lexecorp.com/2009/07/22/nokia-software-updater/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 10:45:08 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Embedded and mobile phone platforms]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[e61i]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[software updater]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=1981</guid>
		<description><![CDATA[Well Nokia software updater (NSU) just got better, at least for me. I had become frustrated with the fact that I would have to use Windows XP to burn new firmware onto my E61i (apparently) and disliked seeing the app fail each time it tried to run on Vista. So I turned it off and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1981&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Well Nokia software updater (NSU) just got better, at least for me. I had become frustrated with the fact that I would have to use Windows XP to burn new firmware onto my E61i (apparently) and disliked seeing the app fail each time it tried to run on Vista. So I turned it off and forgot about it.</p>
<p>Well last week I wanted to make a phone backup, cranked up Nokia PC Suite and automagically NSU ran and, for the first time, gave me the option to upgrade! Well the new firmware made my WiFi access more stable so I am very pleased that I did. And no hiccups, like a dead phone!</p>
<p>I followed the advice to the letter, I made sure encryption / lock passwords were all off, that the battery was fully charged (actually NSU won&#8217;t let you proceed until it is &#8211; the power supply could fail after all) and that my data backup was ready to restore, which it did. Even some of the applications survived the upgrade, so getting the ones I still needed was no real hassle.</p>
<p>Our latest LEXECORP mobile application (yes, shameless plug to be addressed later) also has an info page which reports on phone stats (like that battery level) and Software Version (2.0633.65.01 03-10-07 RM-227 (c) Nokia) which saves me searching for the weird set of numbers to key that will tell me just that.</p>
<div id="attachment_1984" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-1984" title="Screenshot0001" src="http://alexlexecorp.files.wordpress.com/2009/07/screenshot0001.gif?w=300&#038;h=225" alt="Fun when it is easy" width="300" height="225" /><p class="wp-caption-text">Fun when it is easy</p></div>
<p>Life, like software, should be simple. Being conservative with upgrades (lazy) also paid off &#8211; I really had to do nothing for a nice result (thank you Nokia).</p>
<p>Now I recall there being a 3.* version of the firmware for Euro phones! So does that update still not apply to us in the Asia Pacific area?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/1981/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/1981/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/1981/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/1981/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/1981/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/1981/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/1981/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/1981/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/1981/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/1981/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1981&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/07/22/nokia-software-updater/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>

		<media:content url="http://alexlexecorp.files.wordpress.com/2009/07/screenshot0001.gif?w=300" medium="image">
			<media:title type="html">Screenshot0001</media:title>
		</media:content>
	</item>
		<item>
		<title>Groovy&#8217;s projectile motion</title>
		<link>http://lexecorp.com/2009/07/10/groovys-projectile-motion/</link>
		<comments>http://lexecorp.com/2009/07/10/groovys-projectile-motion/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 06:18:36 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Software Design, Development & Programming]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[Mathematica]]></category>
		<category><![CDATA[numerical]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[projectile motion]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=1970</guid>
		<description><![CDATA[Today I needed more than a decent crossword. So, I had a think about subjects that I had been fascinated by, way back when I was a student.
So what might I try to renegotiate in Groovy &#8211; the latest enhancement to Java / JVM programming and my preferred tool for Perl&#8217;ifing the JVM   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1970&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1971" title="projectile" src="http://alexlexecorp.files.wordpress.com/2009/07/projectile.gif?w=300&#038;h=117" alt="projectile" width="300" height="117" />Today I needed more than a decent crossword. So, I had a think about subjects that I had been fascinated by, way back when I was a student.</p>
<p>So what might I try to renegotiate in Groovy &#8211; the latest enhancement to Java / JVM programming and my preferred tool for Perl&#8217;ifing the JVM <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  . Well, in general OOP or Object Orientated Programming, does not beautify formulas (and thinking of Java specifically, no operator overloading was a disaster), but Groovy does give the JVM something of what has been sorely missing.</p>
<p>Now before you get carried away, the Achilles heal of Groovy is speed. If I had to do something seriously numerically intensive, like FEA (Finite Element Analysis) on a supercomputer platform, then I might look elsewhere. But for a quick dip into calculating a projectile&#8217;s trajectory, I think we will be fine.</p>
<p>Well whilst I was doing my Masters (Comp Sci) some 20+ years ago, I landed a placement with the British Ministry of Defence. Not just any site,  but the Proof and Experimental establishment.</p>
<p>What did they do? Well they studied projectiles. And a noisy firing range they had too. There were some very bright mathematicians there whose job it was to simulate and later analyse projectile performance. Sadly you have me. However, due to my lower calibre within this department, you will at least have a chance of understanding the code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Ok, here we go. A quick play with Mathematica and then some coding in Groovy is the result I offer you here. So, don&#8217;t shy away from Groovy. I know Python is the in thing for Numerical experimentation these days, but why follow the herd.</p>
<pre class="brush: java;">
// PROJECTILES
//
// formulas - Thank you Mathematica
//
// h = (v^2 sin^2(alpha))/(2 g)    // maximum height
// x = (v^2 sin(2 alpha))/g        // distance traveled
// T = (2 v sin(alpha))/g          // travel time

// v | initial speed
// alpha | release angle
// g | acceleration due to gravity (~~ 9.807 m/s^2)

class Cannon {
  def final g = 9.807F    // acceleration due to gravity (9.81 m/(s^2)
  def deg                 // angle projectile is launched (deg)
  def v                   // initial velocity of projectile (m/s)
  def y0                  // initial height of projectile (m)
  def d                   // total &quot;horizontal&quot; distance traveled by projectile (m)
  def h                   // max height achieved
  def T                   // travel time
                         // radians = deg*(Math.PI/180)
  def distance() {  
    // x = (v^2 sin(2 alpha))/g   
    d = (v**2 * Math.sin(2 * Math.toRadians(deg)))/g
  }

  def height() {
    // h = (v^2 sin^2(alpha))/(2 g)    
    h = (v**2 * (Math.sin(Math.toRadians(deg))**2)) / (2 * g)        
  }

  def time() {
    // T = (2 v sin(alpha))/g
    T = (2 * v * Math.sin(Math.toRadians(deg))) / g
  }

  @Override  
   public String toString() {  
   &quot;&quot;&quot;Cannon angle($deg degrees) Launch Velocity($v m/s) Initial height($y0 metres)  
      Distance: ${String.format(&quot;%.1f&quot;, distance())} metres
      Height:${String.format(&quot;%.2f&quot;, height())} metres
      Time:${String.format(&quot;%.3f&quot;, time())} seconds&quot;&quot;&quot;  
   }  
} // Cannon

// go
println new Cannon(deg: -90.0F, v:45.0F, y0:1.0F) // into ground

println new Cannon(deg: 0.0F, v:45.0F, y0:1.0F) // level

                                                // at an angle
println new Cannon(deg: 25.0F, v:45.0F, y0:1.0F)
println new Cannon(deg: 30.0F, v:45.0F, y0:1.0F)
println new Cannon(deg: 35.0F, v:45.0F, y0:1.0F)
println new Cannon(deg: 40.0F, v:45.0F, y0:1.0F)
println new Cannon(deg: 45.0F, v:45.0F, y0:1.0F)

println new Cannon(deg: 90.0F, v:45.0F, y0:1.0F) // straight up
</pre>
<p>which gives some results which Mathematica confirms to be correct</p>
<pre>
Cannon angle(-90.0 degrees) Launch Velocity(45.0 m/s) Initial height(1.0 metres)
           Distance: -0.0 metres
           Height:103.24 metres
           Time:-9.177 seconds
Cannon angle(0.0 degrees) Launch Velocity(45.0 m/s) Initial height(1.0 metres)
           Distance: 0.0 metres
           Height:0.00 metres
           Time:0.000 seconds
Cannon angle(25.0 degrees) Launch Velocity(45.0 m/s) Initial height(1.0 metres)
           Distance: 158.2 metres
           Height:18.44 metres
           Time:3.878 seconds
Cannon angle(30.0 degrees) Launch Velocity(45.0 m/s) Initial height(1.0 metres)
           Distance: 178.8 metres
           Height:25.81 metres
           Time:4.589 seconds
Cannon angle(35.0 degrees) Launch Velocity(45.0 m/s) Initial height(1.0 metres)
           Distance: 194.0 metres
           Height:33.97 metres
           Time:5.264 seconds
Cannon angle(40.0 degrees) Launch Velocity(45.0 m/s) Initial height(1.0 metres)
           Distance: 203.3 metres
           Height:42.66 metres
           Time:5.899 seconds
Cannon angle(45.0 degrees) Launch Velocity(45.0 m/s) Initial height(1.0 metres)
           Distance: 206.5 metres
           Height:51.62 metres
           Time:6.489 seconds
Cannon angle(90.0 degrees) Launch Velocity(45.0 m/s) Initial height(1.0 metres)
           Distance: 0.0 metres
           Height:103.24 metres
           Time:9.177 seconds
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/1970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/1970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/1970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/1970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/1970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/1970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/1970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/1970/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/1970/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/1970/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1970&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/07/10/groovys-projectile-motion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>

		<media:content url="http://alexlexecorp.files.wordpress.com/2009/07/projectile.gif" medium="image">
			<media:title type="html">projectile</media:title>
		</media:content>
	</item>
		<item>
		<title>Mine is bigger than yours</title>
		<link>http://lexecorp.com/2009/07/08/mine-is-bigger-than-yours/</link>
		<comments>http://lexecorp.com/2009/07/08/mine-is-bigger-than-yours/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 05:38:48 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Graphics, Visualisation, Image Processing]]></category>
		<category><![CDATA[met office]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[supercomputing]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=1967</guid>
		<description><![CDATA[Well not really mine. I do wish that we had bigger ones though. Whilst in the UK I saw a very big one. Yes, at work, I took a peek.
I am not surprised that the &#8220;Super size me&#8221; nation has the biggest and the most. Yes, the US is well endowed. My two sad little [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1967&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Well not really mine. I do wish that we had bigger ones though. Whilst in the UK I saw a very big one. Yes, at work, I took a peek.</p>
<p>I am not surprised that the &#8220;Super size me&#8221; nation has the biggest and the most. Yes, the US is well endowed. My two sad little cores make for adequate performance but I&#8217;m not trying to visualize anything these days.</p>
<p>Yes, the big guns, supercomputing and where is it all happening? To find out, take a look at <a href="http://www.top500.org/">Top 500</a> and try the <a href="http://www.top500.org/overtime/list/33/countries">countries</a> page. We (Australia) are somewhere in the others section. I am always surprised that the UK is so high up.</p>
<p>Scanning the top sites (installations)  and seeing mostly the U.S. and Japan,  it was interesting to see that the site I was working at is currently 24 on the list (Weather forecasting at the Meteorological Office takes some serious <a href="http://www.top500.org/site/systems/1845">grunt</a>).</p>
<p>Now isn&#8217;t Scandinavia a peculiar place. Tiny populations and yet countries like Sweden compete (in so many ways) on a world stage. Cars, mobile phones,&#8230; I think we Australians should pay heed!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/1967/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/1967/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/1967/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/1967/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/1967/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/1967/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/1967/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/1967/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/1967/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/1967/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1967&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/07/08/mine-is-bigger-than-yours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>
	</item>
		<item>
		<title>Groovy gave me piles</title>
		<link>http://lexecorp.com/2009/07/06/groovy-gave-me-piles/</link>
		<comments>http://lexecorp.com/2009/07/06/groovy-gave-me-piles/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 13:21:17 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Software Design, Development & Programming]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[numerical]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=1962</guid>
		<description><![CDATA[If you haven&#8217;t already, make sure to read Bob&#8217;s (@Transentia) massive improvement on the code from my last post. He made a lightly veiled piece of Java code really swing to a Groovy tune! He may also have gotten a little soiled playing with my piles!
Well, using Bob&#8217;s improvements with a little touch up (for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1962&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t already, make sure to read <a href="http://www.transentia.com.au/flatpress/index.php/2009/07/06/the-perils-of-being-a-smarty-pants/">Bob&#8217;s</a> (@Transentia) massive improvement on the code from my last post. He made a lightly veiled piece of Java code really swing to a Groovy tune! He may also have gotten a little soiled playing with my piles!</p>
<p>Well, using Bob&#8217;s improvements with a little touch up (for densities and angles of repose), here&#8217;s a way to find out just how hard it would be to shift the mound of building material dropped on the end of your drive! Or, at least you can say how heavy it is and get someone else to shift it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  .</p>
<pre class="brush: java;">
enum Material {
  CEMENT(131.0F, 45.0F),
  DRYSAND(90.0F, 41.0F),
  WETSAND(118.0F, 26.0F),
  LOOSEGRAVEL(93.0F, 50.0F),
  PACKEDGRAVEL(100.0F, 45.0F),
  CLAY(120.0F, 43.0F)

  Material(D, theta) {
    this.D = D
    this.theta = theta
  }

  def D
  def theta
}

class ConicalPile {
  def m
  def h

  def getWeightPounds() {
    def cT = Math.cos(Math.toRadians(m.theta))
    (Math.PI * h ** 3 * m.D) / (3 * (cT ** 2))
  }

  def getWeightTons() {
    getWeightPounds() / 2000.0F
  }

  @Override
  public String toString() {
    &quot;&quot;&quot;$m
  Weight(pounds): ${String.format(&quot;%.0f&quot;, getWeightPounds())}
  Weight(tons): ${String.format(&quot;%.3f&quot;, getWeightTons())}&quot;&quot;&quot;
  }
}

def testHt = 10.0F
println &quot;At pile height of &quot;+testHt+&quot; foot&quot;
for (Material m : Material.values())
  println new ConicalPile(m: m, h: testHt)
</pre>
<p>which when run gives us something that looks quite reasonable</p>
<pre>
At pile height of 10.0 foot
CEMENT
  Weight(pounds): 274366
  Weight(tons): 137.183
DRYSAND
  Weight(pounds): 165467
  Weight(tons): 82.734
WETSAND
  Weight(pounds): 152964
  Weight(tons): 76.482
LOOSEGRAVEL
  Weight(pounds): 235709
  Weight(tons): 117.855
PACKEDGRAVEL
  Weight(pounds): 209440
  Weight(tons): 104.720
CLAY
  Weight(pounds): 234939
  Weight(tons): 117.469
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/1962/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/1962/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/1962/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1962&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/07/06/groovy-gave-me-piles/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>
	</item>
		<item>
		<title>Groovy coding a pile of dirt</title>
		<link>http://lexecorp.com/2009/07/06/groovy-coding-a-pile-of-dirt/</link>
		<comments>http://lexecorp.com/2009/07/06/groovy-coding-a-pile-of-dirt/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 06:43:44 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Software Design, Development & Programming]]></category>
		<category><![CDATA[cement]]></category>
		<category><![CDATA[dry sand]]></category>
		<category><![CDATA[dynamic scripting]]></category>
		<category><![CDATA[Groovy]]></category>
		<category><![CDATA[material]]></category>
		<category><![CDATA[pile]]></category>
		<category><![CDATA[W = pi h³D / 3 tan²(theta)]]></category>
		<category><![CDATA[weight]]></category>

		<guid isPermaLink="false">http://lexecorp.com/?p=1954</guid>
		<description><![CDATA[Today I was wondering about the weight of a pile of builders raw material, like sand or cement. Specifically what allows us to calculate weight from a mound sat in front of us!
I&#8217;ve been using dynamic scripting for a long time, like Python, Perl, PHP and TCL. But I thought I&#8217;d do this little experiment [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1954&subd=alexlexecorp&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Today I was wondering about the weight of a pile of builders raw material, like sand or cement. Specifically what allows us to calculate weight from a mound sat in front of us!</p>
<p>I&#8217;ve been using dynamic scripting for a long time, like Python, Perl, PHP and TCL. But I thought I&#8217;d do this little experiment with Groovy. I&#8217;ve written FORTRAN in the past for scientific and statistical studies, but the language itself is a dog. The value, the formulas look like the math when embedded in ones code.</p>
<p>Will Groovy look good? Here&#8217;s my code and I think the Math looks just fine. Quick, clear and no fuss, just what a useful experimental language should be. Here&#8217;s the code</p>
<pre class="brush: java;">
// Compute the weight of a pile of build material
//
// NB pile is conical with a natural degree of repose (specific to material)
//
// The formula I use
//     W = pi h³D / 3 tan²(theta)

// or via Mathematica
//     W = 1/3 pi (h^3 D) tan^2(theta)

enum Material { CEMENT, DRYSAND, WETSAND, CLEANGRAVEL, SANDYGRAVEL }

class ConicalPile {
  def h         // height
  def D         // density of Material (pounds per cubic foot)
  def theta     // angle of repose in degrees - this is a known constant(range...)
  def float W   // calculated weight

  ConicalPile(material, height) {

    switch (material) {
      case material.CEMENT:
        D = 131 // equiv to 14.1 kg/m**3
        theta = 45
        break
     case material.DRYSAND: // dry or moist
        D = 90
        theta = 35
        break
     case material.WETSAND:
        D = 118
        theta = 25
        break
     case material.CLEANGRAVEL:
        D = 118
        theta = 37.5 // 35 to 40
        break
     case material.SANDYGRAVEL:
        D = 118
        theta = 27.5 // 25 to 30°
        break                
     default:
        println &quot;UNKNOWN material &quot;
        break
    }

    h = height        
    W = weight()
  }

  private float weight() {    
     // ERMMM the formula says tan, but I use cos
    def radians=theta*(Math.PI/180)
    def cT = Math.cos(radians)
    // println &quot;Math.cos(&quot;+theta+&quot;) == &quot; + Math.cos(radians) // 45deg correct at .707   

    // the recipe       
    W = (Math.PI * h**3 * D) / (3 * (cT**2))
  }

  float getWeightPounds () {
    return W
  }

  float getWeightTons () {
    return W / 2000
  }

  void display() {
    println &quot;Weight = &quot; + String.format(&quot;%.0f&quot;, getWeightPounds()) + &quot; pounds&quot;
    println &quot;Weight = &quot; + String.format(&quot;%.3f&quot;, getWeightTons()) + &quot; tons&quot;
    println &quot;&quot;
  }

}

try {

  def ht = 10; // 10 ft high pile of builders material

  new ConicalPile(Material.CEMENT, ht).display();
  new ConicalPile(Material.DRYSAND, ht).display();

  return 0

} catch (Exception ex) {
  print &quot;ouch&quot;
}
</pre>
<p>Well a 10 ft high pile of cement is</p>
<pre>Weight = 274366 pounds
Weight = 137.183 tons</pre>
<p>and if dry sand</p>
<pre>Weight = 140457 pounds
Weight = 70.228 tons</pre>
<p>or thereabouts <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>[Ed: see the <a href="http://lexecorp.com/2009/07/06/groovy-gave-me-piles/">follow up</a> for a better Groovier version]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexlexecorp.wordpress.com/1954/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexlexecorp.wordpress.com/1954/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexlexecorp.wordpress.com/1954/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexlexecorp.wordpress.com/1954/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexlexecorp.wordpress.com/1954/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexlexecorp.wordpress.com/1954/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexlexecorp.wordpress.com/1954/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexlexecorp.wordpress.com/1954/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexlexecorp.wordpress.com/1954/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexlexecorp.wordpress.com/1954/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lexecorp.com&blog=4178676&post=1954&subd=alexlexecorp&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://lexecorp.com/2009/07/06/groovy-coding-a-pile-of-dirt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">alexlexecorp</media:title>
		</media:content>
	</item>
	</channel>
</rss>