<?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>#!0 &#187; Java</title>
	<atom:link href="http://blog.hashbang0.com/category/computing/programming/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hashbang0.com</link>
	<description>A blog of life and geekery</description>
	<lastBuildDate>Sun, 25 Jul 2010 02:09:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Apple updates Java!</title>
		<link>http://blog.hashbang0.com/2009/06/15/apple-updates-java/</link>
		<comments>http://blog.hashbang0.com/2009/06/15/apple-updates-java/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 20:44:52 +0000</pubDate>
		<dc:creator>Ben Lavery</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac OS]]></category>

		<guid isPermaLink="false">http://hashbang0.wordpress.com/?p=626</guid>
		<description><![CDATA[Well, we&#8217;ve been waiting, what, about two years for this now.  Today, Apple released Java 6 as part of it&#8217;s Java for Mac OS X 10.5 Update 4. The support docs (found here) say that in this 158MB update we get: Java SE 6 (x64 only) J2SE 5.0 (PPC &#38; x64) J2SE 1.4.2(PPC &#38; x64) [...]]]></description>
			<content:encoded><![CDATA[<p>Well, we&#8217;ve been waiting, what, about two years for this now.  Today, Apple released Java 6 as part of it&#8217;s Java for Mac OS X 10.5 Update 4.</p>
<p>The support docs (found<a href="http://support.apple.com/kb/HT3581"> here</a>) say that in this 158MB update we get:</p>
<ul>
<li>Java SE 6 (x64 only)</li>
<li>J2SE 5.0 (PPC &amp; x64)</li>
<li>J2SE 1.4.2(PPC &amp; x64)</li>
<li>64-bit Java for Intel Macs only</li>
</ul>
<p>Upgrade today as I&#8217;m sure many developers will be wanting to update their code as part of a long awaited refactoring!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hashbang0.com/2009/06/15/apple-updates-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Week Fortyone</title>
		<link>http://blog.hashbang0.com/2009/04/17/sun-week-forty-one/</link>
		<comments>http://blog.hashbang0.com/2009/04/17/sun-week-forty-one/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 12:50:11 +0000</pubDate>
		<dc:creator>Ben Lavery</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[15k]]></category>
		<category><![CDATA[Java email]]></category>
		<category><![CDATA[NIS+]]></category>
		<category><![CDATA[Solaris zones]]></category>
		<category><![CDATA[SunBlade 2000]]></category>
		<category><![CDATA[Ultra 80]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://hashbang0.wordpress.com/?p=562</guid>
		<description><![CDATA[This week starts on Tuesday, Monday being Easter Monday and a day dedicated to getting over a &#8220;chocolate hangover&#8221;, whatever one of those is&#8230; Tuesday started with me trying to figure out how to send an email using Java. But before I sunk my teeth into it, I realised I had promised to change the [...]]]></description>
			<content:encoded><![CDATA[<p>This week starts on Tuesday, Monday being Easter Monday and a day dedicated to getting over a &#8220;chocolate hangover&#8221;, whatever one of those is&#8230;<span id="more-562"></span></p>
<p>Tuesday started with me trying to figure out how to send an email using Java.  But before I sunk my teeth into it, I realised I had promised to change the hardware of the stable zones box for some engineers.<br />
The stable zones box is just a box which is set up to create and test Solaris zones on, the current machine (A <a href="http://sunsolve.sun.com/handbook_pub/Systems/SunBlade2000/images/SunBlade2000.jpg">Sun Blade 2000</a>) was restarting every 24 hours, seemingly this has something to do with Solaris 10 update 5 and above&#8230;.<br />
So I got an <a href="http://sunsolve.sun.com/handbook_pub/Systems/U80/images/U80.gif">Ultra 80</a>, set up the zones stuff and made it ready to take the place of the current zones box.  At 4pm I scheduled some downtime and swapped the boxes, they are heavy things, and powered up the Ultra 80.  I had console access, I had changed the details in NIS+, and I just had to change the hostname, which was easy thanks to <a href="http://forums.devshed.com/unix-help-35/changing-hostname-and-ip-on-solaris-10t-343047.html">this</a> page <img src='http://blog.hashbang0.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
At 5pm an engineer decided he really want to play with domains on the stable <a href="http://sunsolve.sun.com/handbook_pub/Systems/SunFire15K_shared/images/SunFire15K.jpg">15K</a> downstairs, the SC&#8217;s use our production password so I can&#8217;t give him access.  On top of this, the console to the main SC was dead, it wasn&#8217;t allowing SSH or telnet connections and wouldn&#8217;t failover.  I didn&#8217;t have time to look at it, so emailed the guy and left it for Wednesday</p>
<p>Wednesday!  Feels like a normal Wednesday too, yesterday felt very much like two days&#8230;<br />
The morning was spent fixing that 15K, the console wasn&#8217;t broken, someone had consoled from the SC to an inactive domain, so I had to ~. out of that.  After some investigating, it looked like NIS+ wasn&#8217;t running on the machine, this being Solaris 9 I&#8217;ve got no idea&#8230;I&#8217;ll have to grab David or James at some point&#8230;</p>
<p>Gyaaaargh!  It&#8217;s only Thursday <img src='http://blog.hashbang0.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
The morning went slow&#8230;I didn&#8217;t get any development done because an engineer wanted me to move a storage array and kept complaining that it didn&#8217;t work.  In the end it was his fault for not enabling something or other&#8230;<br />
I also got a new email from the guy who I&#8217;m doing this programming for.</p>
<p>FRIDAY!  Not a moment too soon either!<br />
OK, so I&#8217;ve listened to what Rob said in the comments from <a href="http://blog.hashbang0.com/2009/04/09/sun-week-forty/">last weeks entry</a> and started to re-plan things, plus sent an email to the guy I was doing the work for.  He came back saying that he would prefer to stay as we were, with one stored procedure which gathers booking numbers based on some simple input and then punts the booking number to a Java application.  So I&#8217;ve been working at undoing my changes this morning (note to all: don&#8217;t do something then tell someone your thinking about doing it for fear they&#8217;ll say no).<br />
I&#8217;ve gone away from university teachings in as much that I&#8217;m not bothering with reading in files by setting up a file and setting up a stream buffer, etc, instead I&#8217;m using the UNIX cat command, which works quite nicely <img src='http://blog.hashbang0.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
It&#8217;s currently lunchtime and I&#8217;m looking at publishing the blog now I think, I came back early as my yoghurt had separated and was all icky <img src='http://blog.hashbang0.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />     My plan for this afternoon is to finish off my email class which will send the emails and perfect the stored procedures.<br />
I&#8217;ll update this later to say how I got on&#8230;</p>
<p>:wq</p>
<p>*note to self, WordPress does not except Vim key bindings &#8211; FAIL!*</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hashbang0.com/2009/04/17/sun-week-forty-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun &#8211; Week Forty</title>
		<link>http://blog.hashbang0.com/2009/04/09/sun-week-forty/</link>
		<comments>http://blog.hashbang0.com/2009/04/09/sun-week-forty/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 18:38:12 +0000</pubDate>
		<dc:creator>Ben Lavery</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[sybase]]></category>

		<guid isPermaLink="false">http://hashbang0.wordpress.com/?p=556</guid>
		<description><![CDATA[This week I&#8217;m going to try and finish that email script&#8230;A while ago I was assigned the task of writing a module for our booking system. The Problem Engineers can book hardware to escalation numbers (customer cases), however, we know that a number of engineers take advantage of this, and book systems for other, more [...]]]></description>
			<content:encoded><![CDATA[<p>This week I&#8217;m going to try and finish that email script&#8230;A while ago I was assigned the task of writing a module for our booking system.<span id="more-556"></span></p>
<p><span style="text-decoration:underline;"><strong>The Problem</strong></span></p>
<p>Engineers can book hardware to escalation numbers (customer cases), however, we know that a number of engineers take advantage of this, and book systems for other, more personal, uses under the same escalation numbers.<br />
These bookings don&#8217;t end unless:<br />
1) The engineer or a lab team member removes the booking, or<br />
2) The customer case is closed.</p>
<p><strong><span style="text-decoration:underline;">The Solution</span></strong></p>
<p>Create something that will check the database for bookings which have been active for more than X number of days and bug the engineer via email to see if they still need the system.</p>
<p><span style="text-decoration:underline;"><strong>What I&#8217;m doing</strong></span></p>
<p>So, after achieving this once in Perl (*spit*) and it being little good (because we want to trigger it from the database), I gave it another bash:<br />
This time I&#8217;m using a stored procedure (from now on referred to as an SP) which will collect a list of bookings.  This will then run a Java application, passing in the booking number as an argument.  The Java application will then connect to the database again and call another SP which will recover the booking details (I couldn&#8217;t pass them in as arguments as the method of calling external scripts from the database is limited to 255 characters).</p>
<p>This is basically where I am now, at the end of the week.  Next week I&#8217;ll need to find a way to get the Java application to email the user of the system, and maybe look at a better way of passing in a list of booking numbers, as having loads of these processes running could seriously slow things down&#8230;</p>
<p>I will, at some point, blog about connecting to a Sybase database using Java, this should be fairly generic, I just found other documentation for doing this very poor <img src='http://blog.hashbang0.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hashbang0.com/2009/04/09/sun-week-forty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->