<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>betweenGo</title>
	
	<link>http://betweengo.com</link>
	<description>We make Ruby on Rails easy.  We make ATG easy.</description>
	<lastBuildDate>Sun, 14 Mar 2010 15:18:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/betweengo" /><feedburner:info uri="betweengo" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>betweengo</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Twitter Weekly Updates for 2010-03-07</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/TGqDzEe0VX0/</link>
		<comments>http://betweengo.com/2010/03/07/twitter-weekly-updates-for-2010-03-07/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 13:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/03/07/twitter-weekly-updates-for-2010-03-07/</guid>
		<description><![CDATA[
Ignore Files and Directories in Subversion. A little bit of a pain but it works. http://bit.ly/99GLxk #
How to Achieve Painless Registration. Getting people to register is always bedeviling for web application developers. http://bit.ly/9AJqmg #



Related posts:Twitter Weekly Updates for 2009-10-25
Ignore Files and Directories in Subversion
Twitter Weekly Updates for 2009-10-15



Related posts:<ol><li><a href='http://betweengo.com/2009/10/25/twitter-weekly-updates-for-2009-10-25/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-10-25'>Twitter Weekly Updates for 2009-10-25</a></li>
<li><a href='http://betweengo.com/2010/03/01/ignore-files-and-directories-in-subversion/' rel='bookmark' title='Permanent Link: Ignore Files and Directories in Subversion'>Ignore Files and Directories in Subversion</a></li>
<li><a href='http://betweengo.com/2009/08/23/twitter-weekly-updates-for-2009-10-15/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-10-15'>Twitter Weekly Updates for 2009-10-15</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Ignore Files and Directories in Subversion. A little bit of a pain but it works. <a href="http://bit.ly/99GLxk" rel="nofollow">http://bit.ly/99GLxk</a> <a href="http://twitter.com/betweengo/statuses/9880210106" class="aktt_tweet_time">#</a></li>
<li>How to Achieve Painless Registration. Getting people to register is always bedeviling for web application developers. <a href="http://bit.ly/9AJqmg" rel="nofollow">http://bit.ly/9AJqmg</a> <a href="http://twitter.com/betweengo/statuses/9890502173" class="aktt_tweet_time">#</a></li>
</ul>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F03%2F07%2Ftwitter-weekly-updates-for-2010-03-07%2F&amp;linkname=Twitter%20Weekly%20Updates%20for%202010-03-07"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2009/10/25/twitter-weekly-updates-for-2009-10-25/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-10-25'>Twitter Weekly Updates for 2009-10-25</a></li>
<li><a href='http://betweengo.com/2010/03/01/ignore-files-and-directories-in-subversion/' rel='bookmark' title='Permanent Link: Ignore Files and Directories in Subversion'>Ignore Files and Directories in Subversion</a></li>
<li><a href='http://betweengo.com/2009/08/23/twitter-weekly-updates-for-2009-10-15/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2009-10-15'>Twitter Weekly Updates for 2009-10-15</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/v2ghC3BHGR5bWhQwDCrqUASfBqE/0/da"><img src="http://feedads.g.doubleclick.net/~a/v2ghC3BHGR5bWhQwDCrqUASfBqE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/v2ghC3BHGR5bWhQwDCrqUASfBqE/1/da"><img src="http://feedads.g.doubleclick.net/~a/v2ghC3BHGR5bWhQwDCrqUASfBqE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=TGqDzEe0VX0:pjX3zH0WvOQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=TGqDzEe0VX0:pjX3zH0WvOQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=TGqDzEe0VX0:pjX3zH0WvOQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=TGqDzEe0VX0:pjX3zH0WvOQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=TGqDzEe0VX0:pjX3zH0WvOQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=TGqDzEe0VX0:pjX3zH0WvOQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=TGqDzEe0VX0:pjX3zH0WvOQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=TGqDzEe0VX0:pjX3zH0WvOQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=TGqDzEe0VX0:pjX3zH0WvOQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=TGqDzEe0VX0:pjX3zH0WvOQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=TGqDzEe0VX0:pjX3zH0WvOQ:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/TGqDzEe0VX0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/03/07/twitter-weekly-updates-for-2010-03-07/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/03/07/twitter-weekly-updates-for-2010-03-07/</feedburner:origLink></item>
		<item>
		<title>Ignore Files and Directories in Subversion</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/_LWsXeOQsOk/</link>
		<comments>http://betweengo.com/2010/03/01/ignore-files-and-directories-in-subversion/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 21:46:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Subversion]]></category>
		<category><![CDATA[svn:ignore]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/03/01/ignore-files-and-directories-in-subversion/</guid>
		<description><![CDATA[snubbed by Rennett Stowe
In the course of a project there are always files and directories that you don’t want to check in but which Subversion complains it doesn’t know anything about them.&#160; So it makes sense to tell Subversion to ignore them, in other words, keep quiet.  
The mechanism for doing this works okay [...]


Related posts:<ol><li><a href='http://betweengo.com/2005/09/06/newline-problems-with-subversion/' rel='bookmark' title='Permanent Link: Newline problems with Subversion'>Newline problems with Subversion</a></li>
<li><a href='http://betweengo.com/2005/10/24/subversion-on-dreamhost/' rel='bookmark' title='Permanent Link: Subversion on Dreamhost'>Subversion on Dreamhost</a></li>
<li><a href='http://betweengo.com/2007/12/18/subversion-branching/' rel='bookmark' title='Permanent Link: Subversion Branching'>Subversion Branching</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="center"><a title="snubber on Flickr" href="http://www.flickr.com/photos/tomsaint/2707833200/"><img style="display: block; float: none; margin-left: auto; margin-right: auto" src="http://farm4.static.flickr.com/3105/2707833200_a94ba3424c.jpg" /></a><a title="snubbed on Flickr" href="http://www.flickr.com/photos/tomsaint/2707833200/">snubbed</a> by <a title="Flickr: Rennett Stowe&#39;s Photostream" href="http://www.flickr.com/photos/tomsaint/">Rennett Stowe</a></p>
<p>In the course of a project there are always files and directories that you don’t want to check in but which Subversion complains it doesn’t know anything about them.&#160; So it makes sense to tell Subversion to ignore them, in other words, keep quiet. <img src='http://betweengo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The mechanism for doing this works okay but I wouldn’t say it’s perfect.</p>
<p>This is how I do it one.</p>
<ol>
<li>Go to the directory where want to ignore a file or subdirectory. </li>
<li>Issue the command
<pre>svn propedit svn:ignore .</pre>
</li>
<li>Your editor then will be launched and you can enter one line at a time those files and/or subdirectories you want to ignore.
<pre>some_file
some_directory</pre>
</li>
<li>Commit your changes.
<pre>svn commit -–depth empty</pre>
<p>Two things to notice. </p>
<ol>
<li>
<pre>--depth empty argument</pre>
<p>only commit the propedit changes </li>
<li>Committing your changes means everyone will end up ignoring these files and/or directories so make sure you are ignoring the right ones. </li>
</ol>
</li>
<li>If you don’t want to commit your changes you can revert them.
<pre>svn revert .</pre>
</li>
</ol>
<p>For further reading please see <a title="Ignore Files and Directories in Subversion" href="http://www.petefreitag.com/item/662.cfm">Ignore Files and Directories in Subversion</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F03%2F01%2Fignore-files-and-directories-in-subversion%2F&amp;linkname=Ignore%20Files%20and%20Directories%20in%20Subversion"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2005/09/06/newline-problems-with-subversion/' rel='bookmark' title='Permanent Link: Newline problems with Subversion'>Newline problems with Subversion</a></li>
<li><a href='http://betweengo.com/2005/10/24/subversion-on-dreamhost/' rel='bookmark' title='Permanent Link: Subversion on Dreamhost'>Subversion on Dreamhost</a></li>
<li><a href='http://betweengo.com/2007/12/18/subversion-branching/' rel='bookmark' title='Permanent Link: Subversion Branching'>Subversion Branching</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/zmWAzIYCjALDUspgVu4c9bf1094/0/da"><img src="http://feedads.g.doubleclick.net/~a/zmWAzIYCjALDUspgVu4c9bf1094/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zmWAzIYCjALDUspgVu4c9bf1094/1/da"><img src="http://feedads.g.doubleclick.net/~a/zmWAzIYCjALDUspgVu4c9bf1094/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=_LWsXeOQsOk:nTFIU8H-osM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=_LWsXeOQsOk:nTFIU8H-osM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=_LWsXeOQsOk:nTFIU8H-osM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=_LWsXeOQsOk:nTFIU8H-osM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=_LWsXeOQsOk:nTFIU8H-osM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=_LWsXeOQsOk:nTFIU8H-osM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=_LWsXeOQsOk:nTFIU8H-osM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=_LWsXeOQsOk:nTFIU8H-osM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=_LWsXeOQsOk:nTFIU8H-osM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=_LWsXeOQsOk:nTFIU8H-osM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=_LWsXeOQsOk:nTFIU8H-osM:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/_LWsXeOQsOk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/03/01/ignore-files-and-directories-in-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/03/01/ignore-files-and-directories-in-subversion/</feedburner:origLink></item>
		<item>
		<title>Tweets for 2010-01 and 2010-02</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/V4vn6aQNiN0/</link>
		<comments>http://betweengo.com/2010/02/28/twitter-2010-01-and-2010-02/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 13:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[ATG]]></category>
		<category><![CDATA[comcast]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[JSTL]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[websphere]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/02/28/twitter-weekly-updates-for-2010-02-28/</guid>
		<description><![CDATA[Ruby on Rails

Numeric data types and zerofill. Explains what all those int(11) columns are in your Ruby on Rails tables. http://bit.ly/9Tcf7q # 
undefined local variable or method &#34;acts_as_list&#34;? &#8211; Ruby Forum. Do ruby script/plugin install acts_as_list http://bit.ly/9kFWbG # 
ruby on rails : adding child records to an existing parent without visiting the parent &#8211; Stack [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/02/11/ruby-no-such-file-to-load-ubygems-loaderror/' rel='bookmark' title='Permanent Link: ruby: no such file to load &#8212; ubygems (LoadError)'>ruby: no such file to load &#8212; ubygems (LoadError)</a></li>
<li><a href='http://betweengo.com/2010/03/07/twitter-weekly-updates-for-2010-03-07/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2010-03-07'>Twitter Weekly Updates for 2010-03-07</a></li>
<li><a href='http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/' rel='bookmark' title='Permanent Link: Cygwin 1.7.x, mounts and /etc/fstab'>Cygwin 1.7.x, mounts and /etc/fstab</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Ruby on Rails</p>
<ul class="aktt_tweet_digest">
<li>Numeric data types and zerofill. Explains what all those int(11) columns are in your Ruby on Rails tables. <a href="http://bit.ly/9Tcf7q" rel="nofollow">http://bit.ly/9Tcf7q</a> <a class="aktt_tweet_time" href="http://twitter.com/betweengo/statuses/9558231269">#</a> </li>
<li>undefined local variable or method &quot;acts_as_list&quot;? &#8211; Ruby Forum. Do ruby script/plugin install acts_as_list <a href="http://bit.ly/9kFWbG" rel="nofollow">http://bit.ly/9kFWbG</a> <a class="aktt_tweet_time" href="http://twitter.com/betweengo/statuses/9558865402">#</a> </li>
<li>ruby on rails : adding child records to an existing parent without visiting the parent &#8211; Stack Overflow <a href="http://bit.ly/cQiGSP" rel="nofollow">http://bit.ly/cQiGSP</a> <a class="aktt_tweet_time" href="http://twitter.com/betweengo/statuses/9562021893">#</a> </li>
<li>Multi-Table Inheritance in Rails – When two tables are one… This is not easy and I wish it was. <a href="http://bit.ly/9fbzgk">http://bit.ly/9fbzgk</a> <a href="http://twitter.com/betweengo/statuses/8922972287">#</a> </li>
<li>has_many :through – count vs length vs size. Use count if u don&#8217;t want to load the contents of association into memory. <a href="http://bit.ly/dtqXe1">http://bit.ly/dtqXe1</a> <a href="http://twitter.com/betweengo/statuses/9089128438">#</a> </li>
<li>A gentle reminder about pluralizations. config/initializers/inflections.rb to customize pluralizations in Ruby on Rails <a href="http://bit.ly/bN9GO5">http://bit.ly/bN9GO5</a> <a href="http://twitter.com/betweengo/statuses/8474252680">#</a> </li>
<li>Ruby on Rails – Rails Migrations Cheatsheet – Dizzy. Pretty helpful. <a href="http://bit.ly/9wNvRx">http://bit.ly/9wNvRx</a> <a href="http://twitter.com/betweengo/statuses/8502200984">#</a> </li>
<li>RailsGuides Migrations. Nice guide, especially about explaining the naming convention which I don&#8217;t like. <a href="http://bit.ly/cjZ7aB">http://bit.ly/cjZ7aB</a> <a href="http://twitter.com/betweengo/statuses/8502361182">#</a> </li>
</ul>
<p>ATG</p>
<ul>
<li>Configuring ATG to Send Email via Comcast SMTP &#8211; betweenGo. Configuring your ATG app to use your ISP’s SMTP server. <a href="http://bit.ly/7M5bhx">http://bit.ly/7M5bhx</a> <a href="http://twitter.com/betweengo/statuses/8195074591">#</a></li>
<li>Enabling non-XA Resources in JBoss 4.2 with ATG &#8211; betweenGo. <a href="http://bit.ly/aDN3Po">http://bit.ly/aDN3Po</a> <a href="http://twitter.com/betweengo/statuses/8375306628">#</a></li>
<li>Combining XML in ATG – betweenGo. Combining XML files not as straight-forward as w/ properties files but more flexible. <a href="http://bit.ly/8kVwvA">http://bit.ly/8kVwvA</a> <a href="http://twitter.com/betweengo/statuses/7680584859">Jan 12 12:00 PM</a></li>
</ul>
<p>Eclipse</p>
<ul>
<li>Debugging Applications in IBM Rational Application Developer. Page 12 for how to set up server for debugging. <a href="http://bit.ly/aaYUHb">http://bit.ly/aaYUHb</a> <a href="http://twitter.com/betweengo/statuses/9087004023">#</a> </li>
</ul>
<p>JavaScript</p>
<ul>
<li>How can I submit a form along with some parameters using JavaScript? (JSF forum at JavaRanch). Answer #<a href="http://search.twitter.com/search?q=%233">3</a> was helpful. <a href="http://bit.ly/b17ymm">http://bit.ly/b17ymm</a> <a href="http://twitter.com/betweengo/statuses/8604162846">#</a> </li>
</ul>
<p>JSP</p>
<ul>
<li>Testing Which Page Loaded your JSP Page Fragment – betweenGo. Simple enough to do w/ JSTL but I always forget how. <img alt=":-)" src="http://betweengo.com/wp-includes/images/smilies/icon_smile.gif" /> <a href="http://bit.ly/cEh7IZ">http://bit.ly/cEh7IZ</a> <a href="http://twitter.com/betweengo/statuses/8810652592">#</a> </li>
</ul>
<p>Miscellaneous</p>
<ul>
<li>Cygwin 1.7.x, mounts and /etc/fstab – betweenGo. Mounts are no longer saved from session to session in Cygwin 1.7. <a href="http://bit.ly/bmaYEu">http://bit.ly/bmaYEu</a> <a href="http://twitter.com/betweengo/statuses/8858855916">#</a> </li>
<li>Git in 5 Minutes <a href="http://bit.ly/bSt3dd">http://bit.ly/bSt3dd</a> and Git for the lazy – Spheriki <a href="http://bit.ly/aefD17">http://bit.ly/aefD17</a> <a href="http://twitter.com/betweengo/statuses/8530933290">#</a> </li>
<li>The Thing About Git. Nice article describing how flexible Git is, especially compared to SVN. I may never use SVN again <a href="http://bit.ly/bD0tuS">http://bit.ly/bD0tuS</a> <a href="http://twitter.com/betweengo/statuses/8531003383">#</a> </li>
<li>I use DreamHost and am shamelessly plugging them both for a referral and to try to win an iPad. Honestly they&#8217;re great. <a href="http://bit.ly/ctYv3Z">http://bit.ly/ctYv3Z</a> <a href="http://twitter.com/betweengo/statuses/8723896222">#</a> </li>
</ul>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F02%2F28%2Ftwitter-2010-01-and-2010-02%2F&amp;linkname=Tweets%20for%202010-01%20and%202010-02"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/02/11/ruby-no-such-file-to-load-ubygems-loaderror/' rel='bookmark' title='Permanent Link: ruby: no such file to load &#8212; ubygems (LoadError)'>ruby: no such file to load &#8212; ubygems (LoadError)</a></li>
<li><a href='http://betweengo.com/2010/03/07/twitter-weekly-updates-for-2010-03-07/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2010-03-07'>Twitter Weekly Updates for 2010-03-07</a></li>
<li><a href='http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/' rel='bookmark' title='Permanent Link: Cygwin 1.7.x, mounts and /etc/fstab'>Cygwin 1.7.x, mounts and /etc/fstab</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/cAQEbCQ9w959pfrHZ37IgjK3I0I/0/da"><img src="http://feedads.g.doubleclick.net/~a/cAQEbCQ9w959pfrHZ37IgjK3I0I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cAQEbCQ9w959pfrHZ37IgjK3I0I/1/da"><img src="http://feedads.g.doubleclick.net/~a/cAQEbCQ9w959pfrHZ37IgjK3I0I/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=V4vn6aQNiN0:CYASPhdKYgs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=V4vn6aQNiN0:CYASPhdKYgs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=V4vn6aQNiN0:CYASPhdKYgs:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=V4vn6aQNiN0:CYASPhdKYgs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=V4vn6aQNiN0:CYASPhdKYgs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=V4vn6aQNiN0:CYASPhdKYgs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=V4vn6aQNiN0:CYASPhdKYgs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=V4vn6aQNiN0:CYASPhdKYgs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=V4vn6aQNiN0:CYASPhdKYgs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=V4vn6aQNiN0:CYASPhdKYgs:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=V4vn6aQNiN0:CYASPhdKYgs:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/V4vn6aQNiN0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/02/28/twitter-2010-01-and-2010-02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/02/28/twitter-2010-01-and-2010-02/</feedburner:origLink></item>
		<item>
		<title>Cygwin 1.7.x, mounts and /etc/fstab</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/v4xw9yzCN0I/</link>
		<comments>http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 15:17:12 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/</guid>
		<description><![CDATA[Sunrise Heron Silhouette by Brandon Godfrey
A few days I installed Cygwin on a new laptop.&#160; I saw the warnings that Cygwin 1.7.x is new but I chose to ignore it for now.
I soon noticed that Cygwin was not remembering my mounts.&#160; After reading this on the Cygwin front page I realized I needed to do [...]


Related posts:<ol><li><a href='http://betweengo.com/2009/01/29/moving-your-cygwin-installation/' rel='bookmark' title='Permanent Link: Moving Your Cygwin Installation'>Moving Your Cygwin Installation</a></li>
<li><a href='http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/' rel='bookmark' title='Permanent Link: Unable to start Cygwin shell from Windows command prompt'>Unable to start Cygwin shell from Windows command prompt</a></li>
<li><a href='http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/' rel='bookmark' title='Permanent Link: Cygwin Bash Scripts and Java'>Cygwin Bash Scripts and Java</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://www.flickr.com/photos/vicfan/3915841773/"><img title="Sunrise Heron Silhouette on Flickr" style="display: block; float: none; margin-left: auto; margin-right: auto" alt="Sunrise Heron Silhouette on Flickr" src="http://farm3.static.flickr.com/2521/3915841773_a960e4904e.jpg" /></a><a title="Sunrise Heron Silhouette on Flickr" href="http://www.flickr.com/photos/vicfan/3915841773/">Sunrise Heron Silhouette</a> by <a title="Flickr: Brandon Godfrey&#39;s Photostream" href="http://www.flickr.com/photos/vicfan/">Brandon Godfrey</a></p>
<p>A few days I installed Cygwin on a new laptop.&#160; I saw the warnings that Cygwin 1.7.x is new but I chose to ignore it for now.</p>
<p>I soon noticed that Cygwin was not remembering my mounts.&#160; After reading this on the <a title="Cygwin Information and Installation" href="http://www.cygwin.com/">Cygwin front page</a> I realized I needed to do some more research.</p>
<blockquote><p>… the mount point storage has been moved out of the registry into files. User mount points are <b>NOT</b> copied into the new user-specific /etc/fstab.d/$USER file. Rather, every user has to call the <b>/bin/copy-user-registry-fstab</b> shell script once after the update.</p>
</blockquote>
<p>Next I looked at the <tt>/etc/fstab</tt> file which pointed me to the <a title="The Cygwin Mount Table - Chapter 3. Using Cygwin" href="http://cygwin.com/cygwin-ug-net/using.html#mount-table">Cygwin Mount Table documentation</a>.&#160; Using this documentation I did the following steps so that my mounts are always remembered.</p>
<ol>
<li>Manually mounted the C: drive.
<pre>$ mount c: /c</pre>
</li>
<li>Ran mount to determine what to add to my <tt>/etc/fstab</tt>.
<pre>$ mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /c type ntfs (binary,user)</pre>
</li>
<li>Based on the output of mount I added this line to my <tt>/etc/fstab</tt>.
<pre>C: /c ntfs binary,user</pre>
</li>
<li>Closed the Cygwin shell, opened a new one and verified the C: drive was properly mounted. </li>
</ol>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F02%2F08%2Fcygwin-1-7-x-mounts-and-etcfstab%2F&amp;linkname=Cygwin%201.7.x%2C%20mounts%20and%20%2Fetc%2Ffstab"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2009/01/29/moving-your-cygwin-installation/' rel='bookmark' title='Permanent Link: Moving Your Cygwin Installation'>Moving Your Cygwin Installation</a></li>
<li><a href='http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/' rel='bookmark' title='Permanent Link: Unable to start Cygwin shell from Windows command prompt'>Unable to start Cygwin shell from Windows command prompt</a></li>
<li><a href='http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/' rel='bookmark' title='Permanent Link: Cygwin Bash Scripts and Java'>Cygwin Bash Scripts and Java</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/zwKWw0ttSXiEZ5qxoJK8oBWPcyo/0/da"><img src="http://feedads.g.doubleclick.net/~a/zwKWw0ttSXiEZ5qxoJK8oBWPcyo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zwKWw0ttSXiEZ5qxoJK8oBWPcyo/1/da"><img src="http://feedads.g.doubleclick.net/~a/zwKWw0ttSXiEZ5qxoJK8oBWPcyo/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=v4xw9yzCN0I:S8HqMSNZmtw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=v4xw9yzCN0I:S8HqMSNZmtw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=v4xw9yzCN0I:S8HqMSNZmtw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=v4xw9yzCN0I:S8HqMSNZmtw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=v4xw9yzCN0I:S8HqMSNZmtw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=v4xw9yzCN0I:S8HqMSNZmtw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=v4xw9yzCN0I:S8HqMSNZmtw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=v4xw9yzCN0I:S8HqMSNZmtw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=v4xw9yzCN0I:S8HqMSNZmtw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=v4xw9yzCN0I:S8HqMSNZmtw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=v4xw9yzCN0I:S8HqMSNZmtw:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/v4xw9yzCN0I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/</feedburner:origLink></item>
		<item>
		<title>Testing Which Page Loaded your JSP Page Fragment</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/NlZ-UIx5Kec/</link>
		<comments>http://betweengo.com/2010/02/01/testing-which-page-loaded-your-jsp-page-fragment/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 16:49:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[JSTL]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/02/01/testing-which-page-loaded-your-jsp-page-fragment/</guid>
		<description><![CDATA[
Zen Water by darkpatator
Sometimes you want to check in your JSP page fragment which page loaded it.&#160; Fortunately this is simple with JSTL.
&#60;c:if test=&#34;${fn:indexOf(pageContext.request.requestURI,'foo.jsp') != -1}&#34;&#62;
  The request URI ${pageContext.request.requestURI} contains foo.jsp.
&#60;/c:if&#62;
Simple but something I always forget how to do.  


Related posts:JSTL for current URI
Get JSTL Vars from PageContext
JSP redirect to another page



Related posts:<ol><li><a href='http://betweengo.com/2008/05/27/jstl-for-current-uri/' rel='bookmark' title='Permanent Link: JSTL for current URI'>JSTL for current URI</a></li>
<li><a href='http://betweengo.com/2009/05/04/get-jstl-vars-from-pagecontext/' rel='bookmark' title='Permanent Link: Get JSTL Vars from PageContext'>Get JSTL Vars from PageContext</a></li>
<li><a href='http://betweengo.com/2008/06/10/jsp-redirect-to-another-page/' rel='bookmark' title='Permanent Link: JSP redirect to another page'>JSP redirect to another page</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/darkpatator/395226087/"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="Zen Water on Flickr" alt="Zen Water on Flickr" src="http://farm1.static.flickr.com/188/395226087_9002872142.jpg" /></a></p>
<p align="center"><a title="Zen Water on Flickr" href="http://www.flickr.com/photos/darkpatator/395226087/">Zen Water</a> by <a title="Flckr: darkpatator&#39;s Photostream" href="http://www.flickr.com/photos/darkpatator/">darkpatator</a></p>
<p>Sometimes you want to check in your JSP page fragment which page loaded it.&#160; Fortunately this is simple with JSTL.</p>
<pre>&lt;c:if test=&quot;${fn:indexOf(pageContext.request.requestURI,'foo.jsp') != -1}&quot;&gt;
  The request URI ${pageContext.request.requestURI} contains foo.jsp.
&lt;/c:if&gt;</pre>
<p>Simple but something I always forget how to do. <img src='http://betweengo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F02%2F01%2Ftesting-which-page-loaded-your-jsp-page-fragment%2F&amp;linkname=Testing%20Which%20Page%20Loaded%20your%20JSP%20Page%20Fragment"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/05/27/jstl-for-current-uri/' rel='bookmark' title='Permanent Link: JSTL for current URI'>JSTL for current URI</a></li>
<li><a href='http://betweengo.com/2009/05/04/get-jstl-vars-from-pagecontext/' rel='bookmark' title='Permanent Link: Get JSTL Vars from PageContext'>Get JSTL Vars from PageContext</a></li>
<li><a href='http://betweengo.com/2008/06/10/jsp-redirect-to-another-page/' rel='bookmark' title='Permanent Link: JSP redirect to another page'>JSP redirect to another page</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/xlTd6Qiq4WN4EWy3a_q_7yaZGko/0/da"><img src="http://feedads.g.doubleclick.net/~a/xlTd6Qiq4WN4EWy3a_q_7yaZGko/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/xlTd6Qiq4WN4EWy3a_q_7yaZGko/1/da"><img src="http://feedads.g.doubleclick.net/~a/xlTd6Qiq4WN4EWy3a_q_7yaZGko/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=NlZ-UIx5Kec:A3wumuxmueo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=NlZ-UIx5Kec:A3wumuxmueo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=NlZ-UIx5Kec:A3wumuxmueo:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=NlZ-UIx5Kec:A3wumuxmueo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=NlZ-UIx5Kec:A3wumuxmueo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=NlZ-UIx5Kec:A3wumuxmueo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=NlZ-UIx5Kec:A3wumuxmueo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=NlZ-UIx5Kec:A3wumuxmueo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=NlZ-UIx5Kec:A3wumuxmueo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=NlZ-UIx5Kec:A3wumuxmueo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=NlZ-UIx5Kec:A3wumuxmueo:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/NlZ-UIx5Kec" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/02/01/testing-which-page-loaded-your-jsp-page-fragment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/02/01/testing-which-page-loaded-your-jsp-page-fragment/</feedburner:origLink></item>
		<item>
		<title>Enabling non-XA Resources in JBoss 4.2 with ATG</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/3_38jOvTREA/</link>
		<comments>http://betweengo.com/2010/01/28/enabling-non-xa-resources-in-jboss-4-2-with-atg/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 16:31:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[ATG]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SOLID]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/01/28/enabling-non-xa-resources-in-jboss-4-2-with-atg/</guid>
		<description><![CDATA[     (Photo: a dog and it&#8217;s boss by Pixel Addict)
ATG documents how to enable non-XA resources in JBoss 4.2 for SOLID.&#160; We ended up following the same instructions to work with Oracle. 
JBoss Note: JBoss 4.2 by default assumes XA drivers, which some ATG applications use; however, there are no XA [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/' rel='bookmark' title='Permanent Link: Enabling Trace Level Debugging in JBoss'>Enabling Trace Level Debugging in JBoss</a></li>
<li><a href='http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/' rel='bookmark' title='Permanent Link: Create Additional JBoss Application Server Configurations'>Create Additional JBoss Application Server Configurations</a></li>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='Permanent Link: NameNotFoundExceptions during start up of ATG application on JBoss'>NameNotFoundExceptions during start up of ATG application on JBoss</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://www.flickr.com/photos/pixel_addict/377682831/"><img title="a dog and it&#39;s boss on Flickr" alt="a dog and it&#39;s boss on Flickr" src="http://farm1.static.flickr.com/156/377682831_fa4ecd522f.jpg" /></a>     <br />(Photo: <a title="a dog and it&#39;s boss on Flickr" href="http://www.flickr.com/photos/pixel_addict/377682831/">a dog and it&#8217;s boss</a> by <a title="Flickr: Pixel Addict&#39;s Photostream" href="http://www.flickr.com/photos/pixel_addict/">Pixel Addict</a>)</p>
<p>ATG documents how to enable non-XA resources in JBoss 4.2 for SOLID.&#160; We ended up following the same instructions to work with Oracle. </p>
<blockquote><p>JBoss Note: JBoss 4.2 by default assumes XA drivers, which some ATG applications use; however, there are no XA drivers for SOLID. To enable multiple non-XA resources in JBoss 4.2, add the property in bold text to the <tt>jbossjta-properties.xml</tt> file, under the <tt>&lt;property depends=&quot;arjuna&quot; name=&quot;jta&quot;&gt;</tt> tag:</p>
<pre>&lt;property depends=&quot;arjuna&quot; name=&quot;jta&quot;&gt;
  <strong>&lt;property name=&quot;com.arjuna.ats.jta.allowMultipleLastResources&quot; value=&quot;true&quot;/&gt;</strong></pre>
<p>You may still see warnings in your log file, but ATG applications will run correctly. To suppress these warnings, add the following to your jboss-log4j.xml file:</p>
<pre>&lt;category name=&quot;com.arjuna.atg.jta.logging&quot;&gt;
  &lt;priority value=&quot;ERROR&quot;/&gt;
&lt;/category&gt;</pre>
</blockquote>
<p>For further reading please see <a title="Starting the SOLID SQL Database" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG9.1/atginstall/wwhelp/wwhimpl/common/html/wwhelp.htm?context=atginstall&amp;file=ATGInstallationGuide.1.24.html">Starting the SOLID SQL Database</a> document in the <a title="Running Nucleus-Based Applications" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG9.1/atginstall/wwhelp/wwhimpl/common/html/wwhelp.htm?context=atginstall&amp;file=ATGInstallationGuide.1.23.html">Running Nucleus-Based Applications</a> section of the ATG Installation and Configuration Guide.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F01%2F28%2Fenabling-non-xa-resources-in-jboss-4-2-with-atg%2F&amp;linkname=Enabling%20non-XA%20Resources%20in%20JBoss%204.2%20with%20ATG"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/07/05/enabling-trace-level-debugging-in-jboss/' rel='bookmark' title='Permanent Link: Enabling Trace Level Debugging in JBoss'>Enabling Trace Level Debugging in JBoss</a></li>
<li><a href='http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/' rel='bookmark' title='Permanent Link: Create Additional JBoss Application Server Configurations'>Create Additional JBoss Application Server Configurations</a></li>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='Permanent Link: NameNotFoundExceptions during start up of ATG application on JBoss'>NameNotFoundExceptions during start up of ATG application on JBoss</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/Y5q23eyO2qObzBUP0NXE2t-xeEo/0/da"><img src="http://feedads.g.doubleclick.net/~a/Y5q23eyO2qObzBUP0NXE2t-xeEo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Y5q23eyO2qObzBUP0NXE2t-xeEo/1/da"><img src="http://feedads.g.doubleclick.net/~a/Y5q23eyO2qObzBUP0NXE2t-xeEo/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=3_38jOvTREA:56t8rzm1v-k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=3_38jOvTREA:56t8rzm1v-k:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=3_38jOvTREA:56t8rzm1v-k:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=3_38jOvTREA:56t8rzm1v-k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=3_38jOvTREA:56t8rzm1v-k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=3_38jOvTREA:56t8rzm1v-k:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=3_38jOvTREA:56t8rzm1v-k:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=3_38jOvTREA:56t8rzm1v-k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=3_38jOvTREA:56t8rzm1v-k:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=3_38jOvTREA:56t8rzm1v-k:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=3_38jOvTREA:56t8rzm1v-k:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/3_38jOvTREA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/01/28/enabling-non-xa-resources-in-jboss-4-2-with-atg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/01/28/enabling-non-xa-resources-in-jboss-4-2-with-atg/</feedburner:origLink></item>
		<item>
		<title>Configuring ATG to Send Email via Comcast SMTP</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/hhsizrgeIZg/</link>
		<comments>http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 15:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[comcast]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/</guid>
		<description><![CDATA[     (Photo: Comcast still sucks by dmuth)
When you are developing at home you will probably need to configure your ATG application to send email via your ISP’s SMTP server.&#160; Here is how I configured ATG to send email via Comcast’s SMTP server.
First you need to update ATG’s configuration to point to [...]


Related posts:<ol><li><a href='http://betweengo.com/2007/02/28/updating-atg-after-installing-new-java-sdk/' rel='bookmark' title='Permanent Link: Updating ATG after installing new Java SDK'>Updating ATG after installing new Java SDK</a></li>
<li><a href='http://betweengo.com/2008/07/11/gmail-spf-and-broken-email-forwarding/' rel='bookmark' title='Permanent Link: Gmail, SPF, and Broken Email Forwarding?'>Gmail, SPF, and Broken Email Forwarding?</a></li>
<li><a href='http://betweengo.com/2007/11/29/cannot-create-new-scenario/' rel='bookmark' title='Permanent Link: Cannot Create New ATG Scenario'>Cannot Create New ATG Scenario</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href="http://www.flickr.com/photos/dmuth/2256186646/"><img title="Comcast still sucks on Flickr" alt="Comcast still sucks on Flickr" src="http://farm3.static.flickr.com/2346/2256186646_9630861957.jpg" /></a>     <br />(Photo: <a title="Comcast still sucks on Flickr" href="http://www.flickr.com/photos/dmuth/2256186646/">Comcast still sucks</a> by <a title="Flickr: dmuth&#39;s Photostream" href="http://www.flickr.com/photos/dmuth/">dmuth</a>)</p>
<p>When you are developing at home you will probably need to configure your ATG application to send email via your ISP’s SMTP server.&#160; Here is how I configured ATG to send email via Comcast’s SMTP server.</p>
<p>First you need to update ATG’s configuration to point to the Comcast SMTP server by modifying <tt><a title="{ATG}/home/localconfig/atg/dynamo/Configuration.properties" href="http://localhost:8080/dyn/admin/nucleus/atg/dynamo/Configuration/">{ATG}/home/localconfig/atg/dynamo/Configuration.properties</a></tt>.</p>
<pre>emailHandlerHost=smtp.comcast.net
emailHandlerPort=587</pre>
<p>Typically you don’t need to set the emailHandlerPort, it is by default set to port 25.&#160; But Comcast has recently been switching over to use port 587 because email viruses use port 25 on infected computers.</p>
<p>Next you need to update ATG’s SMTP Email service configuration by modifying <tt><a title="{ATG}/home/localconfig/atg/dynamo/service/SMTPEmail.properties" href="http://localhost:8080/dyn/admin/nucleus/atg/dynamo/service/SMTPEmail/">{ATG}/home/localconfig/atg/dynamo/service/SMTPEmail.properties</a></tt>.</p>
<pre>defaultFrom=betweengo@comcast.net
username=betweengo
password=betweengo</pre>
<p>These values used to be optional but now are required because Comcast requires authentication as part of its increased security.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F01%2F25%2Fconfiguring-atg-to-send-email-via-comcast-smtp%2F&amp;linkname=Configuring%20ATG%20to%20Send%20Email%20via%20Comcast%20SMTP"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2007/02/28/updating-atg-after-installing-new-java-sdk/' rel='bookmark' title='Permanent Link: Updating ATG after installing new Java SDK'>Updating ATG after installing new Java SDK</a></li>
<li><a href='http://betweengo.com/2008/07/11/gmail-spf-and-broken-email-forwarding/' rel='bookmark' title='Permanent Link: Gmail, SPF, and Broken Email Forwarding?'>Gmail, SPF, and Broken Email Forwarding?</a></li>
<li><a href='http://betweengo.com/2007/11/29/cannot-create-new-scenario/' rel='bookmark' title='Permanent Link: Cannot Create New ATG Scenario'>Cannot Create New ATG Scenario</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/j2UDKTAE6HQO_hoNnqVfUsAR8Sk/0/da"><img src="http://feedads.g.doubleclick.net/~a/j2UDKTAE6HQO_hoNnqVfUsAR8Sk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/j2UDKTAE6HQO_hoNnqVfUsAR8Sk/1/da"><img src="http://feedads.g.doubleclick.net/~a/j2UDKTAE6HQO_hoNnqVfUsAR8Sk/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=hhsizrgeIZg:ifeeUMQKL9c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=hhsizrgeIZg:ifeeUMQKL9c:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=hhsizrgeIZg:ifeeUMQKL9c:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=hhsizrgeIZg:ifeeUMQKL9c:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=hhsizrgeIZg:ifeeUMQKL9c:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=hhsizrgeIZg:ifeeUMQKL9c:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=hhsizrgeIZg:ifeeUMQKL9c:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=hhsizrgeIZg:ifeeUMQKL9c:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=hhsizrgeIZg:ifeeUMQKL9c:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=hhsizrgeIZg:ifeeUMQKL9c:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=hhsizrgeIZg:ifeeUMQKL9c:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/hhsizrgeIZg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/</feedburner:origLink></item>
		<item>
		<title>Specifying One-to-Many Relationship in ATG Repositories</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/307S87xSqDU/</link>
		<comments>http://betweengo.com/2010/01/21/specifying-one-to-many-relationship-in-atg-repositories/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Repository]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/01/21/specifying-one-to-many-relationship-in-atg-repositories/</guid>
		<description><![CDATA[     (Photo: Monta driving by Yogma)
Specifying one-to-many relationships is ridiculously easy in Ruby on Rails.&#160; Unfortunately it’s not so straight-forward in ATG repositories.
First you specify the “belongs to” relationship.&#160; In this example the player belongs to a team.
&#60;item-descriptor name=&#34;player&#34;&#62;
  &#60;table name=&#34;team_players&#34; type=&#34;auxiliary&#34; id-column-names=&#34;team_id&#34; shared-table-sequence=&#34;1&#34;&#62;
    &#60;property name=&#34;team&#34; column-name=&#34;team_id&#34; [...]


Related posts:<ol><li><a href='http://betweengo.com/2005/07/28/user-defined-property-type-gotchas/' rel='bookmark' title='Permanent Link: user-defined property type gotcha&#8217;s'>user-defined property type gotcha&#8217;s</a></li>
<li><a href='http://betweengo.com/2008/08/01/best-practices-creating-tables/' rel='bookmark' title='Permanent Link: Best Practices for Creating Tables'>Best Practices for Creating Tables</a></li>
<li><a href='http://betweengo.com/2009/07/29/atg-product-bundles/' rel='bookmark' title='Permanent Link: ATG Product Bundles'>ATG Product Bundles</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href="http://www.flickr.com/photos/yogma/2547140259/"><img title="Monta driving on Flickr" alt="Monta driving on Flickr" src="http://farm4.static.flickr.com/3265/2547140259_ae74aa0f7c.jpg" /></a>     <br />(Photo: <a title="Monta driving on Flickr" href="http://www.flickr.com/photos/yogma/2547140259/">Monta driving</a> by <a title="Flickr: Yogma&#39;s Photostream" href="http://www.flickr.com/photos/yogma/">Yogma</a>)</p>
<p>Specifying one-to-many relationships is <a title="A Guide to Active Record Associations" href="http://guides.rubyonrails.org/association_basics.html#the-has-many-association">ridiculously easy in Ruby on Rails</a>.&#160; Unfortunately it’s <a title="One-to-Many Relationships: Mutli-Valued Properties" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/repository/repository0606.html">not so straight-forward in ATG repositories</a>.</p>
<p>First you specify the “belongs to” relationship.&#160; In this example the player belongs to a team.</p>
<pre>&lt;item-descriptor name=&quot;player&quot;&gt;
  &lt;table name=&quot;team_players&quot; type=&quot;auxiliary&quot; id-column-names=&quot;team_id&quot; shared-table-sequence=&quot;1&quot;&gt;
    &lt;property name=&quot;team&quot; column-name=&quot;team_id&quot; item-type=&quot;team&quot; /&gt;
  &lt;/table&gt;
&lt;/item-descriptor&gt;</pre>
<p>Then you specify the “has many” relationship.&#160; In this example the team has many players.</p>
<pre>&lt;item-descriptor name=&quot;team&quot;&gt;
  &lt;table name=&quot;team_players&quot; type=&quot;multi&quot; id-column-names=&quot;player_id&quot; shared-table-sequence=&quot;2&quot;&gt;
    &lt;property name=&quot;players&quot; column-name=&quot;player_id&quot; data-type=&quot;set&quot; component-item-type=&quot;player&quot; /&gt;
  &lt;/table&gt;
&lt;/item-descriptor&gt;</pre>
<p>Note the trick is specifying the “shared-table-sequence.”</p>
<p>Here is the SQL for the table that specifies this relationship in our example.</p>
<pre>CREATE TABLE team_players
(
  team_id     VARCHAR2(40)  NOT NULL,
  player_id   VARCHAR2(40)  NOT NULL,
  CONSTRAINT team_players_pk PRIMARY KEY (team_id, player_id),
  CONSTRAINT team_players_players_fk foreign key (player_id) references players (id),
  CONSTRAINT team_players_team_fk foreign key (team_id) references teams (id)
);</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F01%2F21%2Fspecifying-one-to-many-relationship-in-atg-repositories%2F&amp;linkname=Specifying%20One-to-Many%20Relationship%20in%20ATG%20Repositories"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2005/07/28/user-defined-property-type-gotchas/' rel='bookmark' title='Permanent Link: user-defined property type gotcha&#8217;s'>user-defined property type gotcha&#8217;s</a></li>
<li><a href='http://betweengo.com/2008/08/01/best-practices-creating-tables/' rel='bookmark' title='Permanent Link: Best Practices for Creating Tables'>Best Practices for Creating Tables</a></li>
<li><a href='http://betweengo.com/2009/07/29/atg-product-bundles/' rel='bookmark' title='Permanent Link: ATG Product Bundles'>ATG Product Bundles</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/J5BFxWGDpFfWU9kB1kH7n7VY3cc/0/da"><img src="http://feedads.g.doubleclick.net/~a/J5BFxWGDpFfWU9kB1kH7n7VY3cc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/J5BFxWGDpFfWU9kB1kH7n7VY3cc/1/da"><img src="http://feedads.g.doubleclick.net/~a/J5BFxWGDpFfWU9kB1kH7n7VY3cc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=307S87xSqDU:3fOqkyw4pyA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=307S87xSqDU:3fOqkyw4pyA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=307S87xSqDU:3fOqkyw4pyA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=307S87xSqDU:3fOqkyw4pyA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=307S87xSqDU:3fOqkyw4pyA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=307S87xSqDU:3fOqkyw4pyA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=307S87xSqDU:3fOqkyw4pyA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=307S87xSqDU:3fOqkyw4pyA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=307S87xSqDU:3fOqkyw4pyA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=307S87xSqDU:3fOqkyw4pyA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=307S87xSqDU:3fOqkyw4pyA:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/307S87xSqDU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/01/21/specifying-one-to-many-relationship-in-atg-repositories/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/01/21/specifying-one-to-many-relationship-in-atg-repositories/</feedburner:origLink></item>
		<item>
		<title>SQL Insert in One Table Based on Values in Another Table</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/4yTbrZQilFs/</link>
		<comments>http://betweengo.com/2010/01/18/sql-insert-in-one-table-based-on-values-in-another-table/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 18:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/01/18/sql-insert-in-one-table-based-on-values-in-another-table/</guid>
		<description><![CDATA[ 
(Photo: Love&#8217;s Old Sweet Song by linda yvonne)
The syntax for doing this is similar to doing an update in one table based on values in another table yet simpler.
INSERT INTO suppliers (name)
SELECT customers.name
  FROM customers
  WHERE customers.id = suppliers.id);
If you want to add constant values into the insert you can do something [...]


Related posts:<ol><li><a href='http://betweengo.com/2008/07/02/sql-update-in-one-table-based-on-values-in-another/' rel='bookmark' title='Permanent Link: SQL Update in One Table Based on Values in Another Table'>SQL Update in One Table Based on Values in Another Table</a></li>
<li><a href='http://betweengo.com/2007/05/29/test/' rel='bookmark' title='Permanent Link: Inserting a text value with special characters'>Inserting a text value with special characters</a></li>
<li><a href='http://betweengo.com/2009/10/06/how-to-alter-table/' rel='bookmark' title='Permanent Link: How to Alter Table'>How to Alter Table</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://www.flickr.com/photos/from_linda_yvonne/2449770721/"><img style="display: inline; margin-left: 0px; margin-right: 0px" title="Love&#39;s Old Sweet Song on Flickr" alt="Love&#39;s Old Sweet Song on Flickr" src="http://farm3.static.flickr.com/2364/2449770721_71ac512444.jpg" /></a> </p>
<p align="center">(Photo: <a title="Love&#39;s Old Sweet Song on Flickr" href="http://www.flickr.com/photos/from_linda_yvonne/2449770721/">Love&#8217;s Old Sweet Song</a> by <a title="Flickr: linda yvonne&#39;s Photostream" href="http://www.flickr.com/photos/from_linda_yvonne/">linda yvonne</a>)</p>
<p>The syntax for doing this is similar to doing an <a title="SQL update in one table based on values in another - betweenGo" href="http://betweengo.com/2008/07/02/sql-update-in-one-table-based-on-values-in-another/">update in one table based on values in another table</a> yet simpler.</p>
<pre>INSERT INTO suppliers (name)
SELECT customers.name
  FROM customers
  WHERE customers.id = suppliers.id);</pre>
<p>If you want to add constant values into the insert you can do something like this.</p>
<pre>INSERT INTO suppliers (name, city)
SELECT customers.name, 'Toronto'
  FROM customers
  WHERE customers.id = suppliers.id);</pre>
<p>For further reading please see <a title="SQL INSERT INTO" href="http://www.1keydata.com/sql/sqlinsert.html">SQL INSERT INTO</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F01%2F18%2Fsql-insert-in-one-table-based-on-values-in-another-table%2F&amp;linkname=SQL%20Insert%20in%20One%20Table%20Based%20on%20Values%20in%20Another%20Table"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2008/07/02/sql-update-in-one-table-based-on-values-in-another/' rel='bookmark' title='Permanent Link: SQL Update in One Table Based on Values in Another Table'>SQL Update in One Table Based on Values in Another Table</a></li>
<li><a href='http://betweengo.com/2007/05/29/test/' rel='bookmark' title='Permanent Link: Inserting a text value with special characters'>Inserting a text value with special characters</a></li>
<li><a href='http://betweengo.com/2009/10/06/how-to-alter-table/' rel='bookmark' title='Permanent Link: How to Alter Table'>How to Alter Table</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/gndR_-cAOemu8_smrg7rdfxJWHc/0/da"><img src="http://feedads.g.doubleclick.net/~a/gndR_-cAOemu8_smrg7rdfxJWHc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/gndR_-cAOemu8_smrg7rdfxJWHc/1/da"><img src="http://feedads.g.doubleclick.net/~a/gndR_-cAOemu8_smrg7rdfxJWHc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=4yTbrZQilFs:ZYGi2fvN9CQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=4yTbrZQilFs:ZYGi2fvN9CQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=4yTbrZQilFs:ZYGi2fvN9CQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=4yTbrZQilFs:ZYGi2fvN9CQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=4yTbrZQilFs:ZYGi2fvN9CQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=4yTbrZQilFs:ZYGi2fvN9CQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=4yTbrZQilFs:ZYGi2fvN9CQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=4yTbrZQilFs:ZYGi2fvN9CQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=4yTbrZQilFs:ZYGi2fvN9CQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=4yTbrZQilFs:ZYGi2fvN9CQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=4yTbrZQilFs:ZYGi2fvN9CQ:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/4yTbrZQilFs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/01/18/sql-insert-in-one-table-based-on-values-in-another-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/01/18/sql-insert-in-one-table-based-on-values-in-another-table/</feedburner:origLink></item>
		<item>
		<title>Limiting the Quantity Added to a Cart</title>
		<link>http://feedproxy.google.com/~r/betweengo/~3/jEj8O4MabTw/</link>
		<comments>http://betweengo.com/2010/01/14/limiting-the-quantity-added-to-a-cart/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 18:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Commerce]]></category>
		<category><![CDATA[CartModifierFormHandler]]></category>
		<category><![CDATA[ecommerce]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/01/14/limiting-the-quantity-added-to-a-cart/</guid>
		<description><![CDATA[ 
(Photo: Speed Limit 14 MPH by bredgur)
Sometimes the client will ask that the quantity of items you can add to the cart be limited to some number, say 14 like in the photo above.  
Often people will implement this by putting in checks throughout the JSP.&#160; But this is not the best solution [...]


Related posts:<ol><li><a href='http://betweengo.com/2009/11/02/how-to-add-multiple-items-to-the-shopping-cart-in-atg/' rel='bookmark' title='Permanent Link: How to Add Multiple Items to the Shopping Cart in ATG'>How to Add Multiple Items to the Shopping Cart in ATG</a></li>
<li><a href='http://betweengo.com/2007/11/15/sku-and-product-ids-in-commerceitem/' rel='bookmark' title='Permanent Link: CommerceItem, which one is the SKU ID?'>CommerceItem, which one is the SKU ID?</a></li>
<li><a href='http://betweengo.com/2009/08/17/how-to-debug-an-invalidversionexception-from-updating-an-atg-order/' rel='bookmark' title='Permanent Link: How to Debug an InvalidVersionException from Updating an ATG Order'>How to Debug an InvalidVersionException from Updating an ATG Order</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://www.flickr.com/photos/bredgur/2402977168/"><img style="display: inline; margin-left: 0px; margin-right: 0px" title="Speed Limit 14 MPH on Flickr" alt="Speed Limit 14 MPH on Flickr" src="http://farm4.static.flickr.com/3074/2402977168_32e08bbc26.jpg" /></a> </p>
<p align="center">(Photo: <a title="Speed Limit 14 MPH on Flickr" href="http://www.flickr.com/photos/bredgur/2402977168/">Speed Limit 14 MPH</a> by <a title="Flickr: bredgur&#39;s Photostream" href="http://www.flickr.com/photos/bredgur/">bredgur</a>)</p>
<p>Sometimes the client will ask that the quantity of items you can add to the cart be limited to some number, say 14 like in the photo above. <img src='http://betweengo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Often people will implement this by putting in checks throughout the JSP.&#160; But this is not the best solution because it is more labor intensive and you may miss something.</p>
<p>Another solution is to deal with the issue in the <a title="CartModifierFormHandler (ATG Java API)" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG9.1/apidoc/atg/commerce/order/purchase/CartModifierFormHandler.html">CartModifierFormHandler</a> by extending the <a title="CartModifierFormHandler.doAddItemsToOrder (ATG Java API)" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG9.1/apidoc/atg/commerce/order/purchase/CartModifierFormHandler.html#doAddItemsToOrder(atg.servlet.DynamoHttpServletRequest, atg.servlet.DynamoHttpServletResponse)">doAddItemsToOrder method</a>.&#160; Simply check the quantity of each AddCommerceItemInfo item and make sure that its quantity plus the quantity of the same item already in the cart does not go over the limit.&#160; If it does modify the quantity in the AddCommerceItemInfo item appropriately.</p>
<p>Here is how I implemented this.</p>
<pre>    @Override
    protected void doAddItemsToOrder(DynamoHttpServletRequest pRequest,
            DynamoHttpServletResponse pResponse) throws ServletException,
            IOException {

        // fetch the order
        Order order = getOrder();
        if (order == null) {
            String msg = formatUserMessage(MSG_NO_ORDER_TO_MODIFY, pRequest,
                    pResponse);
            throw new ServletException(msg);
        }

        // iterate through the add commerce item infos, making sure that adding
        // any of them will not result in a quantity greater than LIMIT
        AddCommerceItemInfo[] addCommerceItemInfos = getItems();
        for (int ii = 0; ii &lt; addCommerceItemInfos.length; ii++) {

            // see if there is a commerce item already in the order for the next
            // add commerce item info
            AddCommerceItemInfo addCommerceItemInfo = addCommerceItemInfos[ii];
            String catalogRefId = addCommerceItemInfo.getCatalogRefId();
            CommerceItem commerceItem = findCommerceItemByCatalogRefId(order,
                    catalogRefId);
            if (commerceItem == null) {
                continue;
            }

            // check that the quantity we add won't result in a total quantity
            // greater than LIMIT
            long addQty = addCommerceItemInfo.getQuantity();
            long qty = commerceItem.getQuantity();
            if (qty &gt;= LIMIT) {
                addCommerceItemInfo.setQuantity(0);
            } else if (qty + addQty &gt; LIMIT) {
                long newAddQty = LIMIT - qty;
                addCommerceItemInfo.setQuantity(newAddQty);
            }
        }

        super.doAddItemsToOrder(pRequest, pResponse);
    }

    protected CommerceItem findCommerceItemByCatalogRefId(Order pOrder,
            String pCatalogRefId) {
        for (int ii = 0; ii &lt; numCommerceItems; ii++) {
            CommerceItem commerceItem = (CommerceItem) commerceItems.get(ii);
            String catalogRefId = commerceItem.getCatalogRefId();
            if (catalogRefId.equals(pCatalogRefId))
                return commerceItem;
        }
        return null;
    }</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbetweengo.com%2F2010%2F01%2F14%2Flimiting-the-quantity-added-to-a-cart%2F&amp;linkname=Limiting%20the%20Quantity%20Added%20to%20a%20Cart"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://betweengo.com/2009/11/02/how-to-add-multiple-items-to-the-shopping-cart-in-atg/' rel='bookmark' title='Permanent Link: How to Add Multiple Items to the Shopping Cart in ATG'>How to Add Multiple Items to the Shopping Cart in ATG</a></li>
<li><a href='http://betweengo.com/2007/11/15/sku-and-product-ids-in-commerceitem/' rel='bookmark' title='Permanent Link: CommerceItem, which one is the SKU ID?'>CommerceItem, which one is the SKU ID?</a></li>
<li><a href='http://betweengo.com/2009/08/17/how-to-debug-an-invalidversionexception-from-updating-an-atg-order/' rel='bookmark' title='Permanent Link: How to Debug an InvalidVersionException from Updating an ATG Order'>How to Debug an InvalidVersionException from Updating an ATG Order</a></li>
</ol></p>
<p><a href="http://feedads.g.doubleclick.net/~a/7101TGl6j-9FMhKJVpmznANEfbE/0/da"><img src="http://feedads.g.doubleclick.net/~a/7101TGl6j-9FMhKJVpmznANEfbE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7101TGl6j-9FMhKJVpmznANEfbE/1/da"><img src="http://feedads.g.doubleclick.net/~a/7101TGl6j-9FMhKJVpmznANEfbE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/betweengo?a=jEj8O4MabTw:o7d6AUOhBsw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/betweengo?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=jEj8O4MabTw:o7d6AUOhBsw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/betweengo?i=jEj8O4MabTw:o7d6AUOhBsw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=jEj8O4MabTw:o7d6AUOhBsw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/betweengo?i=jEj8O4MabTw:o7d6AUOhBsw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=jEj8O4MabTw:o7d6AUOhBsw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/betweengo?i=jEj8O4MabTw:o7d6AUOhBsw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=jEj8O4MabTw:o7d6AUOhBsw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/betweengo?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=jEj8O4MabTw:o7d6AUOhBsw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/betweengo?i=jEj8O4MabTw:o7d6AUOhBsw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/betweengo?a=jEj8O4MabTw:o7d6AUOhBsw:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/betweengo?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/betweengo/~4/jEj8O4MabTw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/01/14/limiting-the-quantity-added-to-a-cart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://betweengo.com/2010/01/14/limiting-the-quantity-added-to-a-cart/</feedburner:origLink></item>
	</channel>
</rss><!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
