<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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>encounter with the geek kind</title>
	<link>http://blogs.exist.com/jcutaran</link>
	<description>just another tech doc</description>
	<pubDate>Fri, 27 Aug 2010 00:59:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>working with GIT</title>
		<link>http://blogs.exist.com/jcutaran/2010/08/26/working-with-git/</link>
		<comments>http://blogs.exist.com/jcutaran/2010/08/26/working-with-git/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 00:50:28 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[git]]></category>

		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2010/08/26/working-with-git/</guid>
		<description><![CDATA[RETRIEVING COPY FROM SVN
note: the url specified should be a level below the trunk directory
git svn init &#60;repository url&#62; --stdlayout --no-minimize-url
note: specify a revision number where all branches have committed
git svn fetch -r&#60;revision number&#62;:HEAD
example:
branch1 latest commit is revision 2370
branch2 latest commit is revision 2389
trunk latest commit is 2390
-to retrieve copies for all branches
git svn fetch [...]]]></description>
			<content:encoded><![CDATA[<p>RETRIEVING COPY FROM SVN<br />
note: the url specified should be a level below the trunk directory<br />
<code>git svn init &lt;repository url&gt; --stdlayout --no-minimize-url</code><br />
note: specify a revision number where all branches have committed<br />
<code>git svn fetch -r&lt;revision number&gt;:HEAD</code></p>
<p>example:<br />
branch1 latest commit is revision 2370<br />
branch2 latest commit is revision 2389<br />
trunk latest commit is 2390<br />
-to retrieve copies for all branches<br />
<code>git svn fetch -r2370:HEAD</code><br />
-unless you only need the trunk and branch2<br />
<code>git svn fetch -r2389:HEAD</code></p>
<p>AFTER RETRIEVING COPY FROM REMOTE VERSIONING SYSTEM(GIT/SVN)<br />
-list your local branches, initially you should only get &#8216;master&#8217; which is the the local of trunk<br />
<code>git branch</code><br />
-list your remote branches<br />
<code>git branch -r</code><br />
-perform branching, one from listed remote branches<br />
<code>git checkout &lt;remote branch&gt;</code><br />
-specify branch to be placed to your development environment, this will be the local branch, a copy of the remote branch you specified<br />
<code>git checkout -b &lt;new local branch name&gt;</code><br />
-switch among trunk and branches<br />
<code>git checkout &lt;local branch name&gt;</code><br />
notes:<br />
if your trunk and branches still have the same structure, it can be used as a single workspace of your IDE<br />
however if a restructuring has been made in your trunk, i suggest set-up a new work space for it in your IDE.</p>
<p>MY USUAL WAY OF COMMITTING LOCALLY<br />
-check files for commit<br />
<code>git status</code><br />
-check changes made<br />
<code>git diff</code><br />
-given that everything is okay and everything is for staging<br />
<code>git add .</code><br />
-do commit<br />
<code>git commit -m &lt;comment&gt;</code><br />
-check index<br />
<code>gitk</code></p>
<p>MY USUAL WAY OF COMMITTING REMOTELY IN SVN<br />
-update my local files<br />
<code>git svn fetch</code><br />
-check conflicts and merge<br />
<code>git svn rebase</code><br />
-given that there are no conflicts<br />
<code>git svn dcommit</code></p>
<p>FIND COMMIT VERSION<br />
<code>git log</code></p>
<p>UNDO WHAT HAS BEEN COMMITTED TO REMOTE REPOSITORY<br />
<code>git revert &lt;commit version&gt;</code></p>
<p>THANKS to clim!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2010/08/26/working-with-git/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8230; creating thread &#8230;</title>
		<link>http://blogs.exist.com/jcutaran/2010/07/14/creating-thread/</link>
		<comments>http://blogs.exist.com/jcutaran/2010/07/14/creating-thread/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 04:23:44 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2010/07/14/creating-thread/</guid>
		<description><![CDATA[Learned this from Ed
DO NOT do this


for (int idx = 1; idx &#60;= processors+1; idx++)
{
   new Thread(tg,
              this.new SampleProcessorServiceThread(),
              "thread" + idx).start();
}
this.doWait();
 ...


&#8212;
Instead, DO it this way


Thread[] [...]]]></description>
			<content:encoded><![CDATA[<p>Learned this from Ed</p>
<p>DO NOT do this</p>
<p><code></p>
<pre>
for (int idx = 1; idx &lt;= processors+1; idx++)
{
   new Thread(tg,
              this.new SampleProcessorServiceThread(),
              "thread" + idx).start();
}
this.doWait();
 ...
</pre>
<p></code></p>
<p>&#8212;</p>
<p>Instead, DO it this way</p>
<p><code></p>
<pre>
Thread[] threads = new Thread[processors+1];
for (int idx = 1; idx &lt;= processors+1; idx++)
{
   threads[idx-1] = new Thread(tg,
              this.new SampleProcessorServiceThread(),
              "thread" + idx);
    threads[idx-1].start();
}
for (int idx = 0; idx &lt; processors; ++idx)
{
    try
    {
        threads[idx].join();
    }
    catch (InterruptedException e)
    {
        // Don't care
    }
 }
...
</pre>
<p> </code></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2010/07/14/creating-thread/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Firebug for your browser.</title>
		<link>http://blogs.exist.com/jcutaran/2008/11/26/firebug-for-your-browser/</link>
		<comments>http://blogs.exist.com/jcutaran/2008/11/26/firebug-for-your-browser/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 10:26:18 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[firebug for ie]]></category>

		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2008/11/26/firebug-for-your-browser/</guid>
		<description><![CDATA[Here&#8217;s something Roy Natavio found.
If you need firebug for your browser other than Firefox,  add this in your code
&#60;script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'&#62;&#60;/script&#62;

You now have a firebug on that page.
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s something Roy Natavio found.</p>
<p>If you need firebug for your browser other than Firefox,  add this in your code</p>
<p><code>&lt;script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'&gt;&lt;/script&gt;<br />
</code></p>
<p>You now have a firebug on that page.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2008/11/26/firebug-for-your-browser/feed/</wfw:commentRss>
		</item>
		<item>
		<title>mod_jk and jboss</title>
		<link>http://blogs.exist.com/jcutaran/2008/11/07/mod_jk-and-jboss/</link>
		<comments>http://blogs.exist.com/jcutaran/2008/11/07/mod_jk-and-jboss/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 08:22:10 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[jboss]]></category>

		<category><![CDATA[mod_jk]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2008/11/07/mod_jk-and-jboss/</guid>
		<description><![CDATA[1. Assuming you have Apache2 installed, 
If not get the latest Apache2 package from Apache.org and install it. We require no special configuration, just use the default settings.
In the following steps, APACHE_HOME will represent the Apache install directory.
2. Assuming you have downloaded and installed mod_jk 1.2
Download the latest package available from Tomcats&#8217;s &#8216;Download Tomcat connector [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1.</strong> Assuming you have Apache2 installed, </p>
<p>If not get the latest Apache2 package from Apache.org and install it. We require no special configuration, just use the default settings.<br />
In the following steps, APACHE_HOME will represent the Apache install directory.</p>
<p><strong>2.</strong> Assuming you have downloaded and installed mod_jk 1.2</p>
<p>Download the latest package available from Tomcats&#8217;s &#8216;Download Tomcat connector section&#8217; page . Always download the latest stable release if possible.<br />
Rename the lib mod_jk.so and drop it in APACHE_HOME/modules directory.<br />
NOTE: Don&#8217;t use any release prior to mod_jk 1.2.15. Earlier releases are fairly buggy.</p>
<p><strong>3. </strong>Setup Apache to use modjk<br />
Add this line at the very bottom in APACHE_HOME/conf/httpd.conf<br />
<code><br />
# Include mod_jk configuration file<br />
Include conf/mod-jk.conf<br />
</code></p>
<p><strong>4.</strong> Create the modjk config<br />
Under APACHE_HOME/conf, create mod-jk.conf and populate it as follows:<br />
<code><br />
# Load mod_jk module<br />
# Specify the filename of the mod_jk lib, comment line if you already declared LoadModule jk_module modules/mod_jk.so<br />
LoadModule jk_module modules/mod_jk.so<br />
# Where to find workers.properties<br />
JkWorkersFile conf/workers.properties<br />
# Where to put jk logs<br />
JkLogFile logs/mod_jk.log<br />
# Set the jk log level [debug/error/info]<br />
JkLogLevel info<br />
 Select the log format<br />
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"<br />
# JkOptions indicates to send SSK KEY SIZE<br />
# Notes:<br />
# 1) Changed from +ForwardURICompat.<br />
# 2) For mod_rewrite compatibility, use +ForwardURIProxy (default since 1.2.24)<br />
# See http://tomcat.apache.org/security-jk.html<br />
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories<br />
# JkRequestLogFormat<br />
JkRequestLogFormat "%w %V %T"<br />
# Mount your applications<br />
JkMount /__application__/*  node1<br />
# You can use external file for mount points.<br />
# It will be checked for updates each 60 seconds.<br />
# The format of the file is: /url=worker<br />
# /examples/*=node1<br />
JkMountFile conf/uriworkermap.properties<br />
# Add shared memory.<br />
# This directive is present with 1.2.10 and<br />
# later versions of mod_jk, and is needed for<br />
# for load balancing to work properly<br />
# Note: Replaced JkShmFile logs/jk.shm due to SELinux issues. Refer to<br />
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452<br />
JkShmFile run/jk.shm<br />
# Add jkstatus for managing runtime data<br />
&lt;Location /jkstatus&gt;&lt;/Location&gt;<br />
JkMount node1<br />
Order deny,allow<br />
Deny from all<br />
Allow from 192.168.241.116<br />
&lt;/Location&gt;<br />
</code><br />
mod_jk is ready to forward requests to JBoss instances. We need now to setup the workers</p>
<p>Note: As of mod_jk 1.2.6+ you need to include &#8220;JkMountCopy all&#8221; in globals if you intend to specify global JkMount&#8217;s or JkMountFile&#8217;s instead of per VirtualHost. If you do not want to copy the same JkMount/JkMountFile for each VirtualHost, you can specify &#8220;JkMountCopy On&#8221; inside the VirtualHost directive.</p>
<p><strong>5.</strong> make sure that APACHE_HOME/run and APACHE_HOME/log folders exist</p>
<p><strong>6.</strong> Configuring workers<br />
Under APACHE_HOME/conf, create workers.properties and populate it as follows:<br />
<code><br />
# Define list of workers that will be used<br />
# for mapping requests<br />
# The configuration directives are valid<br />
# for the mod_jk version 1.2.18 and later<br />
#<br />
worker.list=node1<br />
# Define Node1<br />
# modify the host as your host IP or DNS name.<br />
worker.node1.port=8009<br />
worker.node1.host=192.168.241.116<br />
worker.node1.type=ajp13<br />
worker.node1.lbfactor=1<br />
# worker.node1.connection_pool_size=10 (1)<br />
</code><br />
Note: this is a very simple worker file</p>
<p><strong>7.</strong> Create the URI to worker map file</p>
<p>Create a uriworkermap.properties file in the APACHE_HOME/conf directory. This file should contain the URL mappings you want Apache to forward to Tomcat. The format of the file is /url=worker_name. To get things started, paste this example into the file you created:<br />
<code><br />
# Simple worker configuration file<br />
#<br />
# Mount the Servlet context to the ajp13 worker<br />
/portal/=node1<br />
/portal/*=node1<br />
/*=node1<br />
</code></p>
<p>Note: I used /* to enable Apache show all contents(css, images, etc)</p>
<p><strong>8.</strong> Restart Apache</p>
<p><strong>9.</strong> Configure Jboss</p>
<p>Edit jboss-portal-2.6.6.GA/server/default/deploy/jboss-web.deployer/server.xml</p>
<p>locate  &lt;Engine&gt; tag element and add an attribute jvmRoute</p>
<p>your tag will now look like <code>&lt;Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1"&gt;<br />
.</code></p>
<p>In the server.xml file, make sure that the AJP 1.3 Connector is uncommented</p>
<p><strong>10.</strong> Activate the UseJK Valve in JBoss</p>
<p>Edit jboss-portal-2.6.6.GA/server/default/deploy/META-INF/jboss-service.xml</p>
<p>Locate the  element with a name of UseJK, and set its value to &#8220;true&#8221;:<br />
<code><br />
&lt;attribute name="UseJK"&gt;true&lt;/attribute&gt;<br />
</code></p>
<p><strong>11.</strong>Restart JBoss AS</p>
<hr />
<p><strong><a href="http://www.jboss.org/community/docs/DOC-12525">Reference</a></strong> </p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2008/11/07/mod_jk-and-jboss/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PermGenSpace problem</title>
		<link>http://blogs.exist.com/jcutaran/2008/10/29/permgenspace-problem/</link>
		<comments>http://blogs.exist.com/jcutaran/2008/10/29/permgenspace-problem/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 10:06:27 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2008/10/29/permgenspace-problem/</guid>
		<description><![CDATA[okay, this issue i had a year ago. And got it again.
solution: 
simply add in your JAVA_OPTS
-Xmx768m -XX:MaxPermSize=768m
by the way, i have i have 1G of memory.
]]></description>
			<content:encoded><![CDATA[<p>okay, this issue i had a year ago. And got it again.</p>
<p>solution: </p>
<p>simply add in your JAVA_OPTS</p>
<p>-Xmx768m -XX:MaxPermSize=768m</p>
<p>by the way, i have i have 1G of memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2008/10/29/permgenspace-problem/feed/</wfw:commentRss>
		</item>
		<item>
		<title>maven and ear packaging</title>
		<link>http://blogs.exist.com/jcutaran/2008/09/17/maven-and-ear-packaging/</link>
		<comments>http://blogs.exist.com/jcutaran/2008/09/17/maven-and-ear-packaging/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 08:49:23 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[ear packaging issue]]></category>

		<category><![CDATA[maven ear]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2008/09/17/maven-and-ear-packaging/</guid>
		<description><![CDATA[okay, i just needed to place some files in the ear file.
solution:
-create src/main/application
-anything you place in that folder will be included in the ear file
-DO NOT USE &#8217;src/main/resources&#8217;, it will not get into your ear file
-thanks to cata
]]></description>
			<content:encoded><![CDATA[<p>okay, i just needed to place some files in the ear file.</p>
<p>solution:<br />
-create src/main/application<br />
-anything you place in that folder will be included in the ear file<br />
-<strong>DO NOT USE</strong> &#8217;src/main/resources&#8217;, it will not get into your ear file</p>
<p>-thanks to cata</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2008/09/17/maven-and-ear-packaging/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Java, the IP address and reverse proxy</title>
		<link>http://blogs.exist.com/jcutaran/2008/09/15/java-the-ip-address-and-reverse-proxy/</link>
		<comments>http://blogs.exist.com/jcutaran/2008/09/15/java-the-ip-address-and-reverse-proxy/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 07:17:43 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[IP address]]></category>

		<category><![CDATA[reverse proxy]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2008/09/15/java-the-ip-address-and-reverse-proxy/</guid>
		<description><![CDATA[Okay so there is the getRemoteAddr() method of HttpServletRequest, but when you&#8217;re using a reverse proxy that won&#8217;t work and it will just return 127.0.0.1
If so, look for the header &#8216;X-Forwarded-For&#8216; of your request object. (request.getHeader("X-Forwarded-For")).
But this will return null if using  non-reverse proxy. 

thanks to POLONKAI Gergely
]]></description>
			<content:encoded><![CDATA[<p>Okay so there is the <code>getRemoteAddr()</code> method of HttpServletRequest, but when you&#8217;re using a reverse proxy that won&#8217;t work and it will just return 127.0.0.1</p>
<p>If so, look for the header &#8216;<strong>X-Forwarded-For</strong>&#8216; of your request object. (<code>request.getHeader("X-Forwarded-For")</code>).<br />
But this will return null if using  non-reverse proxy. <img src='http://blogs.exist.com/jcutaran/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<a style="font-size:6pt" href="http://httpd.markmail.org/search/?q=reverse+proxy+preserve+ip#query:reverse%20proxy%20preserve%20ip+page:1+mid:3d5lba66mveyuc5w+state:results"><br />
thanks to POLONKAI Gergely</a><br /></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2008/09/15/java-the-ip-address-and-reverse-proxy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Linux: finding files given text within&#8230;</title>
		<link>http://blogs.exist.com/jcutaran/2008/08/13/linux-finding-files-given-text-within/</link>
		<comments>http://blogs.exist.com/jcutaran/2008/08/13/linux-finding-files-given-text-within/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 11:02:47 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2008/08/13/linux-finding-files-given-text-within/</guid>
		<description><![CDATA[after setting up the data source for my jbossportal,
i kinda need to play around with its layout and theme.
so i read the documentation,
but it was lacking on the files and its directories where those configurations can be found.
thanks to Nap:), he gave me a way of finding those with 
find . -name &#8216;*.xml&#8217; &#124; xargs [...]]]></description>
			<content:encoded><![CDATA[<p>after setting up the data source for my jbossportal,<br />
i kinda need to play around with its layout and theme.<br />
so i read the documentation,<br />
but it was lacking on the files and its directories where those configurations can be found.</p>
<p>thanks to Nap:), he gave me a way of finding those with </p>
<p>find . -name &#8216;*.xml&#8217; | xargs grep &#8220;phalanx&#8221;</p>
<p>first part, <code>find . -name '*.xml'  </code> does find all xml files<br />
second part, <code>xargs</code> which tells to operate on each of those files<br />
finally , <code>grep "phalanx"</code> which text contained within the files i&#8217;m looking for.</p>
<p>after it returned the files i needed,<br />
did the configuration and played with the layout of jbossportal.</p>
<p>oh, by the way, the output is kinda like this&#8230;</p>
<p>./server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/portal-layouts.xml:      phalanx<br />
./server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/portal-layouts.xml:      /phalanx/index.jsp<br />
./server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/portal-layouts.xml:      /phalanx/index.jsp<br />
./server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/portal-layouts.xml:      /layouts/phalanx/maximized.jsp<br />
./server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/portal-layouts.xml:      /layouts/phalanx/maximized.jsp<br />
./server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/portal-themes.xml:      nphalanx<br />
./server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/portal-themes.xml:<br />
./server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/portal-themes.xml:<br />
./server/default/deploy/jboss-portal.sar/conf/data/default-object.xml:               phalanx<br />
./server/default/deploy/jboss-portal.sar/conf/data/default-object.xml:               phalanx<br />
./server/default/deploy/jboss-portal.sar/META-INF/jboss-service.xml:      phalanx</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2008/08/13/linux-finding-files-given-text-within/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle: Could not create another database? Create another data source.</title>
		<link>http://blogs.exist.com/jcutaran/2008/08/13/oracle-could-not-create-another-database/</link>
		<comments>http://blogs.exist.com/jcutaran/2008/08/13/oracle-could-not-create-another-database/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 08:41:19 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2008/08/13/oracle-could-not-create-another-database/</guid>
		<description><![CDATA[I needed to set-up another data source using the same database server
&#8212;&#8211;
So using the SQL Plus, i created a user and granted privileges for it.
Creating User
  SQL&#62; create user username identified by password default tablespace user_tablespace temporary tablespace temp_tablespace;
e.g.
  SQL&#62; create user wpsdbusr identified by password default tablespace users temporary tablespace temp;

Granting Privileges
 [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to set-up another data source using the same database server</p>
<p>&#8212;&#8211;</p>
<p>So using the SQL Plus, i created a user and granted privileges for it.</p>
<p>Creating User<br />
<code>  SQL&gt; create user username identified by password default tablespace user_tablespace temporary tablespace temp_tablespace;<br />
</code>e.g.<br />
<code>  SQL&gt; create user wpsdbusr identified by password default tablespace users temporary tablespace temp;<br />
</code></p>
<p>Granting Privileges<br />
<code>  SQL&gt; grant connect, resource to username;<br />
</code>e.g.<br />
<code>  SQL&gt; grant connect, resource to wpsdbusr;<br />
</code><br />
now i have another data source for my project using the same database.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2008/08/13/oracle-could-not-create-another-database/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Transposing Records into One Field</title>
		<link>http://blogs.exist.com/jcutaran/2008/07/15/transposing-records-into-one-field/</link>
		<comments>http://blogs.exist.com/jcutaran/2008/07/15/transposing-records-into-one-field/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 06:27:54 +0000</pubDate>
		<dc:creator>Julius Cutaran</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://blogs.exist.com/jcutaran/2008/07/15/transposing-records-into-one-field/</guid>
		<description><![CDATA[As they say in Exist, There&#8217;s always a better way.
What I Did&#8230;
performed a loop for each record in my collection to retrieve another collection using a particular Id in the record
and placing the retrieved collection to be part of the record. 
The Effect&#8230; 
my screen populates very slow
The Solution&#8230;
from backend, transpose those collection being retrieved [...]]]></description>
			<content:encoded><![CDATA[<p>As they say in Exist, There&#8217;s always a better way.</p>
<p><strong>What I Did&#8230;<br />
</strong>performed a loop for each record in my collection to retrieve another collection using a particular Id in the record<br />
and placing the retrieved collection to be part of the record. </p>
<p><strong>The Effect&#8230; </strong><br />
my screen populates very slow</p>
<p><a href="http://docs.google.com/View?docid=dmd44wb_80ftbqtkf8">The Solution&#8230;</a><br />
from backend, transpose those collection being retrieved to be just one field so you need not to loop in your code</p>
<p><a href="http://docs.google.com/View?docid=dmd44wb_80ftbqtkf8"><font color="red">Click Here&#8230;</font></a></p>
<p>- thanks to ken and cata</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.exist.com/jcutaran/2008/07/15/transposing-records-into-one-field/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
