<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Scottyab&#039;s blog &#187; tech</title>
	<atom:link href="http://www.alexander-bown.com/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexander-bown.com</link>
	<description>programming, mobile apps, running and me</description>
	<lastBuildDate>Fri, 30 Sep 2011 20:28:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>findr version 0.1 released</title>
		<link>http://www.alexander-bown.com/2011/02/findr-version-0-1-released/</link>
		<comments>http://www.alexander-bown.com/2011/02/findr-version-0-1-released/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 18:17:46 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[findr]]></category>
		<category><![CDATA[flcikr]]></category>
		<category><![CDATA[marketplace]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=279</guid>
		<description><![CDATA[Finally got around to creating the additional marketplace images and application signing  to publish my first android app findr. It&#8217;s still a beta so expect a few issues. I&#8217;m working on: better storage to cache downloaded data allow saving to SD card better compression when setting as wallpaper Live wallpaper Why not give this a [...]]]></description>
			<content:encoded><![CDATA[<p>Finally got around to creating the additional marketplace images and application signing  to publish my first android app findr.</p>
<p>It&#8217;s still a <strong>beta </strong>so expect a few issues.<a rel="attachment wp-att-280" href="http://www.alexander-bown.com/2011/02/findr-version-0-1-released/findr_mosaic_v2/"><img class="alignright size-medium wp-image-280" title="findr feature graphic mosaic" src="http://www.alexander-bown.com/wp-content/uploads/2011/02/findr_mosaic_v2-300x147.jpg" alt="findr feature graphic mosaic" width="300" height="147" /></a></p>
<p>I&#8217;m working on:</p>
<ul>
<li>better storage to cache downloaded data</li>
<li>allow saving to SD card</li>
<li>better compression when setting as wallpaper</li>
<li>Live wallpaper</li>
</ul>
<p>Why not give this a whirl and resist the 1 star ratings (if you can) and instead post some feedback or feature requests below or tweet me.</p>
<p>Dropbox allows you to sync your files online and across computers. 2GB account is free! <a href="http://db.tt/Tk9RpcD">http://db.tt/Tk9RpcD</a> (Shameless referral alert)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2011/02/findr-version-0-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static code analysis with Rational Software Analyzer</title>
		<link>http://www.alexander-bown.com/2011/02/static-code-analysis-with-rational-software-analyzer/</link>
		<comments>http://www.alexander-bown.com/2011/02/static-code-analysis-with-rational-software-analyzer/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 12:17:16 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[code review]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rad]]></category>
		<category><![CDATA[rational]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=258</guid>
		<description><![CDATA[Reduce the time it takes to complete pier code reviews by getting your team to use a static code analysis tool. If you're using RAD you have one built in. ]]></description>
			<content:encoded><![CDATA[<p>I struggled to find time to preform code reviews around projects and tight deadlines? However I found if you are using <a href="http://www-01.ibm.com/software/awdtools/developer/application/">RAD</a>? then the Analyse tool can help your team be more efficient and reduce the code review time.</p>
<p>There is a cut down version of <a href="http://www-01.ibm.com/software/awdtools/swanalyzer/">Rational Software Analyzer</a> that is integrated into Rational Application Developer (RAD) 7.5 that allows you to improve code quality and decrease the time it takes to perform a code review. Initially you&#8217;ll probably find a fair few items identified, but trust me this reduces as you move forward and start using the analyser as part of your daily routine or even better nightly build. It&#8217;ll also help developers start coding to the same standards.</p>
<p>Our development team took the approach that you don&#8217;t &#8216;have&#8217; to fix all the issues identified in a given project/component, but as a rule you should be running the Software Analyzer on the methods and classes you&#8217;ve created or edited. So if you edit a method with an issue (e.g missing java doc) it is your duty to correct it. If it&#8217;s more complex refactoring we treated on a case by case basis (normally down to experience of the developer). The pros as that all the developers gained more exposure to Java code standard and we were able to tidying some of the older code as we went along rather than a big block of refactoring.</p>
<p>For our first pass analysis I selected the most critical rules plus a few extra around javadoc.  Some might be not be applicable for example there&#8217;s a critical rule states you should check a objects type before casting it, a valid rule indeed however all the RAD generated code in the JSF backing beans breaks this rule, so you&#8217;ll want to ignore it for classes in the pagecode.* package. Example of RAD generated code that breaks the casting analysis check.</p>
<blockquote><p>protected HtmlPanelGrid getNewPremiumdetailsbox1() {<br />
if (newPremiumdetailsbox1 == null) {<br />
newPremiumdetailsbox1 = (HtmlPanelGrid) findComponentInRoot(&#8220;newPremiumdetailsbox1&#8243;);<br />
}<br />
return newPremiumdetailsbox1;<br />
}</p></blockquote>
<p>The idea is that you Analysed your code before submitted for code review and that if you haven&#8217;t fixed the raised issue they should be a comment explaining why. All developers were asked to pay particular attention to the Java Doc rules &#8211; can&#8217;t really think of an excuse for not adhering to those rules?</p>
<p>My only gripe is that Rational Software Analyzer doesn&#8217;t contain explanation of the issue raised? why is not checking an object&#8217;s type before casting just an issue? obvious to some but not others.  This enhanced functionality is included in the standalone paid Rational Software Analyzer product. However found a quick google or question on Stackoverflow explains why certain issues have been flagged.</p>
<p>Here&#8217;s a few screen shots on how to kick it off:</p>
<p>Firstly go to Run &gt; Analysis</p>
<p><a rel="attachment wp-att-254" href="http://www.alexander-bown.com/2011/02/static-code-analysis-with-rational-software-analyzer/pic30191/"><img class="alignnone size-medium wp-image-254" title="Run &gt; Analysis " src="http://www.alexander-bown.com/wp-content/uploads/2011/02/pic30191-300x132.gif" alt="Screenshot of launching the Analysis tool" width="300" height="132" /></a></p>
<p>This will launch the Software Analyzer config window, create a new configuration and import the rule set (or select a predefined one)</p>
<p><a rel="attachment wp-att-257" href="http://www.alexander-bown.com/2011/02/static-code-analysis-with-rational-software-analyzer/pic18007/"><img class="alignnone size-medium wp-image-257" title="Config window" src="http://www.alexander-bown.com/wp-content/uploads/2011/02/pic18007-300x187.gif" alt="Screenshot Config window" width="300" height="187" /></a></p>
<p>Here&#8217;s the rules with there various priority levels these can be edited. Once your happy click Analyse to start.</p>
<p><a rel="attachment wp-att-256" href="http://www.alexander-bown.com/2011/02/static-code-analysis-with-rational-software-analyzer/pic15457/"><img class="alignnone size-medium wp-image-256" title="Code Analysis Rules" src="http://www.alexander-bown.com/wp-content/uploads/2011/02/pic15457-300x153.gif" alt="Screenshot of the Code Analysis Rules" width="300" height="153" /></a></p>
<p>This is what you code will look like after the see the blue underlines and ticks and crosses to the left of the code.</p>
<p><a rel="attachment wp-att-255" href="http://www.alexander-bown.com/2011/02/static-code-analysis-with-rational-software-analyzer/pic11337/"><img class="alignnone size-medium wp-image-255" title="Rules flagged in code" src="http://www.alexander-bown.com/wp-content/uploads/2011/02/pic11337-300x149.gif" alt="screenshot showing the Rules flagged in code" width="300" height="149" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2011/02/static-code-analysis-with-rational-software-analyzer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eclipse update error timeout while reading input stream</title>
		<link>http://www.alexander-bown.com/2011/01/eclipse-update-error-timeout-while-reading-input-stream/</link>
		<comments>http://www.alexander-bown.com/2011/01/eclipse-update-error-timeout-while-reading-input-stream/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 18:55:27 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=181</guid>
		<description><![CDATA[I ran in to this when installing Amazon Web Services SDK in Eclipse 3.6. An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Unable to read repository at http://dy6h6xivkaprj.cloudfront.net/plugins/com.amazonaws.eclipse.sdk_1.1.1.v201012031352.jar. Timeout while reading input stream. The following system properties can be used to adjust the readTimeout, retryAttempts, and closeTimeout org.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=&#60;default:1000&#62; org.eclipse.ecf.provider.filetransfer.retrieve.retryAttempts=&#60;default:30&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I ran in to this when installing Amazon Web Services SDK in Eclipse 3.6.</p>
<p>An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).</p>
<p style="padding-left: 30px;">Unable to read repository at <a href="http://dy6h6xivkaprj.cloudfront.net/plugins/com.amazonaws.eclipse.sdk_1.1.1.v201012031352.jar">http://dy6h6xivkaprj.cloudfront.net/plugins/com.amazonaws.eclipse.sdk_1.1.1.v201012031352.jar</a>.</p>
<p style="padding-left: 30px;">Timeout while reading input stream. The following system properties can be used to adjust the readTimeout, retryAttempts, and closeTimeout</p>
<p style="padding-left: 30px;">org.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=&lt;default:1000&gt;</p>
<p style="padding-left: 30px;">org.eclipse.ecf.provider.filetransfer.retrieve.retryAttempts=&lt;default:30&gt;</p>
<p style="padding-left: 30px;">org.eclipse.ecf.provider.filetransfer.retrieve.closeTimeout=&lt;default:1000&gt;</p>
<p style="padding-left: 30px;">
<p>Pretty good error message it tells you what to change <img src='http://www.alexander-bown.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you haven’t made changes to the eclipse system properties here’s how. Edit the Eclispe.ini and add the readTimeout and closeTimeout settings after -vmargs</p>
<p style="padding-left: 30px;">-vmargs</p>
<p style="padding-left: 30px;">-Dosgi.requiredJavaVersion=1.5</p>
<p style="padding-left: 30px;">-Xms40m</p>
<p style="padding-left: 30px;">-Xmx512m</p>
<p style="padding-left: 30px;"><strong>-Dorg.eclipse.ecf.provider.filetransfer.retrieve.closeTimeout=3000</strong></p>
<p style="padding-left: 30px;"><strong>-Dorg.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=3000</strong></p>
<p>Restart Eclipse, attempt update. Problem solved!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2011/01/eclipse-update-error-timeout-while-reading-input-stream/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>J2EE6 JSP/Servlet Developer Beta results delayed</title>
		<link>http://www.alexander-bown.com/2011/01/j2ee6-jspservlet-developer-beta-results-delayed/</link>
		<comments>http://www.alexander-bown.com/2011/01/j2ee6-jspservlet-developer-beta-results-delayed/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 18:52:29 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=156</guid>
		<description><![CDATA[If like me you&#8217;re eager to get the results of the Beta J2EE6 JSP/Servlet Developer Certified Professional Exam, the results were due end of Dec 2010,  just found out over at the JavaRanch, the results have delayed to mid/end Jan 2011. Hope it&#8217;s worth the wait! Update: results were announced yesterday, I passed!  I&#8217;m now a Oracle Certified [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-157" href="http://www.alexander-bown.com/2011/01/j2ee6-jspservlet-developer-beta-results-delayed/delayed/"><img class="alignright size-medium wp-image-157" title="delayed" src="http://www.alexander-bown.com/wp-content/uploads/2011/01/delayed-300x300.jpg" alt="" width="300" height="300" /></a>If like me you&#8217;re eager to get the results of the Beta<a href="http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=430&amp;p_org_id=28&amp;lang=US"> J2EE6 JSP/Servlet Developer Certified Professional Exam</a>, the results were due end of Dec 2010,  just found out over at the <a href="http://www.coderanch.com/t/520984/java-Web-Component-SCWCD/certification/When-EE-JSP-Servlet-Developer">JavaRanch</a>, the results have delayed to mid/end Jan 2011.</p>
<p>Hope it&#8217;s worth the wait!</p>
<p><strong>Update: results were announced yesterday, I passed!  I&#8217;m now a <span>Oracle Certified Expert, Java Platform, Enterprise Edition 6 JavaServer Pages and Servlet Developer &#8211; it just rolls off the tongue. <img src='http://www.alexander-bown.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  </span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2011/01/j2ee6-jspservlet-developer-beta-results-delayed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virus Protector Scareware</title>
		<link>http://www.alexander-bown.com/2010/09/virus-protector-scareware/</link>
		<comments>http://www.alexander-bown.com/2010/09/virus-protector-scareware/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 06:42:26 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=131</guid>
		<description><![CDATA[My farther in law’s laptop recently contracted the Virus Protector virus/scareware. Virus Protector is one of those fake security programs that uses scare messages to scam the unwary victims to buy their fake product. The scare messages are many, flooding the desktop every few seconds making it unusable. I used the great guide over at malwarehelp.org [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-161" href="http://www.alexander-bown.com/2010/09/virus-protector-scareware/virus-protector-14/"><img class="alignleft size-thumbnail wp-image-161" title="virus-protector" src="http://www.alexander-bown.com/wp-content/uploads/2010/09/virus-protector-14-150x150.gif" alt="" width="150" height="150" /></a>My farther in law’s laptop recently contracted the Virus Protector virus/scareware. Virus Protector is one of those fake security programs that uses scare messages to scam the unwary victims to buy their fake product. The scare messages are many, flooding the desktop every few seconds making it unusable. I used the great guide over at <a href="http://malwarehelp.org" target="_blank">malwarehelp.org</a> to remove it  -&gt; <a href="http://www.malwarehelp.org/virus-protector-removal-2010.html" target="_blank">http://www.malwarehelp.org/virus-protector-removal-2010.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2010/09/virus-protector-scareware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving CVS repository</title>
		<link>http://www.alexander-bown.com/2009/10/moving-cvs-repository/</link>
		<comments>http://www.alexander-bown.com/2009/10/moving-cvs-repository/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:13:05 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[cvsnt]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=106</guid>
		<description><![CDATA[Recently had to move CVS repository to a new server, while I&#8217;m no CVS expert but in the land of the blind! Yadda, yadda, yadda&#8230; so down to me. A couple of googles later and with a sesnse of impending soom I did the following: 1. Stop the CVS service and Lock Service 2. Copy CVS Repo [...]]]></description>
			<content:encoded><![CDATA[<p>Recently had to move CVS repository to a new  server, while I&#8217;m no CVS expert but in the land of the blind! Yadda, yadda, yadda&#8230;  so down to me. A couple of googles later and with a sesnse of impending soom I did the following:</p>
<p><a href="http://www.alexander-bown.com/wp-content/uploads/2009/10/server-move.jpg"><img class="alignleft size-full wp-image-129" title="server-move" src="http://www.alexander-bown.com/wp-content/uploads/2009/10/server-move.jpg" alt="" width="140" height="143" /></a>1. Stop the CVS service and Lock Service</p>
<p>2. Copy CVS Repo folder(s) to the new server</p>
<p>3. Install CVS on the new server – did full installation</p>
<p>4. Replicate the settings of the old server.</p>
<p>5. Add the folder as Repo location. I was able to add the repo location ok, but couldn’t connect <img src='http://www.alexander-bown.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  and when I tried adding a new folder to the repo I got the following error:</p>
<blockquote>
<p style="padding-left: 60px;">cvs init: connect to 127.0.0.1(127.0.0.1):2403 failed: No connection could be made because the target machine actively refused it. cvs [init aborted]: Couldn&#8217;t connect to lock server</p>
</blockquote>
<p>So the server couldn&#8217;t connect to it&#8217;s own lockserver? Hmm… maybe the LockServer service wasn&#8217;t running or firewall interference? I checked both of these but all good. I thought let&#8217;s try stopping the lock server service, that worked! which is weird and the error seemed to say wasn&#8217;t running. Anywho I tried the telnet command again and got the CVSLock 2.0 Ready message so all seemed ok <img src='http://www.alexander-bown.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>TIP:</strong> When on the server, you can check the lock server using telnet try doing a &#8220;telnet localhost 2403&#8243; and see what you get.  It should respond with &#8220;CVSLock 2.0 Ready&#8221; if it&#8217;s working properly.</p>
<p>Note:  I should say I was moving both new and old server were Windows 2003, the versions of CVSNT were the same and the new server had the same name as the old one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2009/10/moving-cvs-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful UML Visio Templates</title>
		<link>http://www.alexander-bown.com/2009/10/useful-uml-visio-templates/</link>
		<comments>http://www.alexander-bown.com/2009/10/useful-uml-visio-templates/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 09:02:04 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[uml]]></category>
		<category><![CDATA[visio]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=95</guid>
		<description><![CDATA[Stumbled accross these Visio templates quite useful! and free The UML stencil for Microsoft Visio supports all symbols of the UML 2.2, specified in OMG UML Superstructure Specification, formal/2009-02-02, as well as all previous versions, UML 2.1, UML 2.0, UML 1.5, UML 1.4, UML 1.3 and UML 1.1. http://www.softwarestencils.com/uml/index.html]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-165" href="http://www.alexander-bown.com/2009/10/useful-uml-visio-templates/uml/"><img class="alignleft size-thumbnail wp-image-165" title="uml" src="http://www.alexander-bown.com/wp-content/uploads/2009/10/uml-150x150.png" alt="" width="150" height="150" /></a>Stumbled accross these Visio templates quite useful! and free</p>
<p>The UML stencil for <a href="http://www.microsoft.com/office/visio">Microsoft Visio</a> supports all symbols of the UML 2.2, specified in OMG UML Superstructure Specification, <a href="http://www.omg.org/spec/UML/2.2/Superstructure/PDF" target="_blank">fo</a>rmal/2009-02-02, as well as all previous versions, UML 2.1, UML 2.0, UML 1.5, UML 1.4, UML 1.3 and UML 1.1.</p>
<p><a href="http://www.softwarestencils.com/uml/index.html#Visio2003">http://www.softwarestencils.com/uml/index.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2009/10/useful-uml-visio-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>my hero!</title>
		<link>http://www.alexander-bown.com/2009/09/my-hero/</link>
		<comments>http://www.alexander-bown.com/2009/09/my-hero/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 20:38:42 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[hero]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[phone]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=113</guid>
		<description><![CDATA[Just a quickie blog post&#8230; my new HTC hero arrived today, yay! Blown away by how within a few minutes of tapping in my google id I fully sync&#8217;d was contacts, calender, and email. It&#8217;s my first touch screen and in portrait mode found the tapping a text message a little awkward. Landscape mode is [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 441px"><img title="hero" src="http://farm4.static.flickr.com/3472/3958391376_1b91d85476.jpg" alt="my Hero" width="431" height="500" /><p class="wp-caption-text">my Hero</p></div>
<p>Just a quickie blog post&#8230; my new HTC hero arrived today, yay!</p>
<p>Blown away by how within a few minutes of tapping in my google id I fully sync&#8217;d was contacts, calender, and email.</p>
<p>It&#8217;s my first touch screen and in portrait mode found the tapping a text message a little awkward. Landscape mode is fine.</p>
<p>Got it from <a href="http://www.mobilephonesdirect.co.uk/Brands/HTC/b509/n443/p18610.aspx">Mobile Phones Direct</a> &#8211; who supply the phones unlocked. They do some decent deals on 12m contract + free car kit. Plus in white which isn&#8217;t  avail on the network i&#8217;m on, Nice!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2009/09/my-hero/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Commons-Logging 1.1 with Log4j on WebSphere 6.0</title>
		<link>http://www.alexander-bown.com/2009/08/using-commons-logging-1-1-with-log4j-on-websphere-6-0/</link>
		<comments>http://www.alexander-bown.com/2009/08/using-commons-logging-1-1-with-log4j-on-websphere-6-0/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 10:42:57 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=72</guid>
		<description><![CDATA[Log4j does seem to work out of the box with Websphere 6 so I cobbled together some tips and advice from the web and wrote this mini guide. It was a couple of years but hopefully be useful to someone. ]]></description>
			<content:encoded><![CDATA[<p>Log4j does seem to work out of the box with Websphere 6 so I cobbled together some tips and advice from the web and wrote this mini guide. It was a  couple of years but hopefully be useful to someone.</p>
<p>WebSphere uses commons-logging and so it&#8217;s in the root classloader. In addition, WebSphere 6.0 ships a commons-logging.properties with the  following properties set:</p>
<blockquote><p>org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl</p>
<div id=":21">org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger</div>
</blockquote>
<div>
Therefore by default the application will use JDK logging and not log4j.  The solution is to ensure that the right classloader mode is set and the  application has an appropriate commons-logging.properties and use the  official released version 1.1 of commons-loggin api:</p>
<p>Set application classloader mode as PARENT_LAST. This can be changed in  eclispes EAR file deployment descriptor menu. This tells websphere to load  the parent files last giving the application files priority. (the parent  being the websphere root)</p>
<p>Also, create a new commons-logging.properties to the application classpath with the following entries:</p></div>
<blockquote>
<div>
priority=1<br />
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl</div>
</blockquote>
<div>
The priority flag was introduced in Commons Logging 1.1 to allow an  ordering based on priority. To ensure that an application&#8217;s  commons-logging.properties will take precedence over WebSphere&#8217;s file, a priority of greater that 0.0 must be set.  I changed mine to 5 (just to be  sure <img src='http://www.alexander-bown.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).</p>
<p>So basically the  commons-logging.properties overrides the one packaged in websphere and returns it to the default logging system which is log4j.</p>
<p>NOTE:  You also have to replace the commons-logging-api.jar that comes  supplied with websphere, because IBM use the API and which doesn&#8217;t contain  the log4j logger implementation. <img src='http://www.alexander-bown.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Replace</p></div>
<div>&lt;Rational Instal  DIR&gt;\Rational\SDP\6.0\runtimes\base_v6\lib\commons-logging-api.jar<br />
With the commons-logging-api.jar downloaded from <a href="http://jakarta.apache.org/site/downloads/downloads_commons-logging.cgi" target="_blank">http://jakarta.apache.org/site/downloads/downloads_commons-logging.cgi</a></p>
<p>You should also import include it in your go to project properties, java  build path and import external jar.  Ensure it&#8217;s imported above the websphere runtime library otherwise it&#8217;ll  read the other one first. You can change the order of the imports in  project prop &gt; java build path &gt; order and export.</p>
<p><strong> LOG4J Config</strong><br />
To configure log4j you&#8217;ll need to create a log4j.propertuies file or a  log4j.xml file. This can be located in the application classpath (same  level as the &#8216;com&#8217; directory). Ideally this should be located outside of  the EAR/WAR file, where it can be easily editing whilst the application is  running without the need to redeploy.</div>
<div>Note: When you build the project both log4j.properties and  commons-logging.properties should be copied to the  WebContent&gt;Web-Inf&gt;Classes</p>
<p>Checklist:</p>
<ul>
<li> Created commons-logging.properties and log4j.properties in java  classpath.</li>
<li> Change application classloader mode as PARENT_LAST</li>
<li> Import the commons-logging 1.1 jar file</li>
<li> Ensure imported jar in imported before Websphere runtime</li>
<li> Clean, Build and redeploy (also restart websphere)</li>
</ul>
<p>More info:<br />
<a href="http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions" target="_blank">http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions</a><br />
<a href="http://www.webagesolutions.com/knowledgebase/waskb/waskb004/index.html" target="_blank">http://www.webagesolutions.com/knowledgebase/waskb/waskb004/index.html</a><br />
<a href="http://www.mobilefish.com/developer/log4j/log4j_quickguide_examples.html" target="_blank">http://www.mobilefish.com/developer/log4j/log4j_quickguide_examples.html</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2009/08/using-commons-logging-1-1-with-log4j-on-websphere-6-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book Review &#8211; Beginning Java EE 6 Platform with GlassFish 3</title>
		<link>http://www.alexander-bown.com/2009/08/book-review-beginning-java-ee-6-platform-with-glassfish-3/</link>
		<comments>http://www.alexander-bown.com/2009/08/book-review-beginning-java-ee-6-platform-with-glassfish-3/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 19:05:35 +0000</pubDate>
		<dc:creator>scottyab</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[book review]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jee]]></category>

		<guid isPermaLink="false">http://www.alexander-bown.com/?p=61</guid>
		<description><![CDATA[Book Review &#8211; Beginning Java EE 6 Platform with GlassFish 3: From Novice to Professional Good for beginners. This is a ideal book for someone starting Java Enterprise Edition (JEE), but also useful for those who want a brief overview of the ne features. It focuses on the changes in version 6 with examples in [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.co.uk/gp/product/1430219548?ie=UTF8&amp;tag=alexbownsyst-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=1430219548"><img class="alignleft" title=" JavaEE6" src="http://ecx.images-amazon.com/images/I/51%2BEOTKiHPL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU02_.jpg" alt="" width="240" height="240" /></a><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><br />
<a href="http://www.amazon.co.uk/gp/product/1430219548?ie=UTF8&amp;tag=alexbownsyst-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=1430219548"> Book Review &#8211; Beginning Java EE 6 Platform with GlassFish 3: From Novice to Professional<br />
</a></p>
<p style="margin-bottom: 0cm;">Good for beginners.</p>
<p style="margin-bottom: 0cm;">This is a ideal book for someone starting Java Enterprise Edition (JEE), but also useful for those who want a brief overview of the ne features. It focuses on the changes in version 6 with examples in Glassfish. It also mentioned some of the significant changes in 5 and gives a good high level overview of the JEE platform in general. It also explains things like persistence layer, and ORM.</p>
<p style="margin-bottom: 0cm;">I&#8217;d recommend it to someone who&#8217;s new(ish) to java and whats to see what JEE/J2EE is all about. It&#8217;s not good as a reference book (but then it&#8217;s not pretending to be one.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexander-bown.com/2009/08/book-review-beginning-java-ee-6-platform-with-glassfish-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

