<?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>NeilSys</title>
	<atom:link href="http://www.arthurneil.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.arthurneil.com</link>
	<description>Contribution towards brotherhood</description>
	<lastBuildDate>Thu, 17 May 2012 06:06:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Java &#8211; getClass().getResource() always returning null &#8211; IntelliJ Idea Fix</title>
		<link>http://www.arthurneil.com/java/java-getclass-getresource-returning-null-intellij-idea-fix</link>
		<comments>http://www.arthurneil.com/java/java-getclass-getresource-returning-null-intellij-idea-fix#comments</comments>
		<pubDate>Thu, 17 May 2012 06:04:56 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Weird Errors]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2458</guid>
		<description><![CDATA[If you get the error like this and you are sure that you have set the absolute/relative path to the file correctly, then don&#8217;t look anywhere, just check your classpath and everything lies there. If you are using any IDE (Eclipse/IntelliJ ID) make sure you update the classpath in the buildpath or in the settings. [...]]]></description>
			<content:encoded><![CDATA[<p>If you get the error like this and you are sure that you have set the absolute/relative path to the file correctly, then don&#8217;t look anywhere, <strong>just check your classpath</strong> and everything lies there. If you are using any IDE (Eclipse/IntelliJ ID) make sure you update the classpath in the buildpath or in the settings.</p>
<p>For IntelliJ Idea;</p>
<p>1. Press F4 (Right click on project -&gt; open module settings)</p>
<p>2. On the left hand side, Find SDK&#8217;s option.</p>
<p>3. Click and find Classpath tab.</p>
<p>4. Update the classpath of your project here.</p>
<p>5. Now build and give a smile <img src='http://www.arthurneil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/java/java-getclass-getresource-returning-null-intellij-idea-fix/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intellij Idea &#8211; Compiler internal error. Process terminated with exit code 3</title>
		<link>http://www.arthurneil.com/java/intellij-idea-compiler-internal-error-process-terminated-exit-code-3</link>
		<comments>http://www.arthurneil.com/java/intellij-idea-compiler-internal-error-process-terminated-exit-code-3#comments</comments>
		<pubDate>Wed, 16 May 2012 16:59:09 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Weird Errors]]></category>
		<category><![CDATA[bug fixes]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2456</guid>
		<description><![CDATA[Just increase the maximum heap size of the compiler(Setting-&#62;Compiler-&#62;Java Compiler) That should solve it.]]></description>
			<content:encoded><![CDATA[<p>Just increase the maximum heap size of the compiler(Setting-&gt;Compiler-&gt;Java Compiler)</p>
<p>That should solve it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/java/intellij-idea-compiler-internal-error-process-terminated-exit-code-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hibernate&#8217;s HQL &#8220;inner join on&#8221; limitations</title>
		<link>http://www.arthurneil.com/database-2/hibernates-hql-inner-join-on-limitations</link>
		<comments>http://www.arthurneil.com/database-2/hibernates-hql-inner-join-on-limitations#comments</comments>
		<pubDate>Fri, 20 Apr 2012 14:05:25 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[hibernate]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2451</guid>
		<description><![CDATA[If you haven&#8217;t defined the association in the mapping file; then you can&#8217;t expect queries as follows will work as expected; Query query = session.createQuery(&#8220;from Cat cat inner join Owner owner on cat.OwnerId = owner.Id where owner.Name=&#8217;Duke&#8217;&#8221;); It seems that hibernate does not support arbitrary relationships between object being defined in the &#8220;on&#8221; clause.. You [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t defined the association in the mapping file; then you can&#8217;t expect queries as follows will work as expected;</p>
<blockquote><p>Query query = session.createQuery(&#8220;from Cat cat inner join Owner owner on cat.OwnerId = owner.Id where owner.Name=&#8217;Duke&#8217;&#8221;);</p></blockquote>
<p>It seems that hibernate does not support arbitrary relationships between object being defined in the &#8220;on&#8221; clause.. You will get an error saying;</p>
<p><em>Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1, column xx</em></p>
<p>The solution to this is to use HQL with a cartesian product or cross join and do something like;</p>
<blockquote><p>Query query = session.createQuery(&#8220;from Cat cat,Owner owner where cat.OwnerId = owner.Id and owner.Name=&#8217;Duke&#8217;&#8221;);</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/database-2/hibernates-hql-inner-join-on-limitations/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is serialVersionUID?</title>
		<link>http://www.arthurneil.com/java/serialversionuid</link>
		<comments>http://www.arthurneil.com/java/serialversionuid#comments</comments>
		<pubDate>Thu, 19 Apr 2012 14:02:42 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2448</guid>
		<description><![CDATA[Java platform allows us to create reusable objects in memory. However, all of those objects exist only as long as the Java virtual machine1 remains running. It would be nice if the objects we create could exist beyond the lifetime of the virtual machine, wouldn&#8217;t it? Well, with object serialization, you can flatten your objects [...]]]></description>
			<content:encoded><![CDATA[<p>Java platform allows us to create reusable objects in memory. However, all of those objects exist only as long as the Java virtual machine1 remains running. It would be nice if the objects we create could exist beyond the lifetime of the virtual machine, wouldn&#8217;t it? Well, with object serialization, you can flatten your objects and reuse them in powerful ways.</p>
<p>Object serialization is the process of saving an object&#8217;s state to a sequence of bytes, as well as the process of rebuilding those bytes into a live object at some future time. The Java Serialization API provides a standard mechanism for developers to handle object serialization. The API is small and easy to use, provided the classes and methods are understood.</p>
<p>The serialization runtime associates with each serializable class a version number, called a serialVersionUID, which is used during deserialization to verify that the sender and receiver of a serialized object have loaded classes for that object that are compatible with respect to serialization. If the receiver has loaded a class for the object that has a different serialVersionUID than that of the corresponding sender&#8217;s class, then deserialization will result in an InvalidClassException. A serializable class can declare its own serialVersionUID explicitly by declaring a field named &#8220;serialVersionUID&#8221; that must be static, final, and of type long:</p>
<p>ANY-ACCESS-MODIFIER static final long serialVersionUID = 42L;</p>
<p>If a serializable class does not explicitly declare a serialVersionUID, then the serialization runtime will calculate a default serialVersionUID value for that class based on various aspects of the class, as described in the Java(TM) Object Serialization Specification. However, it is strongly recommended that all serializable classes explicitly declare serialVersionUID values, since the default serialVersionUID computation is highly sensitive to class details that may vary depending on compiler implementations, and can thus result in unexpected InvalidClassExceptions during deserialization. Therefore, to guarantee a consistent serialVersionUID value across different java compiler implementations, a serializable class must declare an explicit serialVersionUID value. It is also strongly advised that explicit serialVersionUID declarations use the private modifier where possible, since such declarations apply only to the immediately declaring class&#8211;serialVersionUID fields are not useful as inherited members.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/java/serialversionuid/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Axis2 Installation</title>
		<link>http://www.arthurneil.com/found-it-useful/apache-axis2-installation</link>
		<comments>http://www.arthurneil.com/found-it-useful/apache-axis2-installation#comments</comments>
		<pubDate>Wed, 18 Apr 2012 13:56:38 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Found it useful]]></category>
		<category><![CDATA[installations]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2444</guid>
		<description><![CDATA[Download Axis2 from http://axis.apache.org/axis2/java/core/download.cgi Unzip the Axis2 Standard Binary Distribution into &#8220;C:\DevTools\axis2-1.3&#8243; NOTE: Substitute the appropriate path to the current version of Axis2 Add the following system environment variables AXIS2_HOME=C:\DevTools\axis2-1.3 Add the following to the PATH %AXIS2_HOME%\bin; [NOTE: You are doing all this so that you have access to the command line utilities like wsdl2java etc.] [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Download Axis2 from http://axis.apache.org/axis2/java/core/download.cgi</li>
<li>Unzip the Axis2 Standard Binary Distribution into &#8220;C:\DevTools\axis2-1.3&#8243;<br />
NOTE: Substitute the appropriate path to the current version of Axis2</li>
<li>Add the following system environment variables<br />
AXIS2_HOME=C:\DevTools\axis2-1.3</li>
<li>Add the following to the PATH<br />
%AXIS2_HOME%\bin;<br />
[NOTE: You are doing all this so that you have access to the command line utilities like wsdl2java etc.]</li>
<li>Copy the axis2.war to the &#8220;C:\DevTools\Tomcat 5.5\webapps&#8221; directory</li>
<li>Browse to http://localhost/axis2/axis2-web/HappyAxis.jsp and verify that all needed components are installed</li>
<li>Copy any needed modules(http://axis.apache.org/axis2/java/core/modules/index.html) to &#8220;C:\DevTools\Tomcat 5.5\webapps\axis2\WEB-INF\modules&#8221;</li>
<li>Restart Tomcat</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/found-it-useful/apache-axis2-installation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change username/password in TortoiseSVN</title>
		<link>http://www.arthurneil.com/found-it-useful/change-users-tortoisesvn</link>
		<comments>http://www.arthurneil.com/found-it-useful/change-users-tortoisesvn#comments</comments>
		<pubDate>Wed, 18 Apr 2012 13:43:10 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Found it useful]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2439</guid>
		<description><![CDATA[In TortiseSVN settings (right click on the icon and choose settings), open the Saved Data tab, and clear out the Authentication Data. The side effect is that it clears out all authentication data, and you will have to re-enter your own username/password.]]></description>
			<content:encoded><![CDATA[<p>In TortiseSVN settings (right click on the icon and choose settings), open the Saved Data tab, and clear out the Authentication Data. The side effect is that it clears out all authentication data, and you will have to re-enter your own username/password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/found-it-useful/change-users-tortoisesvn/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Most Useful Keyboard Shortcuts for Intellij IDEA</title>
		<link>http://www.arthurneil.com/found-it-useful/keyboard-shortcuts-intellij-idea</link>
		<comments>http://www.arthurneil.com/found-it-useful/keyboard-shortcuts-intellij-idea#comments</comments>
		<pubDate>Tue, 17 Apr 2012 13:34:08 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Found it useful]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2436</guid>
		<description><![CDATA[Ctrl+B: Go to declaration. This will go to the declaration of whatever your cursor is over. Whether it be a variable, method, or class, Ctrl+B will take you to where it was declared. Ctrl+N: Go to class Ctrl+Shift+Backspace: Navigate to last edit location .It takes you to the location of the last thing you were [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ctrl+B:</strong> Go to declaration. This will go to the declaration of whatever your cursor is over. Whether it be a variable, method, or class, Ctrl+B will take you to where it was declared.</p>
<p><strong>Ctrl+N:</strong> Go to class</p>
<p><strong>Ctrl+Shift+Backspace:</strong> Navigate to last edit location .It takes you to the location of the last thing you were editing. Keep pressing it to go back further in your editing history.</p>
<p><strong>Ctrl+W:</strong> Expand selection. Ctrl+W smartly expands your selection. If your cursor is in the middle of a variable name it will select the variable name. Continue pressing Ctrl+W to expand your selection more and more. If you expand too far, you can press Ctrl+Shift+W to decrease your selection.</p>
<p><strong>Ctrl+Shift+N:</strong> Go to file</p>
<p><strong>Ctrl+Shift+I</strong>: Open quick definition lookup. It opens a popup that shows the definition of whatever your cursor is over. Press escape to close the popup.</p>
<p><strong>Alt+Shift+Insert</strong> &#8211; Enable vertical selection of text. Use Alt+Shift+Insert again to disable it.</p>
<p><strong>Ctrl+/:</strong> Comment/uncomment with line comment. Handy for quickly commenting out the current line or your current selection.</p>
<p><strong>Ctrl+C or Ctrl+X</strong> (without a selection): Copy or Cut the current line. If you have nothing selected, it will copy or cut the whole line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/found-it-useful/keyboard-shortcuts-intellij-idea/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importing .sql file to postgresql</title>
		<link>http://www.arthurneil.com/database-2/importing-sql-file-postgresql</link>
		<comments>http://www.arthurneil.com/database-2/importing-sql-file-postgresql#comments</comments>
		<pubDate>Mon, 16 Apr 2012 13:28:34 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2432</guid>
		<description><![CDATA[You can use psql command line tool: psql -h hostname -p port_number -U username databasename -f your_file.sql]]></description>
			<content:encoded><![CDATA[<p>You can use psql command line tool:</p>
<p>psql -h hostname -p port_number -U username databasename -f your_file.sql</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/database-2/importing-sql-file-postgresql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>psql: FATAL: Ident authentication failed for user</title>
		<link>http://www.arthurneil.com/weird-errors/psql-fatal-ident-authentication-failed-user</link>
		<comments>http://www.arthurneil.com/weird-errors/psql-fatal-ident-authentication-failed-user#comments</comments>
		<pubDate>Sun, 15 Apr 2012 13:14:23 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Weird Errors]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2428</guid>
		<description><![CDATA[If you have done the new installation, make sure you accessing with the default user credentials. The default user name is &#8216;postgres&#8217; and the password is the one you chose when you did the installation. And now try creating your db and try to access. All should be well. Go to C:\Program Files\PostgreSQL\9.1\bin createddb -U [...]]]></description>
			<content:encoded><![CDATA[<p>If you have done the new installation, make sure you accessing with the default user credentials. The default user name is &#8216;postgres&#8217; and the password is the one you chose when you did the installation.</p>
<p>And now try creating your db and try to access. All should be well.</p>
<p>Go to C:\Program Files\PostgreSQL\9.1\bin</p>
<p>createddb -U postgres test</p>
<p>password: &lt;Enter the password set while installing&gt;</p>
<p>psql -U postgres test</p>
<p>If you still face the issue;<br />
open <strong>/data/pg_hba.conf</strong></p>
<p>This file contains following information;</p>
<ul>
<li>    Which hosts are allowed to connect</li>
<li>    How clients are authenticated</li>
<li>    Which PostgreSQL user names they can use</li>
<li>    Which databases they can access</li>
</ul>
<p>You may want to add these lines to make it work.</p>
<p>local    all    all    trust<br />
host    all    127.0.0.1/32    trust</p>
<p>For more info; Refer, http://www.postgresql.org/docs/8.3/static/auth-pg-hba-conf.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/weird-errors/psql-fatal-ident-authentication-failed-user/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Struts &#8211; HttpServletRequest &#8211; Get referrer</title>
		<link>http://www.arthurneil.com/java/httpservletrequest-referrer</link>
		<comments>http://www.arthurneil.com/java/httpservletrequest-referrer#comments</comments>
		<pubDate>Tue, 13 Mar 2012 17:46:46 +0000</pubDate>
		<dc:creator>L J Arthur Neil</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Struts 2]]></category>
		<category><![CDATA[Web apps]]></category>

		<guid isPermaLink="false">http://www.arthurneil.com/?p=2418</guid>
		<description><![CDATA[HttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get(ServletActionContext.HTTP_REQUEST); String referrer = request.getHeader(&#8220;referer&#8221;);]]></description>
			<content:encoded><![CDATA[<p><strong>HttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get(ServletActionContext.HTTP_REQUEST);</strong></p>
<p><strong>String referrer = request.getHeader(&#8220;referer&#8221;);</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.arthurneil.com/java/httpservletrequest-referrer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

