<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.9.2" -->
<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/"
	>

<channel>
	<title>Usefulfor.com Master Site Feed</title>
	<link>http://usefulfor.com</link>
	<description>Shows all posts, comments, and pages from all blogs on this WPMU powered site</description>
	<pubDate>Thu, 24 Jun 2010 14:24:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<item>
		<title>Maven profiles</title>
		<link>http://usefulfor.com/java/2010/06/24/maven-profiles/</link>
		<comments>http://usefulfor.com/java/2010/06/24/maven-profiles/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 14:24:48 +0000</pubDate>
		<dc:creator>ruth</dc:creator>
				<category><![CDATA[Java World]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[profiles]]></category>

		<guid isPermaLink="false">http://usefulfor.com/java/?p=146</guid>
		<description><![CDATA[We all work in different environments, development, test (maybe integration) and production servers or, maybe a set of servers that run the same application with different configurations. 
Maven helps us build our jar and war components for different environments configuring profiles.
We are going to see here how we can use Maven profiles to build and [...]]]></description>
			<content:encoded><![CDATA[<p>We all work in different environments, development, test (maybe integration) and production servers or, maybe a set of servers that run the same application with different configurations. </p>
<p>Maven helps us build our jar and war components for different environments configuring <a href="http://maven.apache.org/guides/introduction/introduction-to-profiles.html">profiles</a>.</p>
<p>We are going to see here how we can use Maven profiles <strong>to build and package Java jar files</strong> configured for specific environments. </p>
<script type="text/javascript">AKPC_IDS += "146,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Dear Scammed Victim</title>
		<link>http://usefulfor.com/security/2010/06/16/dear-scammed-victim/</link>
		<comments>http://usefulfor.com/security/2010/06/16/dear-scammed-victim/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 15:47:19 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=185</guid>
		<description><![CDATA[Just got this on my inbox:

Compensation From The Government.
The Chairman
DEBT MANAGEMENT OFFICE
Committee On Government Compensation,
Wuse Zone II, FCT, ABUJA.:
Our Ref : FGN /SNT/STB
Dear Beneficiary,
Re:  Government Compensation on Scams Victims, Lotto, Unpaid/Unclaimed
Contract/Donation.
The Federal Government of Nigeria through the President Dr.Goodluck Jonathan GCFR CON, has mandated the Debt management office in colaboration with Nigeria Financial Intelligence [...]]]></description>
			<content:encoded><![CDATA[<p>Just got this on my inbox:</p>
<blockquote><p>
Compensation From The Government.</p>
<p>The Chairman<br />
DEBT MANAGEMENT OFFICE<br />
Committee On Government Compensation,<br />
Wuse Zone II, FCT, ABUJA.:<br />
Our Ref : FGN /SNT/STB</p>
<p>Dear Beneficiary,</p>
<p>Re:  Government Compensation on Scams Victims, Lotto, Unpaid/Unclaimed<br />
Contract/Donation.</p>
<p>The Federal Government of Nigeria through the President Dr.Goodluck Jonathan GCFR CON, has mandated the Debt management office in colaboration with Nigeria Financial Intelligence Unit (EFCC)to compensate all foreigner’s who in one way or the other has been retrieve of there hard earn money through illegal transaction.</p>
<p>All the Scams Victim who has lost so much to the fraudsters in Nigeria can now be compensation in pro rata of money lost.we are carrying out this verification and payment procedure with guideline from the The Federal Bureau Investigation  Director (FBI) Mr.Robert,S.Mueller. The EFCC Chairman Mrs. Farida Waziri agency had not only recovered $6.5bn since its inception but had secured 400 convictions :http://www.punchng.com/Articl.aspx?theartic=Art201006153502178 </p>
<p>You are officially informed that the sum of  $150,000.00 (One hundred and fifty thousand U. S. dollars only)has been accredited in your favor for compensation due to your inability to claim your funds for some circumstances.</p>
<p>The Instruction has been given to us to Compensate the Scams Victims.Please if you have not been Scammed do not reply this message,it is onlyfor those that were scammed of their money that needs to reply this mail for Compensation.</p>
<p>For processing and verifications, kindly tender the below information:<br />
* Full Name:<br />
* proof of payment/relevant document:<br />
* Phone Number:<br />
* Gender:<br />
* Age:<br />
* Occupation:<br />
* Country:<br />
* Identification:</p>
<p>Direct your information below to the officer that will give instruction to<br />
pay you the Compensation.</p>
<p>Dr. Greg Sambo<br />
DEBT MANAGEMENT OFFICE<br />
Committee On Government Compensation.<br />
email:dmo@contractreviewplanel.fr.fm</p>
</blockquote>
<script type="text/javascript">AKPC_IDS += "185,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>jQuery enable-disable elements</title>
		<link>http://usefulfor.com/java/2010/04/19/jquery-enable-disable-elements/</link>
		<comments>http://usefulfor.com/java/2010/04/19/jquery-enable-disable-elements/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 16:48:59 +0000</pubDate>
		<dc:creator>ruth</dc:creator>
				<category><![CDATA[Java World]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://usefulfor.com/java/?p=136</guid>
		<description><![CDATA[Let&#8217;s summarise here how to disable, enable, check, assign values and get selected values from your html document.

1
2
3
4
5
&#60;select name=&#34;client.idClient&#34; id=&#34;idClient&#34;&#62;
	&#60;option value=&#34;1&#34;&#62;CLIENT 1&#60;/option&#62;
	&#60;option value=&#34;2&#34;&#62;CLIENT 2&#60;/option&#62;
	&#60;option value=&#34;3&#34;&#62;CLIENT 3&#60;/option&#62;
&#60;/select&#62;

You can disable an element by setting the disabled attribute to disabled:

1
jQuery&#40;&#34;#idClient&#34;&#41;.attr&#40;&#34;disabled&#34;,&#34;disabled&#34;&#41;;

And enable the element by removing the disabled attribute:

1
jQuery&#40;&#34;#idClient&#34;&#41;.removeAttr&#40;&#34;disabled&#34;&#41;;

If the element is an input:

1
&#60;input type=&#34;checkbox&#34; id=&#34;yes&#34;/&#62;

then you have to [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s summarise here how to disable, enable, check, assign values and get selected values from your html document.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;select</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;client.idClient&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;idClient&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;option</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>CLIENT 1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;option</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>CLIENT 2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;option</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;3&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>CLIENT 3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/select<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>You can disable an element by setting the <code>disabled</code> attribute to <code>disabled</code>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#idClient&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>And enable the element by removing the <code>disabled</code> attribute:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#idClient&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeAttr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;disabled&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>If the element is an input:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;yes&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></td></tr></table></div>

<p>then you have to set the <code>checked </code>attribute to <code>checked</code>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#yes&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;checked&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;checked&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#yes&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeAttr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;checked&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>If you want to set a value for an element in your document:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#idClient&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>will set the selected option in the dropdown to the value 1.</p>
<p>To get the selected <code>value</code>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#idClient&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>and the selected <code>text</code>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#idClient option:selected&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Very useful link: <a href="http://docs.jquery.com/Frequently_Asked_Questions">jQuery &#8211; FAQ</a></p>
<script type="text/javascript">AKPC_IDS += "136,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>JavaScript Liferay.PortletURL</title>
		<link>http://usefulfor.com/java/2010/04/16/javascript-liferay-portleturl/</link>
		<comments>http://usefulfor.com/java/2010/04/16/javascript-liferay-portleturl/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 16:44:21 +0000</pubDate>
		<dc:creator>ruth</dc:creator>
				<category><![CDATA[Java World]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[liferay]]></category>

		<guid isPermaLink="false">http://usefulfor.com/java/?p=66</guid>
		<description><![CDATA[Liferay Portal has a JavaScript library that allows the creation of portletURLs inside your JavaScript code. Something like:

&#60;input type=&#34;button&#34; value=&#34;&#60;liferay-ui:message key=&#34;cancel&#34; /&#62;&#34; 
onclick=&#34;&#60;portlet:namespace/&#62;_back();&#34;/&#62;
&#160;
&#60;script type=&#34;text/javascript&#34;&#62;
&#160;
      function &#60;portlet:namespace/&#62;_back&#40;&#41; &#123;
&#160;
            var backURL = Liferay.PortletURL.createRenderURL&#40;&#41;;
         [...]]]></description>
			<content:encoded><![CDATA[<p>Liferay Portal has a JavaScript library that allows the creation of <code>portletURLs</code> inside your JavaScript code. Something like:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;button&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;liferay-ui:message key=&quot;</span>cancel<span style="color: #0000ff;">&quot; /&gt;&quot;</span> 
onclick<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;portlet:namespace/&gt;_back();&quot;</span><span style="color: #339933;">/&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
      function <span style="color: #339933;">&lt;</span>portlet<span style="color: #339933;">:</span>namespace<span style="color: #339933;">/&gt;</span>_back<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            var backURL <span style="color: #339933;">=</span> Liferay.<span style="color: #006633;">PortletURL</span>.<span style="color: #006633;">createRenderURL</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            backURL.<span style="color: #006633;">setPortletId</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            backURL.<span style="color: #006633;">setParameter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;networkId&quot;</span>, $<span style="color: #009900;">&#123;</span>networkId<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            backURL.<span style="color: #006633;">setPortletMode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;view&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            location.<span style="color: #006633;">href</span> <span style="color: #339933;">=</span> backURL<span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>All the available methods are (as in Liferay 5.2.3):</p>
<ul>
<li>setCopyCurrentRenderParameters: function(copyCurrentRenderParameters);</li>
<li>setDoAsUserId: function(doAsUserId);</li>
<li>setEncrypt: function(encrypt);</li>
<li>setEscapeXML: function(escapeXML);</li>
<li>setLifecycle: function(lifecycle);</li>
<li>setName: function(name);</li>
<li>setParameter: function(key, value);</li>
<li>setPlid: function(plid);</li>
<li>setPortletConfiguration: function(portletConfiguration);</li>
<li>setPortletId: function(portletId);</li>
<li>setPortletMode: function(portletMode);</li>
<li>setResourceId: function(resourceId);</li>
<li>setSecure: function(secure);</li>
<li>setWindowState: function(windowState);</li>
<li>toString: function();</li>
</ul>
<p>And you can create any portlet URL:</p>
<ul>
<li>var actionURL = Liferay.PortletURL.createActionURL(); // (&#8216;ACTION_PHASE&#8217;);</li>
<li>var renderURL = Liferay.PortletURL.createRenderURL(); // (&#8216;RENDER_PHASE&#8217;);</li>
<li>var resourceURL = Liferay.PortletURL.createResourceURL(); // (&#8216;RESOURCE_PHASE&#8217;);
<li>var permissionURL = Liferay.PortletURL.createPermissionURL(portletResource, modelResource, modelResourceDescription, resourcePrimKey);</li>
</ul>
<p>Have a look at the library in </p>
<blockquote><p><a href="http://svn.liferay.com/browse/portal/branches/5.2.x/portal-web/docroot/html/js/liferay/portlet_url.js?r=HEAD">liferay-portal-src-5.2.3/portal-web/docroot/html/js/liferay/portlet_url.js</a></p></blockquote>
<script type="text/javascript">AKPC_IDS += "66,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Liferay hook war</title>
		<link>http://usefulfor.com/java/2010/04/06/liferay-hook-war/</link>
		<comments>http://usefulfor.com/java/2010/04/06/liferay-hook-war/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 11:13:10 +0000</pubDate>
		<dc:creator>ruth</dc:creator>
				<category><![CDATA[Java World]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[hook]]></category>
		<category><![CDATA[liferay]]></category>

		<guid isPermaLink="false">http://usefulfor.com/java/?p=64</guid>
		<description><![CDATA[Liferay Hooks are plugins that let you customise some of the Portal functionality. 
In this post we are creating a simple Liferay hook to change the value of a property in the portal.properties, override one of the Portal jsps and handling an event.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Portal+Hook+Plugins">Liferay Hooks</a> are plugins that let you customise some of the Portal functionality. </p>
<p>In this post we are creating a simple Liferay hook to change the value of a property in the portal.properties, override one of the Portal jsps and handling an event.</p>
<script type="text/javascript">AKPC_IDS += "64,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Maven useful links</title>
		<link>http://usefulfor.com/java/2010/04/06/maven-useful-links/</link>
		<comments>http://usefulfor.com/java/2010/04/06/maven-useful-links/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 11:11:49 +0000</pubDate>
		<dc:creator>ruth</dc:creator>
				<category><![CDATA[Java World]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://usefulfor.com/java/?p=61</guid>
		<description><![CDATA[Some Maven useful links:
Maven lifecycle:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
Maven create web app
http://maven.apache.org/plugins/maven-archetype-plugin/examples/webapp.html
Maven plugins
http://maven.apache.org/plugins/
Work on progress&#8230; any suggestions?
]]></description>
			<content:encoded><![CDATA[<p>Some Maven useful links:</p>
<p>Maven lifecycle:<br />
<a href="http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html">http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html</a></p>
<p>Maven create web app<br />
<a href="http://maven.apache.org/plugins/maven-archetype-plugin/examples/webapp.html">http://maven.apache.org/plugins/maven-archetype-plugin/examples/webapp.html</a></p>
<p>Maven plugins<br />
<a href="http://maven.apache.org/plugins/">http://maven.apache.org/plugins/</a></p>
<p>Work on progress&#8230; any suggestions?</p>
<script type="text/javascript">AKPC_IDS += "61,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>new blog: usefulfor.com/java</title>
		<link>http://usefulfor.com/blog/2010/03/18/new-blog-usefulfor-comjava/</link>
		<comments>http://usefulfor.com/blog/2010/03/18/new-blog-usefulfor-comjava/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 20:35:15 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://usefulfor.com/?p=9</guid>
		<description><![CDATA[For those of us working with J2EE and Java web related technologies like Maven2, JAXWS and Spring Web Services, Spring MVC, Liferay Portal, Portlets, jQuery , displaytag&#8230; welcome to:
http://usefulfor.com/java
Here you will find snippets for those things that you do when setting up a new project, or every now and then, and absolutely forget about. Instead [...]]]></description>
			<content:encoded><![CDATA[<p>For those of us working with J2EE and Java web related technologies like Maven2, JAXWS and Spring Web Services, Spring MVC, Liferay Portal, Portlets, jQuery , displaytag&#8230; welcome to:</p>
<p><a href="http://usefulfor.com/java">http://usefulfor.com/java</a></p>
<p>Here you will find snippets for those things that you do when setting up a new project, or every now and then, and absolutely forget about. Instead of spending time re-looking for them in your file system or <em>googling</em> them (again), come here and copy and paste that jQuery method, configuration file or find the solution for that <code>Exception</code> you are already familiar with!</p>
<script type="text/javascript">AKPC_IDS += "9,";</script><p class="akpc_pop">Popularity: 61% <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Get month name from Calendar.MONTH field</title>
		<link>http://usefulfor.com/java/2010/03/18/get-month-name-from-calendar-month-field/</link>
		<comments>http://usefulfor.com/java/2010/03/18/get-month-name-from-calendar-month-field/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 20:30:39 +0000</pubDate>
		<dc:creator>ruth</dc:creator>
				<category><![CDATA[Java World]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[month]]></category>

		<guid isPermaLink="false">http://usefulfor.com/java/?p=13</guid>
		<description><![CDATA[Here&#8217;s a method to get the month name from the Calendar.MONTH field:

public String getMonthFromInt&#40;int iMonth&#41; &#123;
  String month = &#34;invalid&#34;;
  DateFormatSymbols dfs = new DateFormatSymbols&#40;&#41;;
  String&#91;&#93; months = dfs.getMonths&#40;&#41;;
 if &#40;iMonth &#62;= 0 &#38;&#38; iMonth &#60;= 11&#41;
    month = months&#91;iMonth&#93;;
  return month;
&#125;

]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a method to get the month name from the <code>Calendar.MONTH</code> field:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> getMonthFromInt<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> iMonth<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #003399;">String</span> month <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;invalid&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #003399;">DateFormatSymbols</span> dfs <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">DateFormatSymbols</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> months <span style="color: #339933;">=</span> dfs.<span style="color: #006633;">getMonths</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>iMonth <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">&amp;&amp;</span> iMonth <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">11</span><span style="color: #009900;">&#41;</span>
    month <span style="color: #339933;">=</span> months<span style="color: #009900;">&#91;</span>iMonth<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #000000; font-weight: bold;">return</span> month<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<script type="text/javascript">AKPC_IDS += "13,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Displaytag library in your portlet</title>
		<link>http://usefulfor.com/java/2010/03/18/displaytag-library-portlet/</link>
		<comments>http://usefulfor.com/java/2010/03/18/displaytag-library-portlet/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 20:28:52 +0000</pubDate>
		<dc:creator>ruth</dc:creator>
				<category><![CDATA[Java World]]></category>
		<category><![CDATA[displaytag]]></category>
		<category><![CDATA[liferay]]></category>
		<category><![CDATA[paginatedList]]></category>
		<category><![CDATA[portlet]]></category>

		<guid isPermaLink="false">http://usefulfor.com/java/?p=40</guid>
		<description><![CDATA[These are &#8211; roughly &#8211; the steps that you need to follow if you are planing to use the displaytag library in your portlet.
]]></description>
			<content:encoded><![CDATA[<p>These are &#8211; roughly &#8211; the steps that you need to follow if you are planing to use the <a title="Displaytag Library" href="http://displaytag.sourceforge.net">displaytag</a> library in your portlet.</p>
<script type="text/javascript">AKPC_IDS += "40,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>How to get Rails 2.3.5 in Debian stable in three easy steps</title>
		<link>http://usefulfor.com/ruby/2009/12/08/how-to-get-rails-2-3-5-in-debian-stable-in-three-easy-steps/</link>
		<comments>http://usefulfor.com/ruby/2009/12/08/how-to-get-rails-2-3-5-in-debian-stable-in-three-easy-steps/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 23:20:56 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://usefulfor.com/ruby/?p=96</guid>
		<description><![CDATA[All steps are to be run as root.
Step #1: install RubyGems:
apt-get install rubygems
Step #2: update RubyGems:
gem install rubygems-update --version=1.3.4
Step #3: get Rails 2.3.5:
gem install rails --no-rdoc --no-ri
]]></description>
			<content:encoded><![CDATA[<p>All steps are to be run as root.</p>
<p><strong>Step #1</strong>: install RubyGems:<br />
<code>apt-get install rubygems</code></p>
<p><strong>Step #2</strong>: update RubyGems:<br />
<code>gem install rubygems-update --version=1.3.4</code></p>
<p><strong>Step #3</strong>: get Rails 2.3.5:<br />
<code>gem install rails --no-rdoc --no-ri</code></p>
<script type="text/javascript">AKPC_IDS += "96,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Java Bytecode Injection</title>
		<link>http://usefulfor.com/security/2009/10/26/java-bytecode-injection/</link>
		<comments>http://usefulfor.com/security/2009/10/26/java-bytecode-injection/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 10:58:20 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[hack-fu]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=149</guid>
		<description><![CDATA[When assessing the security posture of a Java thick application we can usually process the code through a decompiler (such as Jad) and have a proper look at the code. It may be the case that we need to bypass the SSL checks but that is usually it.
However, every now and then, we stumble upon [...]]]></description>
			<content:encoded><![CDATA[<p>When assessing the security posture of a Java thick application we can usually process the code through a decompiler (such as <a href="http://www.varaneckas.com/jad">Jad</a>) and have a proper look at the code. It may be the case that we need to <a href="http://usefulfor.com/security/2009/06/23/bypassing-java-thick-client-ssl-checks/">bypass the SSL checks</a> but that is usually it.</p>
<p>However, every now and then, we stumble upon more complex scenarios, for instance, an application whose code has been obfuscated causing decompilation errors. In that case it will no longer be enough to decompile, modify the code and compile again, we would need some other technique. Patching the .class file at the bytecode level sounds like a reasonable approach.</p>
<script type="text/javascript">AKPC_IDS += "149,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Query the OSVDB using Ruby</title>
		<link>http://usefulfor.com/ruby/2009/10/16/query-osvdb-using-ruby/</link>
		<comments>http://usefulfor.com/ruby/2009/10/16/query-osvdb-using-ruby/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 17:43:08 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://usefulfor.com/ruby/?p=88</guid>
		<description><![CDATA[A few weeks ago we published the Open Source Vulnerability Database (OSVDB) Import Plugin for the Dradis Framework. At that point we thought that it would be nice to separate the code and create an independent Ruby module that can be used to query the OSVDB.
It turned out that an osvdb project already existed in [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago we published the Open Source Vulnerability Database (OSVDB) Import Plugin for the <a href="http://dradisframework.org/">Dradis Framework</a>. At that point we thought that it would be nice to separate the code and create an independent Ruby module that can be used to query the OSVDB.</p>
<p>It turned out that an <a href="http://rubyforge.org/projects/osvdb/">osvdb project</a> already existed in RubyForge so we have submitted our code there.</p>
<p>There are no releases so far but the code in the repository is working. In order to get it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> checkout http:<span style="color: #000000; font-weight: bold;">//</span>osvdb.rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>svn<span style="color: #000000; font-weight: bold;">/</span>trunk osvdb</pre></div></div>

<p>As well as implementations for the &#8216;Find by Microsoft Security Bulletin ID&#8217; and &#8216;OSVDB ID Lookup&#8217; queries, the repository contains test cases and a Rakefile to generate RDoc documentation for the library.</p>
<p>Stay tuned for updates.</p>
<script type="text/javascript">AKPC_IDS += "88,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Beware of JBoss&#8217; &#8220;SecureIdentityLoginModule&#8221;</title>
		<link>http://usefulfor.com/security/2009/09/24/beware-of-jboss-secureidentityloginmodule/</link>
		<comments>http://usefulfor.com/security/2009/09/24/beware-of-jboss-secureidentityloginmodule/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 23:05:16 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Webapp security]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=138</guid>
		<description><![CDATA[From JBoss&#8217; Community Wiki EncryptingDataSourcePasswords page:

The org.jboss.resource.security.SecureIdentityLoginModule from jboss-jca.jar can be used to encrypt database passwords rather than using clear text passwords in the DataSource configuration. [...]

Which in principle, is a great thing. The problem being that usually database credentials end up being placed in the web application configuration file in clear text. However:
[...] It [...]]]></description>
			<content:encoded><![CDATA[<p>From JBoss&#8217; Community Wiki <a href="http://www.jboss.org/community/wiki/EncryptingDataSourcePasswords">EncryptingDataSourcePasswords</a> page:</p>
<blockquote><p>
The <code>org.jboss.resource.security.SecureIdentityLoginModule</code> from <code>jboss-jca.jar</code> can be used to encrypt database passwords rather than using clear text passwords in the DataSource configuration. [...]
</p></blockquote>
<p>Which in principle, is a great thing. The problem being that usually database credentials end up being placed in the web application configuration file in clear text. However:</p>
<blockquote><p>[...] It uses a hard-coded password to encrypt/decrypt the DataSource password.</p></blockquote>
<p>Bottom line, anyone using the <a href="http://docs.huihoo.com/javadoc/jboss/4.0.2/org/jboss/resource/security/SecureIdentityLoginModule.java.html">SecureIdentityLoginModule</a> to encrypt their password in the configuration file is doing it with a Blowfish algorithm and well known key. So if during an engagement you find a configuration snippet similar to the one below:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;policy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
[...]
  <span style="color: #808080; font-style: italic;">&lt;!-- Example usage of the SecureIdentityLoginModule --&gt;</span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;application-policy</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;EncryptDBPassword&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;authentication<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;login-module</span> <span style="color: #000066;">code</span>=<span style="color: #ff0000;">&quot;org.jboss.resource.security.SecureIdentityLoginModule&quot;</span> <span style="color: #000066;">flag</span>=<span style="color: #ff0000;">&quot;required&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;module-option</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;username&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>sa<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/module-option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;module-option</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>5dfc52b51bd35553df8592078de921bc<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/module-option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;module-option</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;managedConnectionFactoryName&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>[...]<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/module-option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/login-module<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/authentication<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/application-policy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
[...]
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/policy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>You should be able to reverse the encryption and get the credentials in clear text. <a href="http://github.com/usefulfor/usefulfor/raw/master/security/JBoss.java">JBoss.java</a> can help you with this, it is now available in <a href="http://github.com/usefulfor/usefulfor">usefulfor&#8217;s repository</a> at GitHub.</p>
<script type="text/javascript">AKPC_IDS += "138,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>DEFCON 17: a late write up</title>
		<link>http://usefulfor.com/security/2009/08/19/defcon-17-a-late-write-up/</link>
		<comments>http://usefulfor.com/security/2009/08/19/defcon-17-a-late-write-up/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 14:36:07 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=111</guid>
		<description><![CDATA[This year&#8217;s DEFCON was quite amazing, apparently 10k people showed up in the Riviera for it. This is a late write up because everybody knows already about the fake ATM and the RFID reader near the Wall of Sheep, on the other hand, not everybody knows about other things that also took place. By the [...]]]></description>
			<content:encoded><![CDATA[<p>This year&#8217;s DEFCON was quite amazing, apparently 10k people showed up in the Riviera for it. This is a late write up because everybody knows already about the <a href="http://twitterfall.com/defcon+atm">fake ATM</a> and the <a href="http://www.wired.com/threatlevel/2009/08/fed-rfid/">RFID reader near the Wall of Sheep</a>, on the other hand, not everybody knows about <a href="https://pics.defcon.org//showphoto.php?photo=648">other things</a> that also took place. By the way, this is how the back side of one of the ATMs at the conference looked like:</p>
<p><img src="http://usefulfor.com/security/files/2009/08/080209235543.jpg" alt="DEFCON ATM back side: RJ45 connector exposed" width="360" height="480" class="aligncenter size-full wp-image-114" /></p>
<p>The truth is that you would need 2 or 3 duplicates to get to do all the stuff that you want to do. There are just too many talks, <a href="http://defcon.org/html/defcon-17/dc-17-contest-results.html">contests</a> and random stuff going on that it is not possible to cover it all. Anyway, below is a breakdown of the talks I managed to get in. </p>
<script type="text/javascript">AKPC_IDS += "111,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Bypassing Java thick client SSL checks</title>
		<link>http://usefulfor.com/security/2009/06/23/bypassing-java-thick-client-ssl-checks/</link>
		<comments>http://usefulfor.com/security/2009/06/23/bypassing-java-thick-client-ssl-checks/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 18:20:36 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hack-fu]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=110</guid>
		<description><![CDATA[x509 certificate generation
Generate the certificate using OpenSSL:-

$ openssl genrsa 1024 &#62; foo.key
$ openssl req -new -x509 -nodes -sha1 -days 7300 -key foo.key &#62; foo.crt
$ openssl pkcs12 -export -out foo.p12 -in foo.crt -inkey foo.key -name &#34;your name&#34;

You will need the .p12 file (contains key and certificate) to configure Burp. And the .crt file to add it [...]]]></description>
			<content:encoded><![CDATA[<h2>x509 certificate generation</h2>
<p>Generate the certificate using <a href="http://www.openssl.org/">OpenSSL</a>:-</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ openssl genrsa <span style="color: #000000;">1024</span> <span style="color: #000000; font-weight: bold;">&gt;</span> foo.key
$ openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-x509</span> <span style="color: #660033;">-nodes</span> <span style="color: #660033;">-sha1</span> <span style="color: #660033;">-days</span> <span style="color: #000000;">7300</span> <span style="color: #660033;">-key</span> foo.key <span style="color: #000000; font-weight: bold;">&gt;</span> foo.crt
$ openssl pkcs12 <span style="color: #660033;">-export</span> <span style="color: #660033;">-out</span> foo.p12 <span style="color: #660033;">-in</span> foo.crt <span style="color: #660033;">-inkey</span> foo.key <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;your name&quot;</span></pre></div></div>

<p>You will need the .p12 file (contains key and certificate) to configure <a href="http://portswigger.net/suite/">Burp</a>. And the .crt file to add it to the Java <em>keystore</em> used by the client. Checkout <a href="http://portswigger.net/proxy/help.html">Burp&#8217;s help page</a> for instructions on how to get the first done.</p>
<h2>Create a Java <em>keystore</em>, import the certificate</h2>
<p>Straightforward enough (just remember the password you entered):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">keytool.exe <span style="color: #660033;">-import</span> <span style="color: #660033;">-file</span> foo.crt <span style="color: #660033;">-keystore</span> usefulfor.jks <span style="color: #660033;">-alias</span> burpcert</pre></div></div>

<h2>Run the application and point it to your keystore</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">java \
  -Djavax.net.ssl.trustStore=usefulfor.jks \
  -Djavax.net.ssl.trustStorePassword=password \
  -Djavax.net.debug=all  \
  com.usefulfor.Demo</pre></div></div>

<p>Other interesting properties that you may need in order to further tweak the SSL configuration are <code>javax.net.ssl.keyStore</code> and <code>javax.net.ssl.keyStorePassword</code>.</p>
<script type="text/javascript">AKPC_IDS += "110,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>x509 certificate basics</title>
		<link>http://usefulfor.com/nothing/2009/06/10/x509-certificate-basics/</link>
		<comments>http://usefulfor.com/nothing/2009/06/10/x509-certificate-basics/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 21:02:41 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://usefulfor.com/nothing/?p=64</guid>
		<description><![CDATA[This post contains the bare minimums you need to start working with x509 certificates. After reading the post you should have a better idea about the meaning of the different acronyms related with SSL certificates (ASN1, DER, PEM, etc.). You will also have a better understanding of the format of the certificate. 
Tools are provided [...]]]></description>
			<content:encoded><![CDATA[<p>This post contains the bare minimums you need to start working with x509 certificates. After reading the post you should have a better idea about the meaning of the different acronyms related with SSL certificates (ASN1, DER, PEM, etc.). You will also have a better understanding of the format of the certificate. </p>
<p>Tools are provided to create your own certificates and also to use the certificates you have created in SSL communications. The information in this article should be valuable in understanding the certificate format and useful if you need to work with certificate parsing, SSL implementations or fuzzing of the related technologies.</p>
<script type="text/javascript">AKPC_IDS += "64,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>How to create a dradis export plugin?</title>
		<link>http://usefulfor.com/ruby/2009/03/27/how-to-create-a-dradis-export-plugin/</link>
		<comments>http://usefulfor.com/ruby/2009/03/27/how-to-create-a-dradis-export-plugin/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 01:04:47 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[dradis]]></category>

		<guid isPermaLink="false">http://usefulfor.com/ruby/?p=87</guid>
		<description><![CDATA[Although we presented some of this concepts already in dradis reporting: quick &#38; neat word export, here is the step by step guide to get an export plugin recognised by the dradis framework and ready to use!
Update (2009-04-09): Checkout the new import/export plugin generators at dradis community forums.
]]></description>
			<content:encoded><![CDATA[<p>Although we presented some of this concepts already in <a href="http://usefulfor.com/ruby/2009/02/15/dradis-reporting-quick-neat-word-export/">dradis reporting: quick &amp; neat word export</a>, here is the step by step guide to get an export plugin recognised by the <a href="http://dradisframework.org/">dradis framework</a> and ready to use!</p>
<p><strong>Update (2009-04-09)</strong>: Checkout the new import/export plugin generators at <a href="http://dradisframework.org/community/index.php?topic=7.msg9">dradis community forums</a>.</p>
<script type="text/javascript">AKPC_IDS += "87,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Use Rails to Create a Static Site: Rake and Subversion</title>
		<link>http://usefulfor.com/ruby/2009/03/23/use-rails-to-create-a-static-site-rake-and-subversion/</link>
		<comments>http://usefulfor.com/ruby/2009/03/23/use-rails-to-create-a-static-site-rake-and-subversion/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 10:31:23 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://usefulfor.com/ruby/?p=86</guid>
		<description><![CDATA[We have already seen how to Use Rails to Create a Static Site. In that article we left the site running, and we recommended the use of wget to generate the static copy. Although this is good enough, with a little bit of Rake we can make deployment easier.
]]></description>
			<content:encoded><![CDATA[<p>We have already seen how to <a href="http://usefulfor.com/ruby/2009/02/04/use-rails-to-create-a-static-site/">Use Rails to Create a Static Site</a>. In that article we left the site running, and we recommended the use of <code>wget</code> to generate the static copy. Although this is good enough, with a little bit of <a href="http://rake.rubyforge.org/">Rake</a> we can make deployment easier.</p>
<script type="text/javascript">AKPC_IDS += "86,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>dradis extensions: how they work and how to write them</title>
		<link>http://usefulfor.com/ruby/2009/02/17/dradis-extensions-how-they-work-and-how-to-write-them/</link>
		<comments>http://usefulfor.com/ruby/2009/02/17/dradis-extensions-how-they-work-and-how-to-write-them/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 23:33:24 +0000</pubDate>
		<dc:creator>siebert</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[dradis]]></category>

		<guid isPermaLink="false">http://usefulfor.com/ruby/?p=84</guid>
		<description><![CDATA[Dradis is a tool used for structured information storage and sharing. Although it is applicable to various environments, it is originally aimed at information security consultants working alone or in a team. One of the great features of the application is that the client side&#8217;s functionality can be extended by what is called (quite creatively) [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dradis.sourceforge.net">Dradis</a> is a tool used for structured information storage and sharing. Although it is applicable to various environments, it is originally aimed at information security consultants working alone or in a team. One of the great features of the application is that the client side&#8217;s functionality can be extended by what is called (quite creatively) &#8211; <em>extensions</em>.</p>
<p>In this post I&#8217;ll be looking at what an extension is, how it fits into the dradis framework and how to write your own extensions.</p>
<p>You are welcome to jump ahead to the <strong><a href="#how_to">How do I write my own extension?</a></strong> if that is the only part that you are interested in.</p>
<script type="text/javascript">AKPC_IDS += "84,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>dradis reporting: quick &amp; neat word export</title>
		<link>http://usefulfor.com/ruby/2009/02/15/dradis-reporting-quick-neat-word-export/</link>
		<comments>http://usefulfor.com/ruby/2009/02/15/dradis-reporting-quick-neat-word-export/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 15:55:43 +0000</pubDate>
		<dc:creator>etd</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[dradis]]></category>

		<guid isPermaLink="false">http://usefulfor.com/ruby/?p=83</guid>
		<description><![CDATA[With over 800 downloads in the first two weeks of dradis v2.0, there is lots of interest on what is going to be next. We are working on solutions for importing and exporting data to and from the repository, but for those of you that can&#8217;t wait, we have put together a plug-in for the [...]]]></description>
			<content:encoded><![CDATA[<p>With over 800 downloads in the first two weeks of <a href="http://dradis.sourceforge.net/">dradis v2.0</a>, there is lots of interest on what is going to be next. We are working on solutions for importing and exporting data to and from the repository, but for those of you that can&#8217;t wait, we have put together a plug-in for the server that exports your notes to a Word file.</p>
<p>It is not the final solution, and it is not integrated with the web interface, but hopefully it will give you an idea of how easy is to get your own exporting modules for dradis.</p>
<script type="text/javascript">AKPC_IDS += "83,";</script><p class="akpc_pop">Popularity: unranked <span class="akpc_help">[<a href="http://alexking.org/projects/wordpress/popularity-contest" title="What does this mean?">?</a>]</span></p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
</channel>
</rss>
<!-- 295 queries 0.928 seconds. -->
