<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Nino Martinez's Weblog</title>
	<atom:link href="http://ninomartinez.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ninomartinez.wordpress.com</link>
	<description>TechBlog about Wicket, Persistence, IOC and Java</description>
	<lastBuildDate>Fri, 23 Oct 2009 11:44:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ninomartinez.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/f50635bf13260748af83a485cc5425f4?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Nino Martinez's Weblog</title>
		<link>http://ninomartinez.wordpress.com</link>
	</image>
			<item>
		<title>Cleaning Code Practically Episode 1</title>
		<link>http://ninomartinez.wordpress.com/2009/10/08/cleaning-code-practically-episode-1/</link>
		<comments>http://ninomartinez.wordpress.com/2009/10/08/cleaning-code-practically-episode-1/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 18:27:01 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[Code Care]]></category>
		<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=222</guid>
		<description><![CDATA[Last Øredev I were at a presentation done by Robert Martin, author of the book Clean Code. I were really impressed by what his message where. So we are trying to follow his word at work and today a topic came up. So a colleague had this code:

public String getRequestString() throws MQException {
 String request [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=222&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Last Øredev I were at a presentation done by <a href="http://www.objectmentor.com/omTeam/martin_r.html">Robert Martin</a>, author of the book Clean Code. I were really impressed by what his message where. So we are trying to follow his word at work and today a topic came up. So a colleague had this code:</p>
<p><code><br />
public String getRequestString() throws MQException {<br />
 String request = "";<br />
 request += Helper.leftRightFilled(true, String.valueOf(getSessionNumberAndIncreaseIt()), '0', 3);<br />
 request += Helper.leftRightFilled(true, getVersion(), '0', 3);<br />
 request += Helper.leftRightFilled(true, getTransaction(), 'X', 4);<br />
 request += Helper.leftRightFilled(true, getLanguage(), 'X', 2);<br />
 request += Helper.leftRightFilled(true, getCallersPhoneNumber(), '0',16);<br />
 request += Helper.leftRightFilled(false, dynamicSettingMQ.getCustomerNumber(), ' ', 16);<br />
 request += Helper.leftRightFilled(true, String.valueOf(dynamicSettingMQ.getNumberOfUnsucceededCalls()), '0', 3);<br />
 return request;<br />
}<br />
</code></p>
<p>I intermediately though that could be more readable, so I just pushed a lot into functions, and did a little to the helper class:<br />
<code><br />
public String getRequestString() throws MQException {<br />
 String request = "";<br />
 request += createSessionNumberString();<br />
 request += createVersionString();<br />
 request += createTransactionString();<br />
 request += createLanguageString();<br />
 request += createCallersPhoneNumberString();<br />
 request += createCustomerNumberString();<br />
 request += createNumberOfUnsucceededCallsString();<br />
 return request;<br />
}<br />
protected String createCallersPhoneNumberString() throws MQException {<br />
 return Helper.leftRightFilled(true, getCallersPhoneNumber(), '0', 16);<br />
}<br />
protected String createCustomerNumberString() throws MQException {<br />
 return Helper.leftRightFilled(false, dynamicSettingMQ.getCustomerNumber(), ' ', 16);<br />
}<br />
protected String createLanguageString() throws MQException {<br />
 return Helper.leftRightFilled(true, getLanguage(), 'X', 2);<br />
}<br />
protected String createNumberOfUnsucceededCallsString() throws MQException {<br />
 return Helper.leftRightFilled(true, dynamicSettingMQ.getNumberOfUnsucceededCalls(), '0', 3);<br />
}<br />
protected String createSessionNumberString() throws MQException {<br />
 return Helper.leftRightFilled(true, getSessionNumberAndIncreaseIt(),'0', 3);<br />
}<br />
protected String createTransactionString() throws MQException {<br />
 return Helper.leftRightFilled(true, getTransaction(), 'X', 4);<br />
}<br />
protected String createVersionString() throws MQException {<br />
 return Helper.leftRightFilled(true, getVersion(), '0', 3);<br />
}<br />
}<br />
</code></p>
<p>At first the colleague thought it was nice, but then remembered he really needed a overview of locations used in the string manipulation. So a thing between the two are needed:<br />
<code><br />
public String getRequestString() throws MQException {<br />
 String request = "";<br />
 request += createSessionNumberString('0', 3);<br />
 request += createVersionString('0', 3);<br />
 request += createTransactionString('X', 4);<br />
 request += createLanguageString('X', 2);<br />
 request += createCallersPhoneNumberString('0', 16);<br />
 request += createCustomerNumberString(' ', 16);<br />
 request += createNumberOfUnsucceededCallsString('0', 3);<br />
 return request;<br />
}<br />
protected String createCallersPhoneNumberString(char fillWith, int length) throws MQException {<br />
 return Helper.leftRightFilled(true, getCallersPhoneNumber(), fillWith,length);<br />
}<br />
protected String createCustomerNumberString(char fillWith, int length) throws MQException {<br />
 return Helper.leftRightFilled(false, dynamicSettingMQ.getCustomerNumber(), fillWith,length);<br />
}<br />
protected String createLanguageString(char fillWith, int length) throws MQException {<br />
 return Helper.leftRightFilled(true, getLanguage(), fillWith,length);<br />
}<br />
protected String createNumberOfUnsucceededCallsString(char fillWith, int length) throws MQException {<br />
 return Helper.leftRightFilled(true, dynamicSettingMQ.getNumberOfUnsucceededCalls(), fillWith,length);<br />
}<br />
protected String createSessionNumberString(char fillWith, int length) throws MQException {<br />
 return Helper.leftRightFilled(true, getSessionNumberAndIncreaseIt(),fillWith,length);<br />
}<br />
protected String createTransactionString(char fillWith, int length) throws MQException {<br />
 return Helper.leftRightFilled(true, getTransaction(), fillWith,length);<br />
}<br />
protected String createVersionString(char fillWith, int length) throws MQException {<br />
 return Helper.leftRightFilled(true, getVersion(), fillWith, length);<br />
}<br />
</code></p>
<p>Im not satisfied, but not sure it can be done more clean? And if you are wondering about why we are doing all this string manipulation, we are working with some legacy MQ. If we split up the code without parameters as above we lose the quick overview.. But could the code be simplified even more please come with your suggestion..</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/222/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=222&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2009/10/08/cleaning-code-practically-episode-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse 3.2 And Subversive</title>
		<link>http://ninomartinez.wordpress.com/2009/07/03/eclipse-3-2-and-subversive/</link>
		<comments>http://ninomartinez.wordpress.com/2009/07/03/eclipse-3-2-and-subversive/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 20:47:39 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[Nortel SCE]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=213</guid>
		<description><![CDATA[Seems like gremlins in my machine, first time we at work did a branch the branch received changes from trunk. But did not push stuff back to trunk. Merging was simple since the branch always was up to date with trunk and only had a few changes..
Some time passed and we tried doing a new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=213&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Seems like gremlins in my machine, first time we at work did a branch the branch received changes from trunk. But did not push stuff back to trunk. Merging was simple since the branch always was up to date with trunk and only had a few changes..</p>
<p>Some time passed and we tried doing a new branch, a few problems, but at last we finally made the branch. Worked with it, but now subversive and tortoise refuses to merge the branch back again! I&#8217;ve tried a million things. In the end I checked out trunk removed the affected parts and added the ones from the branch and commitet those again. Just to get our system into working order..</p>
<p>My primary suspicion now are that doing branches are very affected by which svn provider you chose, nothings confirmed, but I know we&#8217;ve switched providers since the first successful branching.</p>
<p>Any other experiencing troubles with this ancient version of eclipse &amp; subversive?</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/213/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=213&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2009/07/03/eclipse-3-2-and-subversive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>
	</item>
		<item>
		<title>WicketStuff Artwork new release</title>
		<link>http://ninomartinez.wordpress.com/2009/05/26/wicketstuff-artwork-new-release/</link>
		<comments>http://ninomartinez.wordpress.com/2009/05/26/wicketstuff-artwork-new-release/#comments</comments>
		<pubDate>Tue, 26 May 2009 18:25:11 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=204</guid>
		<description><![CDATA[Ever tired of using endless hours of css&#8217;ing just to find out that what you did breaks in IE.. WicketStuff Artwork is all about making your wicket site turn into art, easy. It&#8217;s a package consisting of two modules

Liquid
NiftyCornersCube

Both modules will let you do round corners on containers simple and easy, just add a behavior [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=204&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Ever tired of using endless hours of css&#8217;ing just to find out that what you did breaks in IE.. WicketStuff Artwork is all about making your wicket site turn into art, easy. It&#8217;s a package consisting of two modules</p>
<ol>
<li>Liquid</li>
<li>NiftyCornersCube</li>
</ol>
<p>Both modules will let you do round corners on containers simple and easy, just add a behavior to your wicket component or your page and thats it.<br />
Liquid will let you do all sorts of advanced stuff with your markup containers, for example add a shadowed border, see this screenshot:<br />
<div id="attachment_205" class="wp-caption aligncenter" style="width: 510px"><img src="http://ninomartinez.files.wordpress.com/2009/05/artworkliquid.png?w=500&#038;h=240" alt="Liquid Examples" title="Artworkliquid" width="500" height="240" class="size-medium wp-image-205" /><p class="wp-caption-text">Liquid Examples</p></div></p>
<p>NiftyCornersCube are really quick to render and requires less cpu processing so it has some advantages but are also very limited in effects. See here:<br />
<div id="attachment_206" class="wp-caption aligncenter" style="width: 510px"><img src="http://ninomartinez.files.wordpress.com/2009/05/artworknifty.png?w=500&#038;h=240" alt="Nifty Examples" title="ArtworkNifty" width="500" height="240" class="size-medium wp-image-206" /><p class="wp-caption-text">Nifty Examples</p></div></p>
<p>You can grab the latest snapshot release here:<br />
http://wicketstuff.org/maven/repository/org/wicketstuff/artwork/1.4-SNAPSHOT/</p>
<p>And see howto checkout the examples here:<br />
http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki</p>
<p>Basically it&#8217;s just this svn url:<br />
http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork-examples<br />
But you should check out the whole wicketstuff core in order to build dependencies.</p>
<p>Now please come with more ideas and JS libs to add to the Artwork package <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I want to see some comments on how to improve it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards Nino</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=204&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2009/05/26/wicketstuff-artwork-new-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>

		<media:content url="http://ninomartinez.files.wordpress.com/2009/05/artworkliquid.png?w=500" medium="image">
			<media:title type="html">Artworkliquid</media:title>
		</media:content>

		<media:content url="http://ninomartinez.files.wordpress.com/2009/05/artworknifty.png?w=500" medium="image">
			<media:title type="html">ArtworkNifty</media:title>
		</media:content>
	</item>
		<item>
		<title>Cloning Ubuntu installation</title>
		<link>http://ninomartinez.wordpress.com/2009/04/26/cloning-ubuntu-installation/</link>
		<comments>http://ninomartinez.wordpress.com/2009/04/26/cloning-ubuntu-installation/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 13:22:51 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=200</guid>
		<description><![CDATA[Hi you might want to upgrade your disk from time to time, so you either need to clone or ghost it. Heres how I do it.
First prepare the disk with the GUI tool gparted. I like to have a few partitions, one for winblows, one for winblows games, one for ubuntu and one ext3 for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=200&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hi you might want to upgrade your disk from time to time, so you either need to clone or ghost it. Heres how I do it.</p>
<p>First prepare the disk with the GUI tool gparted. I like to have a few partitions, one for winblows, one for winblows games, one for ubuntu and one ext3 for storage.</p>
<p>Then copy your system (remember not to have too many apps open at this time wierd stuff could happen once you start up the other disk)<br />
Open a terminal and write:<br />
<code><br />
sudo rsync -a -x  --exclude /media/newdisk / /media/newdisk<br />
</code><br />
Make grub active on the new disc, in the same terminal or another write:<br />
<code><br />
grub&gt; setup (hd0) (hd0,0)<br />
</code><br />
Which installs grub into the MBR of hd0 (hda) using the boot files that were already in /boot on hd0,0 (hda1).</p>
<p>Now you can do <code>"kernel (hd0,"</code> and then tab in the grub command line to find partitions. Once you identify your drive you should also be able to do the math for the partition.</p>
<p>Okay almost done, now we have to go edit the grub menu.list located under the /boot folder of the new disk, ubuntu are using uuids to identify partitions. So it&#8217;s time to open gparted again, remember that we did it the last time from a terminal, we do the same thing again &#8220;sudo gparted&#8221;, and find the partition where you copied the system to and then right click and press info now theres a field called uuid, copy paste those into the appropriate of the menulist like here :</p>
<p><strong>example</strong><br />
<code><br />
title		Ubuntu 9.04, kernel 2.6.28-11-generic<br />
uuid		49753240-3c10-4fdb-a624-6b07b5071d09<br />
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=49753240-3c10-4fdb-a624-6b07b5071d09 ro quiet splash<br />
initrd		/boot/initrd.img-2.6.28-11-generic<br />
quiet</p>
<p>title		Windows XP Home<br />
uuid		4D9D89C529CA8435<br />
makeactive<br />
chainloader	+1<br />
</code></p>
<p>So before wiping the old disk I suggest that you try booting the new one, just in case something went wrong. I had no troubles with it, but it&#8217;s always nice to have a backup.. Most motherboards today have a option to boot from different disks.</p>
<p>I&#8217;ve used this blog here as source http://encodable.com/tech/blog/2006/10/30/Ubuntu_Linux_Hard_Drive_Upgrade<br />
as well as this one  http://samuelcheng.wordpress.com/2009/02/04/transferring-ubuntu-to-new-harddrive/</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=200&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2009/04/26/cloning-ubuntu-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>
	</item>
		<item>
		<title>Adjust Webcam settings ubuntu</title>
		<link>http://ninomartinez.wordpress.com/2009/04/08/adjust-webcam-settings-ubuntu/</link>
		<comments>http://ninomartinez.wordpress.com/2009/04/08/adjust-webcam-settings-ubuntu/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 08:02:58 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=196</guid>
		<description><![CDATA[My solution was to run this small tool :

luvcview -f yuv -l

I have a creative live im ultra.. Works like a charm.. Now if I could only get my twin display working when I play games!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=196&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My solution was to run this small tool :<br />
<code><br />
luvcview -f yuv -l<br />
</code></p>
<p>I have a creative live im ultra.. Works like a charm.. Now if I could only get my twin display working when I play games!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=196&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2009/04/08/adjust-webcam-settings-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>
	</item>
		<item>
		<title>Integration Testing With Nortel SCE / Part 1</title>
		<link>http://ninomartinez.wordpress.com/2009/04/03/integration-testing-with-nortel-sce-part-1/</link>
		<comments>http://ninomartinez.wordpress.com/2009/04/03/integration-testing-with-nortel-sce-part-1/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 11:34:05 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[Nortel SCE]]></category>
		<category><![CDATA[VoiceXml]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=181</guid>
		<description><![CDATA[So you are developing with the Nortel SCE and want todo integration testing. Theres no support for it in the framework itself. So we think and think. The SCE communicates via voicexml or VXML towards the MPS. This happens over http protocol, that means the we can use Jmeter to sniff the communication between MPS [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=181&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So you are developing with the Nortel SCE and want todo integration testing. Theres no support for it in the framework itself. So we think and think. The SCE communicates via voicexml or VXML towards the MPS. This happens over http protocol, that means the we can use <a href="http://jakarta.apache.org/jmeter">Jmeter</a> to sniff the communication between MPS and SCE (JBOSS / struts). So in practice to make this work you need to setup the http proxy on jmeter and then go into the SBClient.cfg located here : C:\Program Files\Nortel Networks\SelfService\PERIvxml\config\ on a standard installation , edit these two lines:</p>
<p><code><br />
client.inet.proxyServer			VXIString	localhost<br />
client.inet.proxyPort			VXIInteger	9000<br />
</code><br />
Proxy server are the machine where you have jmeter running and port are the one you specified when setting up the proxy, id recommend using 9000 since the default 8080 clashes with the SCE Jboss port. After changing the parameters you need to restart the MPS service.</p>
<p>So there are two was of recording, on your local machine using the mock interface provided with SCE / eclipse ( execution view / WVADS ). Or on your test facility where you actually can dial in as normal, and record the scenarios. Just remember when you end Jmeter the proxy goes down aswell, meaning the MPS &amp; SCE can no longer communicate, just comment out the 2 lines in sbclient.cfg to get it working again.</p>
<h3>Tips</h3>
<ol>
<li>Remember to switch recording controller in jmeter between scenarios. And one more thing this will only record the dialog between SCE and MPS, not the audio server.</li>
<li>If you add appropriate listeners to your jmeter scenario when you replay you can even see the vxml responses.</li>
</ol>
<p>Heres how a scenario from a very simple application looks (Just playing a couple of prompts):<br />
<div id="attachment_186" class="wp-caption alignnone" style="width: 490px"><img src="http://ninomartinez.files.wordpress.com/2009/04/jmeterscreen01.jpg?w=480&#038;h=327" alt="SCE Jmeter Scenario" title="jmeterscreen01" width="480" height="327" class="size-medium wp-image-186" /><p class="wp-caption-text">SCE Jmeter Scenario</p></div></p>
<p>After recording the scenarios they can now be replayed at wish for example as part of integration test. In the next part I&#8217;ll try to digest howto put in test coverage with coberatura, so we get some metrics on how much of our code actually are tested with this approach. Now sadly since SCE does a lot of auto generation I think the process will be partially manual, so we cannot employ a building server like Hudson for this:( If you have any ideas on howto run the SCE auto generation as a MOJO from maven or something please do not hesitate to write. As always comments are more than welcome <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you are new to jmeter you can read more here, <a href="http://jakarta.apache.org/jmeter/index.html">Jmeter site</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=181&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2009/04/03/integration-testing-with-nortel-sce-part-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>

		<media:content url="http://ninomartinez.files.wordpress.com/2009/04/jmeterscreen01.jpg?w=480" medium="image">
			<media:title type="html">jmeterscreen01</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache Wicket Merchandise</title>
		<link>http://ninomartinez.wordpress.com/2009/02/19/apache-wicket-merchandise-shop/</link>
		<comments>http://ninomartinez.wordpress.com/2009/02/19/apache-wicket-merchandise-shop/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 13:01:18 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wicket]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=169</guid>
		<description><![CDATA[In late 2008 I got the permission (by signing a contract) from ASF to create and run a Webshop that sells Wicket Merchandise, the shop donates 5% of profit to ASF the rest goes to the Wicket community. If you want to buy some merchandise go here http://www.cafepress.com/apachewicket .

The Apache Wicket Merchandise Shop has awarded [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=169&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In late 2008 I got the permission (by signing a contract) from ASF to create and run a Webshop that sells Wicket Merchandise, the shop donates 5% of profit to ASF the rest goes to the Wicket community. If you want to buy some merchandise go here http://www.cafepress.com/apachewicket .</p>
<h3>
The Apache Wicket Merchandise Shop has awarded these people:<br />
</h3>
<ul>
<li>2009 &#8211; Jeremy Thomerson , for his work organizing wicketstuff core, he got golf t-shirt ( http://www.cafepress.com/apachewicket.317295373 )</li>
<li>2009 &#8211; Daan van Etten , for creating the grapichs for the merchandise, he got the mug ( http://www.cafepress.com/apachewicket.317295372 )</li>
</ul>
<p>The idea are to continue to use profits to award people that has done something special for the wicket community, like Wicket committers or WicketStuff committers etc.</p>
<p>If you have someone that you would like to nominate to receive some merchandise please write it as a comment here, please write a few lines why and if you have contact information you can mail it too me. I&#8217;ll add them to the vote list.</p>
<a name="pd_a_1383451"></a><div class="PDS_Poll" id="PDI_container1383451" style="display:inline-block;"></div><script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/1383451.js"></script>
		<noscript>
		<a href="http://answers.polldaddy.com/poll/1383451/">View This Poll</a><br/><span style="font-size:10px;"><a href="http://www.polldaddy.com">survey software</a></span>
		</noscript>
<p>regards Nino</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=169&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2009/02/19/apache-wicket-merchandise-shop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>
	</item>
		<item>
		<title>Wicket continues to impress me</title>
		<link>http://ninomartinez.wordpress.com/2008/12/11/wicket-never-stops-to-impress-me/</link>
		<comments>http://ninomartinez.wordpress.com/2008/12/11/wicket-never-stops-to-impress-me/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 09:07:31 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[test]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wicket]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=153</guid>
		<description><![CDATA[So I wanted to put in a conditional css thing to fix a IE problem, todo this thing in wicket I just though up a way. And wrote the code, it just worked:)
Heres how:
Markup (in head):

		*style wicket:id="ieStyle" type="text/css"*
		*/style*

A simple webmarkupcontainer, to put in the hack (with a resource reference)::

		add(new WebMarkupContainer("ieStyle"){
			@Override
			protected void onComponentTagBody(MarkupStream markupStream,
					ComponentTag openTag) {
				super.onComponentTagBody(markupStream, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=153&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So I wanted to put in a conditional css thing to fix a IE problem, todo this thing in wicket I just though up a way. And wrote the code, it just worked:)</p>
<p>Heres how:<br />
<strong>Markup (in head):</strong><br />
<code><br />
		*style wicket:id="ieStyle" type="text/css"*</p>
<p>		*/style*</p>
<p></code><br />
<strong>A simple webmarkupcontainer, to put in the hack (with a resource reference)::</strong><br />
<code><br />
		add(new WebMarkupContainer("ieStyle"){</p>
<p>			@Override<br />
			protected void onComponentTagBody(MarkupStream markupStream,<br />
					ComponentTag openTag) {<br />
				super.onComponentTagBody(markupStream, openTag);<br />
				String csshoverurl=urlFor(new ResourceReference(BasePage.class,"csshover2.htc")).toString();<br />
				getResponse().write("" +<br />
						"body {" +<br />
						"behavior: url("+csshoverurl+");" +<br />
								"}");</p>
<p>			}</p>
<p>		}<br />
</code><br />
<strong>And to finish it up make it conditional so only IE picks it up, by adding a behavior:</strong><br />
<code><br />
public class IECheckBehaviorBehavior extends  AbstractBehavior {<br />
	    public IECheckBehaviorBehavior() {<br />
	    }<br />
		@Override<br />
		public void beforeRender(Component component) {<br />
			super.beforeRender(component);<br />
			Response response = component.getResponse();<br />
			response.write("*!--[if lt IE 7]&gt;--*");<br />
		}<br />
		@Override<br />
		public void onRendered(Component component) {<br />
			super.onRendered(component);<br />
			Response response = component.getResponse();<br />
			response.write("*![endif]--*");<br />
		}<br />
	}<br />
</code></p>
<p><strong>The result:</strong><br />
<code><br />
	*!--[if lt IE 7]&gt;--*<br />
		body {behavior: url(resources/zeuzgroup.web.page.BasePage/csshover2.htc;jsessionid=1pjzdpc4j8asn);}<br />
*![endif]--*<br />
</code></p>
<p>Simple and and almost clean <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ps I had to substitute the less than equal and greater than equal sign  with *</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=153&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2008/12/11/wicket-never-stops-to-impress-me/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenID, the challenge Attributes</title>
		<link>http://ninomartinez.wordpress.com/2008/12/11/openid-the-challenge-attributes/</link>
		<comments>http://ninomartinez.wordpress.com/2008/12/11/openid-the-challenge-attributes/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 08:36:27 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[Authentication]]></category>
		<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=151</guid>
		<description><![CDATA[So what&#8217;s the fuss about openID? Well the idea are to have one id provider for all the sites that require authentication.
And if you go a bit further and you do at sometime, you&#8217;ll want to get some details about the user, like email or full name. So the guys at openID implemented something called [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=151&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So what&#8217;s the fuss about openID? Well the idea are to have one id provider for all the sites that require authentication.</p>
<p>And if you go a bit further and you do at sometime, you&#8217;ll want to get some details about the user, like email or full name. So the guys at openID implemented something called attribute exchange. And if you are in the java world like I am you want something simple, so I turned to openID4Java. The idea are that you let the user put in the id on your web page just something like johndoe.openid.org and then you forward the user to openid.org and lets openid.org validate your user and then openid.org will forward the user back to you using an url you specified. And if you really need some properties, you can add a sreg (OpenID Simple Registration Extension) for each property to make the user enter it at the provider ( however not all providers supports these things ).</p>
<p>Well onto the code :</p>
<p>Code for requesting the provider<br />
<code><br />
	// --- placing the authentication request ---<br />
	public String authRequest(String userSuppliedString,<br />
			HttpServletRequest httpReq, HttpServletResponse httpResp,<br />
			String returnToUrl) throws IOException, ServletException {<br />
		try {<br />
			// configure the return_to URL where your application will receive<br />
			// the authentication responses from the OpenID provider</p>
<p>			// perform discovery on the user-supplied identifier<br />
			List discoveries = manager.discover(userSuppliedString);</p>
<p>			// attempt to associate with the OpenID provider<br />
			// and retrieve one service endpoint for authentication<br />
			DiscoveryInformation discovered = manager.associate(discoveries);</p>
<p>			// store the discovery information in the user's session<br />
			httpReq.getSession().setAttribute("openid-disc", discovered);</p>
<p>			// obtain a AuthRequest message to be sent to the OpenID provider<br />
			AuthRequest authReq = manager.authenticate(discovered, returnToUrl);<br />
			FetchRequest fetch = FetchRequest.createFetchRequest();</p>
<p>			//<br />
			// SRegRequest sregReq = SRegRequest.createFetchRequest();<br />
			//<br />
			// sregReq.addAttribute("fullname", true);<br />
			// sregReq.addAttribute("nickname", true);<br />
			// sregReq.addAttribute("email", true);<br />
			fetch.addAttribute("Fullname", "http://axschema.org/namePerson/",<br />
					true);<br />
			fetch.addAttribute("Email", "http://axschema.org/contact/email",<br />
					true);</p>
<p>			// tell the email coint<br />
			fetch.setCount("Email", 1);<br />
			AuthRequest req = manager.authenticate(discovered, returnToUrl);<br />
			req.addExtension(fetch);<br />
			// authReq.addExtension(sregReq);<br />
			if (!discovered.isVersion2()) {<br />
				// Option 1: GET HTTP-redirect to the OpenID Provider endpoint<br />
				// The only method supported in OpenID 1.x<br />
				// redirect-URL usually limited ~2048 bytes<br />
				httpResp.sendRedirect(authReq.getDestinationUrl(true));<br />
				return null;</p>
<p>			} else {<br />
				httpResp.sendRedirect(authReq.getDestinationUrl(true));<br />
				return null;<br />
				// // Option 2: HTML FORM Redirection (Allows payloads &gt;2048<br />
				// bytes)<br />
				// RequestDispatcher dispatcher =<br />
				// httpReq.getRequestDispatcher(OpenIdSignInPage.MOUNTPATH);<br />
				// httpReq.setAttribute("parameterMap",<br />
				// authReq.getParameterMap());<br />
				// httpReq.setAttribute("destinationUrl",<br />
				// authReq.getDestinationUrl(false));<br />
				// dispatcher.forward(httpReq, httpResp);<br />
			}<br />
		} catch (OpenIDException e) {<br />
			// present error to the user<br />
		}</p>
<p>		return null;<br />
	}<br />
</code></p>
<p>The code that recieves the response from the provider:<br />
<code><br />
	// --- processing the authentication response ---<br />
	public User verifyResponse(HttpServletRequest httpReq) {<br />
		try {<br />
			// extract the parameters from the authentication response<br />
			// (which comes in as a HTTP request from the OpenID provider)<br />
			ParameterList response = new ParameterList(httpReq<br />
					.getParameterMap());</p>
<p>			// retrieve the previously stored discovery information<br />
			DiscoveryInformation discovered = (DiscoveryInformation) httpReq<br />
					.getSession().getAttribute("openid-disc");</p>
<p>			// extract the receiving URL from the HTTP request<br />
			StringBuffer receivingURL = httpReq.getRequestURL();<br />
			String queryString = httpReq.getQueryString();<br />
			if (queryString != null &amp;&amp; queryString.length() &gt; 0)<br />
				receivingURL.append("?").append(httpReq.getQueryString());</p>
<p>			// verify the response; ConsumerManager needs to be the same<br />
			// (static) instance used to place the authentication request<br />
			VerificationResult verification = manager.verify(receivingURL<br />
					.toString(), response, discovered);</p>
<p>			// examine the verification result and extract the verified<br />
			// identifier<br />
			Identifier verified = verification.getVerifiedId();<br />
			if (verified != null) {<br />
				AuthSuccess authSuccess = (AuthSuccess) verification<br />
						.getAuthResponse();<br />
				if (authSuccess.hasExtension(AxMessage.OPENID_NS_AX)) {<br />
					FetchResponse fetchResp = (FetchResponse) authSuccess<br />
							.getExtension(AxMessage.OPENID_NS_AX);<br />
					return filluser(fetchResp);<br />
				}</p>
<p>				if (authSuccess.hasExtension(OPENID_NS_SREG1_1)) {<br />
					log.info("got info:"<br />
							+ authSuccess<br />
									.getParameterValue("openid.sreg.email"));<br />
					log.info("got info:"<br />
							+ authSuccess<br />
									.getParameterValue("openid.sreg.fullname"));</p>
<p>					User user = new User();<br />
					user.setEmail(authSuccess<br />
							.getParameterValue("openid.sreg.email"));<br />
					user.setName(authSuccess<br />
							.getParameterValue("openid.sreg.fullname"));<br />
					return user;</p>
<p>				}</p>
<p>				// return verified; // success<br />
			}<br />
		} catch (OpenIDException e) {<br />
			// present error to the user<br />
		}</p>
<p>		return null;<br />
	}</p>
<p>	private User filluser(FetchResponse fetchResp) {</p>
<p>		List emails = fetchResp.getAttributeValues("email");<br />
		String email = emails.get(0);<br />
		List names = fetchResp.getAttributeValues("name");<br />
		String name = names.get(0);</p>
<p>		User user = new User();<br />
		user.setEmail(email);<br />
		user.setName(name);<br />
		return user;</p>
<p>	}<br />
</code></p>
<p>So the idea are good and the authentication works, but my problem are that I cannot get the providers to provide the ax properties. So I&#8217;ll be following up on howto do this in this post. I hope I succeed at some point, because for me openid without ax are almost worthless. At this point I dont know if it&#8217;s the openID4java implementation or the openID providers. If you have any pointers on howto do this <strong>please comment</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=151&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2008/12/11/openid-the-challenge-attributes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>
	</item>
		<item>
		<title>new stuff in Wicketstuff OpenLayers integration</title>
		<link>http://ninomartinez.wordpress.com/2008/12/09/new-stuff-in-wicketstuff-openlayers-integration/</link>
		<comments>http://ninomartinez.wordpress.com/2008/12/09/new-stuff-in-wicketstuff-openlayers-integration/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 11:15:46 +0000</pubDate>
		<dc:creator>ninomartinez</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[wicket]]></category>

		<guid isPermaLink="false">http://ninomartinez.wordpress.com/?p=140</guid>
		<description><![CDATA[So I&#8217;ve added a few things and done a cleanup on the Wicketstuff OpenLayers integration.

We are now using JTS (http://www.vividsolutions.com/Jts/JTSHome.htm) directly.
You are now able to draw geometry&#8217;s using the new DrawListenerBehavior

Geom&#8217;s are pushed to java using JTS


Remove the drawControl using the RemoveDrawControl behavior.

Heres some screens :
Drawing

FeedBack from serverside (just outputting the WKT of the geom)

Using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=140&subd=ninomartinez&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So I&#8217;ve added a few things and done a cleanup on the Wicketstuff OpenLayers integration.</p>
<ul>
<li>We are now using JTS (http://www.vividsolutions.com/Jts/JTSHome.htm) directly.</li>
<li>You are now able to draw geometry&#8217;s using the new DrawListenerBehavior
<ul>
<li>Geom&#8217;s are pushed to java using JTS</li>
</ul>
</li>
<li>Remove the drawControl using the RemoveDrawControl behavior.</li>
</ul>
<p>Heres some screens :</p>
<p><strong>Drawing</strong></p>
<p><img class="alignnone size-medium wp-image-141" title="Drawing" src="http://ninomartinez.files.wordpress.com/2008/12/screen-capture-1.png?w=400&#038;h=348" alt="Drawing" width="400" height="348" /></p>
<p>FeedBack from serverside (just outputting the WKT of the geom)</p>
<p><img class="alignnone size-medium wp-image-143" title="interaction 01" src="http://ninomartinez.files.wordpress.com/2008/12/screen-capture.png?w=400&#038;h=363" alt="interaction 01" width="400" height="363" /></p>
<p>Using a little JTS:</p>
<p><img class="alignnone size-medium wp-image-142" title="A little JTS power" src="http://ninomartinez.files.wordpress.com/2008/12/screen-capture-2.png?w=400&#038;h=348" alt="A little JTS power" width="400" height="348" /></p>
<p>And if you&#8217;re wondering why is this cool? Well because above interactions are passed to server side, using the Wicketstuff Openlayers integration requires no knowledge of javascript, its wrapped nicely for you.</p>
<p>Heres the link to a little more about the library:</p>
<p>http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-openlayers</p>
<p>And if you combine this with hibernate spatial, you can since hibernate spatial supports JTS.. You have a really cool simple GIS system <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninomartinez.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninomartinez.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninomartinez.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninomartinez.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninomartinez.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninomartinez.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninomartinez.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninomartinez.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninomartinez.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninomartinez.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninomartinez.wordpress.com&blog=3320673&post=140&subd=ninomartinez&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ninomartinez.wordpress.com/2008/12/09/new-stuff-in-wicketstuff-openlayers-integration/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5ba67605a7b22857e1bfb59c0d7dad7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninomartinez</media:title>
		</media:content>

		<media:content url="http://ninomartinez.files.wordpress.com/2008/12/screen-capture-1.png?w=400" medium="image">
			<media:title type="html">Drawing</media:title>
		</media:content>

		<media:content url="http://ninomartinez.files.wordpress.com/2008/12/screen-capture.png?w=400" medium="image">
			<media:title type="html">interaction 01</media:title>
		</media:content>

		<media:content url="http://ninomartinez.files.wordpress.com/2008/12/screen-capture-2.png?w=400" medium="image">
			<media:title type="html">A little JTS power</media:title>
		</media:content>
	</item>
	</channel>
</rss>