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

<channel>
	<title>Developer Articles</title>
	<atom:link href="http://developerarticles.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://developerarticles.com</link>
	<description></description>
	<lastBuildDate>Mon, 25 Oct 2010 05:07:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to subtract two array lists in Java</title>
		<link>http://developerarticles.com/how-to-subtract-two-array-lists-in-java/</link>
		<comments>http://developerarticles.com/how-to-subtract-two-array-lists-in-java/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 05:05:24 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[arraylist]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[developer articles]]></category>
		<category><![CDATA[hashset]]></category>
		<category><![CDATA[java articles]]></category>
		<category><![CDATA[list]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=171</guid>
		<description><![CDATA[list1.removeAll(list2); will do the job, but it cost you N1*N2 operations . If you work with big arrays you can improve performance like this: public &#60;T&#62; List&#60;T&#62; subtract(List&#60;T&#62; list1, List&#60;T&#62; list2) { List&#60;T&#62; result = new ArrayList&#60;T&#62;(); Set&#60;T&#62; set2 = new HashSet&#60;T&#62;(list2); for (T t1 : list1) { if( !set2.contains(t1) ) { result.add(t1); } } [...]]]></description>
			<content:encoded><![CDATA[<p>list1.removeAll(list2); will do the job, but it cost you N1*N2 operations .<br />
If you work with big arrays you can improve performance like this:</p>
<pre class="brush: java;">
public &lt;T&gt; List&lt;T&gt; subtract(List&lt;T&gt; list1, List&lt;T&gt; list2) {
		List&lt;T&gt; result = new ArrayList&lt;T&gt;();
		Set&lt;T&gt; set2 = new HashSet&lt;T&gt;(list2);
		for (T t1 : list1) {
			if( !set2.contains(t1) ) {
				result.add(t1);
			}
		}
		return result;
	}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/how-to-subtract-two-array-lists-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get MAC address using Java</title>
		<link>http://developerarticles.com/how-to-get-mack-address-using-java/</link>
		<comments>http://developerarticles.com/how-to-get-mack-address-using-java/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 10:35:06 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[hardware address]]></category>
		<category><![CDATA[import java]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac address]]></category>
		<category><![CDATA[network interface]]></category>
		<category><![CDATA[NetworkInterface]]></category>
		<category><![CDATA[null byte]]></category>
		<category><![CDATA[SocketException]]></category>
		<category><![CDATA[UnknownHostException]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=165</guid>
		<description><![CDATA[Previously for obtaining a MAC address we need to use a native code as a solution. In JDK 1.6 a new method is added in the java.net.NetworkInterface class, this method isgetHardwareAddress(). import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; public class MacAddress { public static void main(String[] args) { try { //InetAddress address = InetAddress.getLocalHost(); InetAddress [...]]]></description>
			<content:encoded><![CDATA[<p>Previously for obtaining a MAC address we need to use a native code as a solution. In JDK 1.6 a new method is added in the java.net.NetworkInterface class, this method isgetHardwareAddress().</p>
<pre class="brush: java;">
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.UnknownHostException;

public class MacAddress {

    public static void main(String[] args) {
        try {
            //InetAddress address = InetAddress.getLocalHost();
            InetAddress address = InetAddress.getByName(&quot;192.168.46.53&quot;);

            /*
             * Get NetworkInterface for the current host and then read the
             * hardware address.
             */
            NetworkInterface ni = NetworkInterface.getByInetAddress(address);
            if (ni != null) {
                byte[] mac = ni.getHardwareAddress();
                if (mac != null) {
                    /*
                     * Extract each array of mac address and convert it to hexa with the
                     * following format 08-00-27-DC-4A-9E.
                     */
                    for (int i = 0; i &lt; mac.length; i++) {
                        System.out.format(&quot;%02X%s&quot;, mac[i], (i &lt; mac.length - 1) ? &quot;-&quot; : &quot;&quot;);
                    }
                } else {
                    System.out.println(&quot;Address doesn't exist or is not accessible.&quot;);
                }
            } else {
                System.out.println(&quot;Network Interface for the specified address is not found.&quot;);
            }
        } catch (UnknownHostException e) {
            e.printStackTrace();
        } catch (SocketException e) {
            e.printStackTrace();
        }
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/how-to-get-mack-address-using-java/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to get real path in JSF</title>
		<link>http://developerarticles.com/how-to-get-real-path-in-jsf/</link>
		<comments>http://developerarticles.com/how-to-get-real-path-in-jsf/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 10:21:19 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[JSF]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[getContext]]></category>
		<category><![CDATA[getCurrentInstance]]></category>
		<category><![CDATA[getExternalContext]]></category>
		<category><![CDATA[getRealPath]]></category>
		<category><![CDATA[java string]]></category>
		<category><![CDATA[quot quot]]></category>
		<category><![CDATA[servletcontext]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=160</guid>
		<description><![CDATA[To get the real path we first need the servlet context ServletContext ctx = (ServletContext) FacesContext.getCurrentInstance() .getExternalContext().getContext(); After getting the servlet  context now we are able to get the real path String deploymentDirectoryPath = ctx.getRealPath(&#34;/&#34;);]]></description>
			<content:encoded><![CDATA[<p>To get the real path we first need the servlet context</p>
<pre class="brush: java;">

ServletContext ctx = (ServletContext) FacesContext.getCurrentInstance()
.getExternalContext().getContext();
</pre>
<p>After getting the servlet  context now we are able to get the real path</p>
<pre class="brush: java;">

String deploymentDirectoryPath = ctx.getRealPath(&quot;/&quot;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/how-to-get-real-path-in-jsf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quartz Job Scheduler</title>
		<link>http://developerarticles.com/quartz-job-scheduler/</link>
		<comments>http://developerarticles.com/quartz-job-scheduler/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 05:31:43 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[e commerce system]]></category>
		<category><![CDATA[expression]]></category>
		<category><![CDATA[java components]]></category>
		<category><![CDATA[minute]]></category>
		<category><![CDATA[scheduling]]></category>
		<category><![CDATA[scheduling service]]></category>
		<category><![CDATA[space fields]]></category>
		<category><![CDATA[unix tool]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=155</guid>
		<description><![CDATA[Quartz Overview Quartz is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java EE or Java SE application &#8211; from the smallest stand-alone application to the largest e-commerce system. Quartz can be used to create simple or complex schedules for executing tens, hundreds, or even [...]]]></description>
			<content:encoded><![CDATA[<h1>Quartz Overview</h1>
<p>Quartz is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java EE or Java SE application &#8211; from the smallest stand-alone application to the largest e-commerce system. Quartz can be used to create simple or complex schedules for executing tens, hundreds, or even tens-of-thousands of jobs; jobs whose tasks are defined as standard Java components that are programmed to fulfill the requirements of your application. The Quartz Scheduler includes many enterprise-class features, such as JTA transactions and clustering.</p>
<h1>CronTrigger</h1>
<p>cron is a UNIX tool that has been around for a long time, so its scheduling capabilities are powerful and proven. The CronTrigger class is based on the scheduling capabilities of cron.</p>
<p>CronTrigger uses &#8220;cron expressions&#8221;, which are able to create firing schedules such as: &#8220;At 8:00am every Monday through Friday&#8221; or &#8220;At 1:30am every last Friday of the month&#8221;.</p>
<p>Cron expressions are powerful, but can be pretty confusing. This tutorial aims to take some of the mystery out of creating a cron expression, giving users a resource which they can visit before having to ask in a forum or mailing list.</p>
<h2>Format</h2>
<p>A cron expression is a string comprised of 6 or 7 fields separated by white space. Fields can contain any of the allowed values, along with various combinations of the allowed special characters for that field. The fields are as follows:</p>
<table cellspacing="1" cellpadding="3">
<tbody>
<tr>
<th>Field Name</th>
<th>Mandatory</th>
<th>Allowed Values</th>
<th>Allowed Special Characters</th>
</tr>
<tr>
<td>Seconds</td>
<td>YES</td>
<td>0-59</td>
<td>, &#8211; * /</td>
</tr>
<tr>
<td>Minutes</td>
<td>YES</td>
<td>0-59</td>
<td>, &#8211; * /</td>
</tr>
<tr>
<td>Hours</td>
<td>YES</td>
<td>0-23</td>
<td>, &#8211; * /</td>
</tr>
<tr>
<td>Day of month</td>
<td>YES</td>
<td>1-31</td>
<td>, &#8211; * ? / L W</td>
</tr>
<tr>
<td>Month</td>
<td>YES</td>
<td>1-12 or JAN-DEC</td>
<td>, &#8211; * /</td>
</tr>
<tr>
<td>Day of week</td>
<td>YES</td>
<td>1-7 or SUN-SAT</td>
<td>, &#8211; * ? / L #</td>
</tr>
<tr>
<td>Year</td>
<td>NO</td>
<td>empty, 1970-2099</td>
<td>, &#8211; * /</td>
</tr>
</tbody>
</table>
<p>So cron expressions can be as simple as this: * * * * ? *<br />
or more complex, like this: 0 0/5 14,18,3-39,52 ? JAN,MAR,SEP MON-FRI 2002-2010</p>
<h2>Examples</h2>
<p>Here are some full examples:</p>
<table cellspacing="1" cellpadding="3">
<tbody>
<tr>
<th>Expression</th>
<th>Meaning</th>
</tr>
<tr>
<td>0 0 12 * * ?</td>
<td>Fire at 12pm (noon) every day</td>
</tr>
<tr>
<td>0 15 10 ? * *</td>
<td>Fire at 10:15am every day</td>
</tr>
<tr>
<td>0 15 10 * * ?</td>
<td>Fire at 10:15am every day</td>
</tr>
<tr>
<td>0 15 10 * * ? *</td>
<td>Fire at 10:15am every day</td>
</tr>
<tr>
<td>0 15 10 * * ? 2005</td>
<td>Fire at 10:15am every day during the year 2005</td>
</tr>
<tr>
<td>0 * 14 * * ?</td>
<td>Fire every minute starting at 2pm and ending at 2:59pm, every day</td>
</tr>
<tr>
<td>0 0/5 14 * * ?</td>
<td>Fire every 5 minutes starting at 2pm and ending at 2:55pm, every day</td>
</tr>
<tr>
<td>0 0/5 14,18 * * ?</td>
<td>Fire every 5 minutes starting at 2pm and ending at 2:55pm, AND fire every 5 minutes starting at 6pm and ending at 6:55pm, every day</td>
</tr>
<tr>
<td>0 0-5 14 * * ?</td>
<td>Fire every minute starting at 2pm and ending at 2:05pm, every day</td>
</tr>
<tr>
<td>0 10,44 14 ? 3 WED</td>
<td>Fire at 2:10pm and at 2:44pm every Wednesday in the month of March.</td>
</tr>
<tr>
<td>0 15 10 ? * MON-FRI</td>
<td>Fire at 10:15am every Monday, Tuesday, Wednesday, Thursday and Friday</td>
</tr>
<tr>
<td>0 15 10 15 * ?</td>
<td>Fire at 10:15am on the 15th day of every month</td>
</tr>
<tr>
<td>0 15 10 L * ?</td>
<td>Fire at 10:15am on the last day of every month</td>
</tr>
<tr>
<td>0 15 10 ? * 6L</td>
<td>Fire at 10:15am on the last Friday of every month</td>
</tr>
<tr>
<td>0 15 10 ? * 6L</td>
<td>Fire at 10:15am on the last Friday of every month</td>
</tr>
<tr>
<td>0 15 10 ? * 6L 2002-2005</td>
<td>Fire at 10:15am on every last friday of every month during the years 2002, 2003, 2004 and 2005</td>
</tr>
<tr>
<td>0 15 10 ? * 6#3</td>
<td>Fire at 10:15am on the third Friday of every month</td>
</tr>
<tr>
<td>0 0 12 1/5 * ?</td>
<td>Fire at 12pm (noon) every 5 days every month, starting on the first day of the month.</td>
</tr>
<tr>
<td>0 11 11 11 11 ?</td>
<td>Fire every November 11th at 11:11am.</td>
</tr>
</tbody>
</table>
<h2>Special characters</h2>
<ul>
<li><strong>*</strong> (<em>&#8220;all values&#8221;</em>) &#8211; used to select all values within a field. For example, &#8220;*&#8221; in the minute field means <em>&#8220;every minute&#8221;</em>.</li>
</ul>
<ul>
<li><strong>?</strong> (<em>&#8220;no specific value&#8221;</em>) &#8211; useful when you need to specify something in one of the two fields in which the character is allowed, but not the other. For example, if I want my trigger to fire on a particular day of the month (say, the 10th), but don&#8217;t care what day of the week that happens to be, I would put &#8220;10&#8243; in the day-of-month field, and &#8220;?&#8221; in the day-of-week field. See the examples below for clarification.</li>
</ul>
<ul>
<li><strong>-</strong> &#8211; used to specify ranges. For example, &#8220;10-12&#8243; in the hour field means <em>&#8220;the hours 10, 11 and 12&#8243;</em>.</li>
</ul>
<ul>
<li><strong>,</strong> &#8211; used to specify additional values. For example, &#8220;MON,WED,FRI&#8221; in the day-of-week field means <em>&#8220;the days Monday, Wednesday, and Friday&#8221;</em>.</li>
</ul>
<ul>
<li><strong>/</strong> &#8211; used to specify increments. For example, &#8220;0/15&#8243; in the seconds field means <em>&#8220;the seconds 0, 15, 30, and 45&#8243;</em>. And &#8220;5/15&#8243; in the seconds field means<em>&#8220;the seconds 5, 20, 35, and 50&#8243;</em>. You can also specify &#8216;/&#8217; after the &#8216;<strong>&#8216; character &#8211; in this case &#8216;</strong>&#8216; is equivalent to having &#8217;0&#8242; before the &#8216;/&#8217;. &#8217;1/3&#8242; in the day-of-month field means <em>&#8220;fire every 3 days starting on the first day of the month&#8221;</em>.</li>
</ul>
<ul>
<li><strong>L</strong> (<em>&#8220;last&#8221;</em>) &#8211; has different meaning in each of the two fields in which it is allowed. For example, the value &#8220;L&#8221; in the day-of-month field means <em>&#8220;the last day of the month&#8221;</em> &#8211; day 31 for January, day 28 for February on non-leap years. If used in the day-of-week field by itself, it simply means &#8220;7&#8243; or &#8220;SAT&#8221;. But if used in the day-of-week field after another value, it means <em>&#8220;the last xxx day of the month&#8221;</em> &#8211; for example &#8220;6L&#8221; means <em>&#8220;the last friday of the month&#8221;</em>. When using the &#8216;L&#8217; option, it is important not to specify lists, or ranges of values, as you&#8217;ll get confusing results.</li>
</ul>
<ul>
<li><strong>W</strong> (<em>&#8220;weekday&#8221;</em>) &#8211; used to specify the weekday (Monday-Friday) nearest the given day. As an example, if you were to specify &#8220;15W&#8221; as the value for the day-of-month field, the meaning is: <em>&#8220;the nearest weekday to the 15th of the month&#8221;</em>. So if the 15th is a Saturday, the trigger will fire on Friday the 14th. If the 15th is a Sunday, the trigger will fire on Monday the 16th. If the 15th is a Tuesday, then it will fire on Tuesday the 15th. However if you specify &#8220;1W&#8221; as the value for day-of-month, and the 1st is a Saturday, the trigger will fire on Monday the 3rd, as it will not &#8216;jump&#8217; over the boundary of a month&#8217;s days. The &#8216;W&#8217; character can only be specified when the day-of-month is a single day, not a range or list of days.</li>
<li><strong>#</strong> &#8211; used to specify &#8220;the nth&#8221; XXX day of the month. For example, the value of &#8220;6#3&#8243; in the day-of-week field means <em>&#8220;the third Friday of the month&#8221;</em> (day 6 = Friday and &#8220;#3&#8243; = the 3rd one in the month). Other examples: &#8220;2#1&#8243; = the first Monday of the month and &#8220;4#5&#8243; = the fifth Wednesday of the month. Note that if you specify &#8220;#5&#8243; and there is not 5 of the given day-of-week in the month, then no firing will occur that month.</li>
</ul>
<p><a href="http://www.quartz-scheduler.org/docs/examples/index.html" target="_blank">Quartz Examples</a></p>
<p><a href="http://www.quartz-scheduler.org/docs/tutorial/index.html" target="_blank">Quartz Job Scheduler Tutorials </a></p>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/quartz-job-scheduler/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MySQL errno 150 &#8211; Foreign Key Constraints</title>
		<link>http://developerarticles.com/mysql-errno-150-foreign-key-constraints/</link>
		<comments>http://developerarticles.com/mysql-errno-150-foreign-key-constraints/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 07:14:16 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[check id]]></category>
		<category><![CDATA[Constraints]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Key]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[source field]]></category>
		<category><![CDATA[structure]]></category>
		<category><![CDATA[unsigned check]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=151</guid>
		<description><![CDATA[Just quick note for anyone getting this error. It took me a little while to figure out. There can a be a various reasons for MySQL errno 150. Following are the ways to verify your structure in order to fix your problem 1) type of foreign key source and reference fields must be identical check: [...]]]></description>
			<content:encoded><![CDATA[<p>Just quick note for anyone getting this error. It took me a little while to figure out.</p>
<p>There can a be a various reasons for MySQL errno 150.<br />
Following are the ways to verify your structure in order to fix your problem</p>
<p>1) type of foreign key source and reference fields must be identical<br />
check: both set to integer</p>
<p>2) both source and reference fields must be unsigned<br />
check: both fields are unsigned</p>
<p>3) source field must be indexed<br />
check: id is indexed by idx</p>
<p>4) both tables must be InnoDB<br />
check: both table InnoDB</p>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/mysql-errno-150-foreign-key-constraints/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Killing Oracle Sessions</title>
		<link>http://developerarticles.com/killing-oracle-sessions/</link>
		<comments>http://developerarticles.com/killing-oracle-sessions/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 11:48:01 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[background code]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[inst]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[Killing]]></category>
		<category><![CDATA[oracle sessions]]></category>
		<category><![CDATA[relevant session]]></category>
		<category><![CDATA[serial code]]></category>
		<category><![CDATA[session command]]></category>
		<category><![CDATA[sid]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=143</guid>
		<description><![CDATA[Identify the Session to be Killed Killing sessions can be very destructive if you kill the wrong session, so be very careful when identifying the session to be killed. If you kill a session belonging to a background process you will cause an instance crash. Identify the offending session using the V$SESSION or GV$SESSION view [...]]]></description>
			<content:encoded><![CDATA[<h2>Identify the Session to be Killed</h2>
<p>Killing sessions can be very destructive if you kill the wrong session, so be very careful when identifying the session to be killed. If you kill a session belonging to a background process you will cause an instance crash.</p>
<p>Identify the offending session using the V$SESSION or GV$SESSION view as follows.</p>
<pre class="brush: plain;">
SELECT s.inst_id,
       s.sid,
       s.serial#,
       p.spid,
       s.username,
       s.program
FROM   gv$session s
       JOIN gv$process p ON p.addr = s.paddr AND p.inst_id = s.inst_id
WHERE  s.type != 'BACKGROUND';
</pre>
<p>The SID and SERIAL# values of the relevant session can then be substituted into the commands in the following sections.</p>
<h2>ALTER SYSTEM KILL SESSION</h2>
<p>The basic syntax for killing a session is shown below.</p>
<pre class="brush: plain;">
ALTER SYSTEM KILL SESSION 'sid,serial#';
</pre>
<p>The KILL SESSION command doesn&#8217;t actually kill the session. It merely asks the session to kill itself. In some situations, like waiting for a reply from a remote database or rolling back transactions, the session will not kill itself immediately and will wait for the current operation to complete. In these cases the session will have a status of &#8220;marked for kill&#8221;. It will then be killed as soon as possible.</p>
<p>In addition to the syntax described above, you can add the IMMEDIATE clause.</p>
<pre class="brush: plain;">
ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;
</pre>
<p>This does not affect the work performed by the command, but it returns control back to the current session immediately, rather than waiting for confirmation of the kill.</p>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/killing-oracle-sessions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tomcat POST Size Limit</title>
		<link>http://developerarticles.com/tomcat-post-size-limit/</link>
		<comments>http://developerarticles.com/tomcat-post-size-limit/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 06:51:23 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[apache tomcat]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[home directory]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[maxPostSize]]></category>
		<category><![CDATA[maxthreads]]></category>
		<category><![CDATA[quot]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=138</guid>
		<description><![CDATA[Apache Tomcat has a limit on the size of request that can be made using the POST HTTP method. Some time we need to submit data more than the limit. This article describes how this limit can be removed, enabling very large amount of data to be sent on server. Remove POST size limit If [...]]]></description>
			<content:encoded><![CDATA[<p>Apache Tomcat has a limit on the size of request that can be made using the POST HTTP method. Some time we need to submit data more than the limit. This article describes how this limit can be removed, enabling very large amount of data to be sent on server.</p>
<h2>Remove POST size limit</h2>
<p>If we send large amount of data then Apache Tomcat must be configured to accept large amounts of data being sent to it, as the size of the data exceeds the default 2MB POST size limit.</p>
<p>To remove this limit, edit the /conf/server.xml file in the Tomcat home directory as follows:</p>
<ul>
<li>Find the tag entry for the HTTP 8080 connector</li>
<li>Add the maxPostSize=&#8221;0&#8243; attribute and value to this tag such that it looks like:</li>
</ul>
<pre class="brush: plain;">
maxHttpHeaderSize=&quot;8192&quot;
maxThreads=&quot;150&quot;
minSpareThreads=&quot;25&quot;
maxSpareThreads=&quot;75&quot;
enableLookups=&quot;false&quot;
redirectPort=&quot;8443&quot;
acceptCount=&quot;100&quot;
connectionTimeout=&quot;20000&quot;
disableUploadTimeout=&quot;true&quot;
maxPostSize=&quot;0&quot; /&gt;
</pre>
<p>When you have completed editing the conf/server.xml file, save it and restart Apache Tomcat.</p>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/tomcat-post-size-limit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Introduction to Android</title>
		<link>http://developerarticles.com/an-introduction-to-android/</link>
		<comments>http://developerarticles.com/an-introduction-to-android/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:51:44 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[w8]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=132</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://developerarticles.com/an-introduction-to-android/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/an-introduction-to-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Views in Drupal 6</title>
		<link>http://developerarticles.com/using-views-in-drupal-6/</link>
		<comments>http://developerarticles.com/using-views-in-drupal-6/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 12:58:30 +0000</pubDate>
		<dc:creator>Muhammad Ikram Haider</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[administration area]]></category>
		<category><![CDATA[calendar function]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[d6]]></category>
		<category><![CDATA[gui interface]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[sony bmg]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=125</guid>
		<description><![CDATA[Drupal 6 has been out for a while now and modules are getting ported to the new version. For those of us that are relatively new to Drupal it has been a long slow wait – but the benefit is that we have a bit of extra motivation to learn and do “stuff” for ourselves. [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal 6 has been out for a while now and modules are getting ported to the new version. For those of us that are relatively new to Drupal it has been a long slow wait – but the benefit is that we have a bit of extra motivation to learn and do “stuff” for ourselves.</p>
<p>If the search for cool modules and functions on the Drupal site one thing you begin to see is the importance of modules that might not necessarily supply a prebuilt function, like a calendar for example, but provide the ability to define new types, views, or displays of data from either your Drupal site or a different source. The modules I’ve been exploring are:</p>
<ul>
<li>Feed Aggregator</li>
<li>CCK</li>
<li>Views</li>
<li>Panels</li>
</ul>
<p>Feed Aggreagtor is supplied in D6 and is pretty self explanatory. The remaining 3 are very powerful. I checked out the really cool <a href="http://myplay.com/">myplay.com</a> site Sony-BMG put together. If you haven’t seen it you should check it out. They made extensive use of Views and Panels to build this site. Views is in beta now for D6 and since I also wanted a calendar, I decided to start experimenting with Views. Ok – to explain that comment: the best Calendar function for D6 uses Views for the rendering of the event data. Because Views are still in beta I had to do some tweaking.</p>
<p>There are a bunch of overviews and tutorials for the original Views modules on drupal.org – so start there if you want an overview. What you’ll find however is that once you get past the “what is a view?” type stuff they aren’t much help. In short a View is a list of “stuff”. The list is defined in the Views administration area through a GUI interface. The list is generated by defining a query against your database – you add attributes to extract; arguments to select what to return; sorting criteria, etc. You can then select how to display the list: a node, a block, as a feed, etc. Pretty cool I think. How do you create one? That’s what I’ll cover.</p>
<p>To get started I’m working with the very latest Drupal code (6.2 at time of writing). I have a pretty basic config – but its completely to do date as of 3-May-2008. I’ve installed Views (6.x-2.0-beta2) and I’ve also installed the<a href="http://drupal.org/project/advanced_help"> Advanced Help</a> module (advanced_help-6.x-1.0-beta2).</p>
<p>To start with Views make sure you have the very latest by checking your adminstration area. Once you’ve done that then go into the page for administrating the Views module. You’ll see a few tabs for Adding and Importing views. Click on the Add choice and you should get a screen like this:<a href="http://developerarticles.com/wp-content/uploads/2010/06/views-step11.png"><img class="alignright size-medium wp-image-128" src="http://developerarticles.com/wp-content/uploads/2010/06/views-step11-300x184.png" alt="" width="240" height="147" /></a></p>
<p>This is the main spot where you create your view. Go ahead and bang in some values and make sure you pick off the “node” choice. What we’re going to do is create a simple “node” type view that will look like a page. We can create a link in the Navigation menu for this afterwards.</p>
<p>Once you fill in some values then hit add and you’ll get this next screen. It looks pretty complicated, but just remember all you’re doing is defining a query.<a href="http://developerarticles.com/wp-content/uploads/2010/06/views-step2.png"><img class="alignright size-medium wp-image-129" src="http://developerarticles.com/wp-content/uploads/2010/06/views-step2-300x156.png" alt="" width="300" height="156" /></a></p>
<p>Start with defining some fields to retrieve – just click on the plus sign. You’ll get an Ajax refresh that listed off the different groupings of fields. You should scroll around in here and see what’s available. Pick a few easy ones from the Node group like Author and Post date. As you pick fields you’ll see that Views is building the query for you and showing you example output:</p>
<p>As you move through the various items in the menu you can easily build some really cool output. The relationships block is used to define keys between fields. Arguments can be used to filter data based on a parameter, for example s returning records based on a date limiter.</p>
<p>After you get done playing around with the data you need to select a display view for your query results. There are several options, but for this example I’ve selected the page display mode. What this will be is create a view of the output in a “page” – gee imagine that. The output will display in the main content area.</p>
<p>The display view can either inherit from the base display or you can pick a new display mode and over ride the base settings with new fields or different sorting options or whatever. Just add a new display and then pick a setting – be sure to save things with the button down the page:</p>
<p>When doing this make sure to watch the button carefully as they are AJAX and change quickly. If you click something and you think nothing has happened, be sure to scroll down and look at the output.</p>
<p>Once you get done screwing around with your view you can then add it to a menu – for the page type just use the page settings. I added mine to my main menu. Experiment with the other display types.</p>
<p>That’s pretty much it. If you start to experiment with Views you can really learn to do some very interesting things. This is especially true for very active group/team sites where a lot of people are contributing content. One interesting things I’ve done with Views is assemble sorted “update” pages that show the latest contributions sorted by dates, or by users. This is a great way to keep up to date on what your teamates are doing.</p>
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/using-views-in-drupal-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSF AJAX Framework Matrix</title>
		<link>http://developerarticles.com/jsf-ajax-framework-matrix/</link>
		<comments>http://developerarticles.com/jsf-ajax-framework-matrix/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 11:36:49 +0000</pubDate>
		<dc:creator>Qasim Khan</dc:creator>
				<category><![CDATA[JSF]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[community tool]]></category>
		<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[framework components]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[tool support]]></category>

		<guid isPermaLink="false">http://developerarticles.com/?p=118</guid>
		<description><![CDATA[Sometime it becomes quite difficult to choose between the JSF AJAX frameworks but based on the following parameters we can choose the best appropriate framework Components Documentation AJAX Integration Browser support Community Tool support (Eclipse, NetBeans) It’s not possible for us to go through all the available frameworks one by one so for our ease [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime it becomes quite difficult to choose between the JSF AJAX frameworks but based on the following parameters we can choose the best appropriate framework</p>
<ul>
<li>Components</li>
<li>Documentation</li>
<li>AJAX Integration</li>
<li>Browser support</li>
<li>Community</li>
<li>Tool support (Eclipse, NetBeans)</li>
</ul>
<p>It’s not possible for us to go through all the available frameworks one by one so for our ease <a href="http://www.jsfmatrix.net/">http://www.jsfmatrix.net/</a> listed the features of all the available frameworks and their components.</p>
<p style="text-align: center;"><a href="http://developerarticles.com/wp-content/uploads/2010/06/jsf-comparison.jpg"><img class="aligncenter size-full wp-image-119" title="jsf comparison" src="http://developerarticles.com/wp-content/uploads/2010/06/jsf-comparison.jpg" alt="" width="621" height="322" /></a></p>
<p style="text-align: center;">
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://developerarticles.com/jsf-ajax-framework-matrix/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

