<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Cunning</title>
      <link>http://cunning.sharp.fm/</link>
      <description>Put a tail on it, call it a weasel.</description>
      <language>en</language>
      <copyright>Copyright 2010</copyright>
      <lastBuildDate>Wed, 01 Dec 2010 03:33:00 +0200</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=3.21</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>&quot;Find It, Fix It, Move On With Your Life&quot;</title>
         <description><![CDATA[<p>The simple mantra behind troubleshooting and bugfixing.</p>

<p>One of the hardest things about solving a problem is keeping your eye on the problem while a cacophony of distraction whirls around you. People want to tell everybody it isn't their fault. You want to tell everybody that it isn't your fault. Random people will want to find out whose fault it was so that they can be seen to have blamed somebody, as if that constituted a sensible contribution to the issue. These things are luxuries few can afford while the problem remains unsolved.<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2010/12/find_it_fix_it_move_on_with_yo.html</link>
         <guid>http://cunning.sharp.fm/2010/12/find_it_fix_it_move_on_with_yo.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Wed, 01 Dec 2010 03:33:00 +0200</pubDate>
      </item>
            <item>
         <title>JAXB2: Marshalling fails due to validation, but you can&apos;t see the error</title>
         <description><![CDATA[<p>Having used JAXB2 to construct a tree of XML from objects, you try and marshall your objects to XML, only to find you get an Exception telling you your resulting XML has failed validation. But as you cannot see the generated XML, you have no way to see where you've gone wrong.</p>

<p>Stuck?</p>

<p>JAXB2 has a deprecated the <a href="http://java.sun.com/javase/6/docs/api/javax/xml/bind/Validator.html">javax.xml.bind.Validator</a> class, and the person who documented this didn't bother to document the mechanism to replace it.</p>

<p>What I did manage to find was the <a href="http://java.sun.com/javase/6/docs/api/javax/xml/bind/util/ValidationEventCollector.html">javax.xml.bind.util.ValidationEventCollector</a> class, which you can add to your Marshaller object, like this:</p>

<pre>
			ValidationEventCollector collector = new ValidationEventCollector();
			marshaller.setEventHandler(collector);
</pre>

<p>Now the marshaling works! And your errors can be retrieved from ValidationEventCollector, like this:</p>

<pre>
			collector.getEvents();
</pre>

<p>Hopefully this will save someone some pain.<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2009/10/jaxb2_marshalling_fails_due_to.html</link>
         <guid>http://cunning.sharp.fm/2009/10/jaxb2_marshalling_fails_due_to.html</guid>
         <category>Tips and Tricks</category>
         <pubDate>Thu, 15 Oct 2009 00:07:59 +0200</pubDate>
      </item>
            <item>
         <title>Importing private keys into a Java keystore using keytool</title>
         <description><![CDATA[<p>For ages the <a href="http://java.sun.com/javase/6/docs/technotes/tools/windows/keytool.html">keytool</a> application shipped as part of Java could provide all the functionality to generate a private key and certificate sign request from a Java keystore, but the most basic function, importing a preexisting private key and certificate generated externally, remained overlooked.</p>

<p>This is fixed in Java 6, at long last.</p>

<p>The solution is to convert your existing certificate and key into a PKCS12 file, and then use the keytool functionality to merge one keystore with another one. Java 6 can treat a PKCS12 file as a keystore, so putting this together, you get this:</p>

<p><i>keytool -importkeystore -deststorepass changeit -destkeypass changeit -destkeystore my-keystore.jks -srckeystore cert-and-key.p12 -srcstoretype PKCS12 -srcstorepass cert-and-key-password -alias 1</i></p>

<p>The alias of 1 is required to choose the certificate in the source PKCS12 file, keytool isn't clever enough to figure out which certificate you want in a store containing one certificate.</p>

<p>At last, it works.<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2008/06/importing_private_keys_into_a.html</link>
         <guid>http://cunning.sharp.fm/2008/06/importing_private_keys_into_a.html</guid>
         <category>Tips and Tricks</category>
         <pubDate>Sat, 07 Jun 2008 21:22:17 +0200</pubDate>
      </item>
            <item>
         <title>At Last, A Wireless Bandwidth Solution</title>
         <description><![CDATA[<p>Wow!</p>

<p>At last, a solution to wifi bandwidth problems. It's the <a href="http://www.j-walk.com/other/wifispray/">Wifi Speed Spray</a>!</p>

<p>Why was this never thought of before?<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2008/03/at_last_a_wireless_bandwidth_s.html</link>
         <guid>http://cunning.sharp.fm/2008/03/at_last_a_wireless_bandwidth_s.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Thu, 20 Mar 2008 17:16:06 +0200</pubDate>
      </item>
            <item>
         <title>Spot the Difference</title>
         <description><![CDATA[<p>If you are looking for a reason to spend the dosh and get a film image drum scanned, here is what you get for your money.</p>

<p><img src="http://cunning.sharp.fm/images/flower-coolscan.jpg" width="180" height="120" /> <img src="http://cunning.sharp.fm/images/flower-flextight.jpg" width="180" height="120" /></p>

<p>Can you spot the difference?<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2007/11/spot_the_difference.html</link>
         <guid>http://cunning.sharp.fm/2007/11/spot_the_difference.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Sat, 24 Nov 2007 16:14:54 +0200</pubDate>
      </item>
            <item>
         <title>Jaw dropping WOWvx</title>
         <description><![CDATA[<p>Walking down one of the side aisles at <a href="http://www.ibc.org">IBC</a> I noticed something hovering in front of a screen. IBC is an event crammed with HD screens and other yummy goodies, and this screen didn't look outwardly any different to the others: A Philips badge bottom centre, and a 3 dimensional picture hovering in front of it.</p>

<p>No really, real 3D, promise.</p>

<p>I did one serious double take and can honestly say I was blown away.</p>

<p>At the entrance to one of the display areas they were showing off a multi screen display, and this photo completely fails to do it justice:</p>

<p><img alt="philips-wowvx.jpg" src="http://cunning.sharp.fm/images/philips-wowvx.jpg" width="400" height="300" /></p>

<p>Philips calls it <a href="http://www.wowvx.com/">WOWvx</a>.<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2007/09/jaw_dropping_wowvx.html</link>
         <guid>http://cunning.sharp.fm/2007/09/jaw_dropping_wowvx.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Mon, 17 Sep 2007 02:02:45 +0200</pubDate>
      </item>
            <item>
         <title>Apple Solves the iPod Dilemma</title>
         <description><![CDATA[<p>The iPod is an amazing machine. It works like humans would expect it to work, and it does so for a long time. And they sell like hotcakes.</p>

<p>The only issue left remaining for me was the annoyance of carrying around two portable handheld devices - an iPod, and a mobile phone.</p>

<p>At some point though <a href="http://www.nokia.com">Nokia</a> and <a href="http://www.sonyericsson.com">Sony Ericsson</a> were destined to absorb the iPod's features, and potentially offer a phone that would become sole occupant of the wearer's pocket.</p>

<p>Or <a href="http://www.apple.com">Apple</a> could have released a mobile phone of their own.</p>

<p>And they <a href="http://www.apple.com/iphone/">just did</a>.</p>

<p><a href="http://www.apple.com/iphone/technology/"><img src="http://images.apple.com/iphone/images/techhero_specs20070109.jpg" width="400" height="433" border="0" /></a></p>

<p><i>Image source: http://www.apple.com/iphone/technology/specs.html</i><br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2007/01/apple_solves_the_ipod_dilemma_1.html</link>
         <guid>http://cunning.sharp.fm/2007/01/apple_solves_the_ipod_dilemma_1.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Wed, 10 Jan 2007 00:38:23 +0200</pubDate>
      </item>
            <item>
         <title>Apache Harmony</title>
         <description><![CDATA[<p>In the middle of 2005, the <a href="http://incubator.apache.org/projects/harmony.html">Apache Harmony</a> project was started in the Apache Incubator, amidst a flurry of discussion and speculation.</p>

<p>Simply put, Harmony wants to build a <a href="http://java.sun.com">Java JVM</a>, a faster and more modular drop in replacement for the existing JVM's released by <a href="http://www.sun.com">Sun</a>, <a href="http://www.ibm.com">IBM</a> and <a href="http://www.bea.com">BEA</a>.</p>

<p>Following the announcement of the project's beginnings, what followed was one of the most intense discussions on any open source project ever, and questions were raised as to whether it was all just talk, and no actual code. Slowly the noise died down, and Harmony plodded on.</p>

<p>Earlier today, I attended a talk by Geir Magnussen at <a href="http://www.apachecon.com">ApacheCon 2006</a> where a summary was given of the project so far, and to be honest I am blown away.<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2006/10/apache_harmony.html</link>
         <guid>http://cunning.sharp.fm/2006/10/apache_harmony.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Thu, 12 Oct 2006 02:10:43 +0200</pubDate>
      </item>
            <item>
         <title>HD is King</title>
         <description><![CDATA[<p>Or so you would believe from this year's <a href="http://www.ibc.org">IBC exhibition</a> in Amsterdam.</p>

<p>Today I got to get the real work done. I got to see the new HD set top boxes from <a href="http://www.aminocom.com">Amino</a>, and I managed to get hold of the last pieces of the IPTV puzzle we have been building.</p>

<p>The real bling for me was the ranges of camera equipment being shown by <a href="http://www.sony.com">Sony</a> and <a href="http://www.grassvalley.com">Grass Valley</a>. They had both set up and lit a complex set, with each camera showing the resulting HD above it. The crispness of detail in the HD pictures was stunning.</p>

<p>More fun stuff was the HD virtual set being being shown off by <a href="http://www.orad.tv">Orad</a>, called Proset. They demonstrated their system live, with a news presenter in a combination real and chroma key studio, inserting all the graphics that are usually seen overlaid on top of the screen into the scene itself. The cameras were free moving, but motion tracked using sensors on the cameras and in the studio. TV graphics are cheesy at best though, now the cheese is part of the set.</p>

<p>The big showcase of the day however was the screening of <a href="http://disney.go.com/disneypictures/pirates/">Pirates of the Caribbean, Dead Man's Chest</a> on a <a href="http://www.christiedigital.com/">Christie 2K DLP Cinema</a> projection system. Digital cinema technology, being called D Cinema, has come about in response to the rise of HD, and as a solution to the high cost of film print distribution. The 2K refers to the number of lines on the screen. It was impressive stuff. The only flaw I picked up that may have been caused by the projector, was that the end credits didn't scroll smoothly for some reason - there seemed to be a slight amount of jitter. Still, at data rates of 250Mbps, D Cinema is impressive.<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2006/09/hd_is_king.html</link>
         <guid>http://cunning.sharp.fm/2006/09/hd_is_king.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Mon, 11 Sep 2006 00:01:53 +0200</pubDate>
      </item>
            <item>
         <title>SD Must Die</title>
         <description><![CDATA[<p>I have about a day and a half to take in the <a href="http://www.ibc.org">IBC exhibition</a> in Amsterdam, and half a day in, my feet want to fall off.</p>

<p>Today's goal was to find where the major players were exhibiting, and what they were showing off, but first - you noticed what they weren't showing off - SD was nowhere to be seen. Actually I found one plasma at a stand, showing a grainy version of ESPN, but that was it.</p>

<p>In short, HD is king.<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2006/09/sd_must_die.html</link>
         <guid>http://cunning.sharp.fm/2006/09/sd_must_die.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Sat, 09 Sep 2006 21:04:18 +0200</pubDate>
      </item>
            <item>
         <title>The Danger of Knowledge</title>
         <description><![CDATA[<p>So, is your technical or engineering team a fountain of knowledge? Have an answer for every question? Can they blind you with science? Confident in their abilities?</p>

<p>Damn right they are, that's what you're paying them for, isn't it?</p>

<p>Does your technical or engineering team revisit what they know? Continually add to that knowledge with new research? Do they challenge conventional wisdom? Do they take note of what their competitors are doing in the marketplace, and are they ready with a response in good time?</p>

<p>Are you sure?</p>

<p>This is a cautionary tale.<br />
</p>]]></description>
         <link>http://cunning.sharp.fm/2006/09/the_danger_of_knowledge.html</link>
         <guid>http://cunning.sharp.fm/2006/09/the_danger_of_knowledge.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Sat, 02 Sep 2006 17:37:35 +0200</pubDate>
      </item>
            <item>
         <title>A Tale of Two Interviews</title>
         <description><![CDATA[<p>As a contractor, the purpose behind your work is to put yourself out of a job - job done, you move on to the next project. It keeps life interesting, you have to stay on your toes, and you end up doing a few interviews.</p>

<p>Interviews, I have had all kinds, but this last week I had two that were polar opposites of each other, one where the interviewers did everything right, the second where they did everything wrong.</p>]]></description>
         <link>http://cunning.sharp.fm/2006/06/a_tale_of_two_interviews.html</link>
         <guid>http://cunning.sharp.fm/2006/06/a_tale_of_two_interviews.html</guid>
         <category>From the General Observation Department...</category>
         <pubDate>Sat, 17 Jun 2006 15:38:00 +0200</pubDate>
      </item>
      
   </channel>
</rss>

