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

<channel>
	<title>JessWatts.com</title>
	<atom:link href="http://www.jesswatts.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jesswatts.com</link>
	<description>If Want() Then Do()</description>
	<lastBuildDate>Tue, 31 Jan 2012 16:35:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Schedule APEX Network Backups</title>
		<link>http://www.jesswatts.com/it/schedule-apex-network-backups</link>
		<comments>http://www.jesswatts.com/it/schedule-apex-network-backups#comments</comments>
		<pubDate>Mon, 30 Jan 2012 23:13:38 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apex]]></category>
		<category><![CDATA[apex 4.1]]></category>
		<category><![CDATA[apex listener]]></category>
		<category><![CDATA[apexexport]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[CLASSPATH]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[if then else]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[ORACLE_HOME]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1187</guid>
		<description><![CDATA[For reference - APEX setup guide APEXExport Overview This walk-through assumes you have APEX 4.1 Listener and Oracle 10G XE or greater installed. If not, reference the links above. We will break this walk-through up into 4 sections: Mounting a network share for the backup directory and configuring fstab Configuring APEXExport to correctly talk to [...]]]></description>
			<content:encoded><![CDATA[<p>For reference -</p>
<ul>
<li><a href=" http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2000" target="_blank">APEX setup guide</a></li>
<li><a href="http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:1015800346188192" target="_blank">APEXExport Overview</a></li>
</ul>
<p>This walk-through assumes you have APEX 4.1 Listener and Oracle 10G XE or greater installed. If not, reference the links above.</p>
<p>We will break this walk-through up into 4 sections:</p>
<ul>
<li>Mounting a network share for the backup directory and configuring fstab</li>
<li>Configuring APEXExport to correctly talk to your database</li>
<li>Write a script to make sure your backup directories exist and export all of your applications</li>
<li>Configure a cron job to run the script twice a day 7 days a week</li>
</ul>
<p><strong>Mounting a network share for the backup directory and configuring fstab</strong><br />
Create local mount point<br />
<code>mkdir /mnt/backup</code></p>
<p>Create connection file<br />
<code>nano /etc/cifspw<br />
username<br />
password<br />
</code></p>
<p>Edit fstab<br />
<code>nano /etc/fstab<br />
//server.domain.com/share  /mnt/backup  cifs  exec,credentials=/etc/cifspw,uid=root  0  0<br />
</code></p>
<p>Mount the directory<br />
<code>mount /mnt/backup</code></p>
<p><strong>Configuring APEXExport to correctly talk to your database</strong></p>
<p>You must run APEXExport from the utilities folder where you installed APEX<br />
<code>cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/apex/utilities</code></p>
<p>Export the CLASSPATH<br />
<code>export CLASSPATH=.:${ORACLE_HOME}/jdbc/lib/ojdbc14.jar</code></p>
<p>APEXExport is run in the following syntax:<br />
<code>java oracle/apex/APEXExport -db localhost:port:SID -user schemaOwner -password yourPass -workspaceid workspaceID</code><br />
port = 1521<br />
SID = XE</p>
<p>schemaOwner can be found based on your version of APEX. If you are running 3.5 user = APEX_030500. If you are running 4.1 user = APEX_040100<br />
Unlock user and set password through SQL*Plus as SYSTEM<br />
<code>SQL> ALTER USER APEX_040100 ACCOUNT UNLOCK;<br />
SQL> ALTER USER APEX_040100 identified by yourPass;</code></p>
<p>workspace ID can be found from the SQL workshop utility<br />
<code>select workspace, schemas, workspace_id<br />
from apex_workspaces;</code></p>
<p>Your APEXExport command should now run successfully by itself and look similar to<br />
<code>java oracle/apex/APEXExport -db localhost:1521:XE -user APEX_040100 -password yourPass -workspaceid 13541863513546</code></p>
<p><strong>Write a script to make sure your backup directories exist and export all of your applications</strong><br />
Create a new script<br />
<code>touch apex_backup.sh<br />
chmod a+x apex_backup.sh</code></p>
<p>The script I wrote creates a folder for the day of the week (Mon) and a folder in that folder for the time of day (AM/PM) since I want to backup 2 times a day 7 days a week. It then rolls over each week. The script performs the following steps.<br />
1. Create variables for the backup directories<br />
<code>#/bin/bash</p>
<p>adir=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/apex/utilities<br />
ddir=/mnt/backup/config/apex/backups/$(date +%A)<br />
tdir="$ddir/$(date +%p)"</code></p>
<p>2. Make sure the working directory and path are correct<br />
<code>cd $adir<br />
export CLASSPATH=.:${ORACLE_HOME}/jdbc/lib/ojdbc14.jar</code></p>
<p>3. Start the backup log and execute the APEXExport command<br />
<code>echo APEX Backup Started $(date) >> $adir/backup_log<br />
java oracle/apex/APEXExport -db localhost:1521:XE -user APEX_040100 -password yourPass -workspaceid 13541863513546 >> $adir/backup_log</code></p>
<p>At this point the each application is exported in the form f101.sql f102.sql and so on (101 = application id).</p>
<p>4. Make sure backup directory is mounted<br />
<code>#Check if mount does NOT exist<br />
if ! grep -qs '/mnt/backup' /proc/mounts; then<br />
	mount /mnt/backup<br />
fi</code></p>
<p>5. Create backup directories<br />
<code>#Create backup directories<br />
	if [ ! -d "$ddir" ]; then<br />
		mkdir $ddir<br />
	fi<br />
	if [ ! -d "$tdir" ]; then<br />
		mkdir $tdir<br />
	fi</code></p>
<p>6. Move backups and copy logs to backup directory<br />
<code>#Copy backups and logs to backup directories<br />
cp -f f*.sql $tdir<br />
echo APEX Backup Completed $(date) >> $adir/backup_log<br />
cp -f backup_log $tdir</code></p>
<p>So now that we know what each section of the code is doing here is the entire script:<br />
<code>#/bin/bash</p>
<p>adir=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/apex/utilities<br />
ddir=/mnt/backup/config/apex/backups/$(date +%A)<br />
tdir="$ddir/$(date +%p)"</p>
<p>cd $adir<br />
export CLASSPATH=.:${ORACLE_HOME}/jdbc/lib/ojdbc14.jar</p>
<p>echo APEX Backup Started $(date) >> $adir/backup_log<br />
java oracle/apex/APEXExport -db localhost:1521:XE -user APEX_040100 -password HDlsdkjHs -workspaceid 1316703665945575 >> $adir/backup_log</p>
<p>#Check if mount does NOT exist<br />
if ! grep -qs '/mnt/backup' /proc/mounts; then<br />
	mount /mnt/backup<br />
fi</p>
<p>#Create backup directories<br />
	if [ ! -d "$ddir" ]; then<br />
		mkdir $ddir<br />
	fi<br />
	if [ ! -d "$tdir" ]; then<br />
		mkdir $tdir<br />
	fi</p>
<p>#Copy backups and logs to backup directories<br />
cp -f f*.sql $tdir<br />
echo APEX Backup Completed $(date) >> $adir/backup_log<br />
cp -f backup_log $tdir</code></p>
<p><strong>Configure a cron job to run the script twice a day 7 days a week</strong><br />
Edit crontab as root<br />
<code>su<br />
crontab -e</code></p>
<p>Add one job to run the script at 11:55am and another to run the script at 5:00pm<br />
<code>#APEXExport AM<br />
55 11 * * * /root/apex_backup.sh >/dev/null 2>&#038;1<br />
#APEXExport PM<br />
0 17 * * * /root/apex_backup.sh >/dev/null 2>&#038;1</code></p>
<p>After a week you will have AM and PM backups for Mon &#8211; Sun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/schedule-apex-network-backups/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bobcat Ridge &#8211; 01.2012</title>
		<link>http://www.jesswatts.com/mountain-bike/bobcat-ridge-01-2012</link>
		<comments>http://www.jesswatts.com/mountain-bike/bobcat-ridge-01-2012#comments</comments>
		<pubDate>Mon, 23 Jan 2012 00:00:13 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[Mountain Bike]]></category>
		<category><![CDATA[bike]]></category>
		<category><![CDATA[biking]]></category>
		<category><![CDATA[bobcat ridge]]></category>
		<category><![CDATA[colorado]]></category>
		<category><![CDATA[directions]]></category>
		<category><![CDATA[fort collins]]></category>
		<category><![CDATA[ginny trail]]></category>
		<category><![CDATA[hero go pro]]></category>
		<category><![CDATA[loveland]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[mountain biking]]></category>
		<category><![CDATA[rocky mountain]]></category>
		<category><![CDATA[trail]]></category>
		<category><![CDATA[trail condition]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1180</guid>
		<description><![CDATA[First good ride of the year even though it was very windy up top. Enjoy the Ginny Trail at Bobcat Ridge and music courtesy of Ratatat. Bobcat Ridge: Trail Conditions Trail Map Location Weather:]]></description>
			<content:encoded><![CDATA[<p>First good ride of the year even though it was very windy up top. Enjoy the Ginny Trail at Bobcat Ridge and music courtesy of Ratatat.</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/5z9osvVOzlI&amp;ap=%2526fmt%3D18" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed wmode="opaque" src="http://www.youtube.com/v/5z9osvVOzlI&amp;ap=%2526fmt%3D18" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></p>
<p>Bobcat Ridge:<br />
<a href="http://www.fcgov.com/naturalareas/status.php">Trail Conditions</a><br />
<a href="http://www.comtb.com/bobcat/bobcat.pdf">Trail Map</a><br />
<a href="http://maps.google.com/maps?q=40.48021,-105.224691&#038;hl=en&#038;ll=40.479239,-105.228939&#038;spn=0.032415,0.066047&#038;sll=40.477297,-105.222373&#038;sspn=0.016208,0.033023&#038;vpsrc=6&#038;t=h&#038;z=15">Location</a></p>
<p>Weather:<br />
 <table cellpadding="0" cellspacing="0" border="0" width="100%" class="css_table_class"> <caption>Masonville, CO</caption> <thead> <tr> <th scope="col" width="33.33%" align="center">Today</th> <th scope="col" width="33.33%" align="center">02/05/2012</th> <th scope="col" width="33.33%" align="center">02/06/2012</th> </tr> </thead> <tbody> <tr> <td align="center" class="css_table_class_chance-of-snow"><img src="http://icons-ecast.wxug.com/i/c/k/chancesnow.gif" width="50" height="50" alt="It is forcast to be Chance of Snow at 11:00 PM MST on February 04, 2012" style="display:block;" /><div class="wp_wund_conditions">Chance of Snow</div>22&deg;/4&deg;</td> <td align="center" class="css_table_class_partly-cloudy"><img src="http://icons-ecast.wxug.com/i/c/k/partlycloudy.gif" width="50" height="50" alt="It is forcast to be Partly Cloudy at 11:00 PM MST on February 05, 2012" style="display:block;" /><div class="wp_wund_conditions">Partly Cloudy</div>31&deg;/11&deg;</td> <td align="center" class="css_table_class_chance-of-snow"><img src="http://icons-ecast.wxug.com/i/c/k/chancesnow.gif" width="50" height="50" alt="It is forcast to be Chance of Snow at 11:00 PM MST on February 06, 2012" style="display:block;" /><div class="wp_wund_conditions">Chance of Snow</div>31&deg;/16&deg;</td> </tr> </tbody> </table></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/mountain-bike/bobcat-ridge-01-2012/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2 years later</title>
		<link>http://www.jesswatts.com/motorcycle/2-years-later</link>
		<comments>http://www.jesswatts.com/motorcycle/2-years-later#comments</comments>
		<pubDate>Thu, 12 Jan 2012 06:44:39 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[Motorcycle]]></category>
		<category><![CDATA[black canyon]]></category>
		<category><![CDATA[camping]]></category>
		<category><![CDATA[canyon]]></category>
		<category><![CDATA[colorado]]></category>
		<category><![CDATA[duragno]]></category>
		<category><![CDATA[hammocks]]></category>
		<category><![CDATA[hero gopro]]></category>
		<category><![CDATA[hw 141]]></category>
		<category><![CDATA[million dollar highway]]></category>
		<category><![CDATA[yamaha r6]]></category>
		<category><![CDATA[yamaha vstar]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1168</guid>
		<description><![CDATA[It&#8217;s been 2 years and we finally hit the road on two sticky wheels again. This years motorcycle trip was the best. More unexpected and impassible dirt roads than ever before! More hammock slinging than ever before! And the usual amount of biscuits gravy and coffee. This is our 4th loop around Colorado. The first [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jesswatts.com/wp-content/uploads/IMG_16251.jpg"><img src="http://www.jesswatts.com/wp-content/uploads/IMG_16251-300x224.jpg" alt="" title="Whoa" width="300" height="224" class="aligncenter size-medium wp-image-1170" /></a></p>
<p>It&#8217;s been 2 years and we finally hit the road on two sticky wheels again. This years motorcycle trip was the best. More unexpected and impassible dirt roads than ever before! More hammock slinging than ever before! And the usual amount of biscuits gravy and coffee.</p>
<p>This is our 4th loop around Colorado. The first two years were well traveled roads that made a nice loop of the state, clockwise one time, counter clockwise the other. We then planned on Zion, UT but it was way to hot so we sought higher ground. The 3rd year was a custom loop devised from some of the gnarliest twisting roads in Colorado. This time, we took those same roads to google maps and tweaked each route until there wasn&#8217;t a strait section for more that 10 miles. The consequences were unforgettable! and dirty!</p>
<p>Check out the <a href="http://www.jesswatts.com/motorcycle-gallery">motorcycle section</a> to see pics from the most recent trip. Hero GoPro video coming soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/motorcycle/2-years-later/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To The Cloud! Longs Peak &#8211; Loft Route</title>
		<link>http://www.jesswatts.com/14er/to-the-cloud-longs-peak-loft-route</link>
		<comments>http://www.jesswatts.com/14er/to-the-cloud-longs-peak-loft-route#comments</comments>
		<pubDate>Fri, 09 Sep 2011 20:19:12 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[14er]]></category>
		<category><![CDATA[chasm]]></category>
		<category><![CDATA[colorado]]></category>
		<category><![CDATA[estes park]]></category>
		<category><![CDATA[home stretch]]></category>
		<category><![CDATA[lake]]></category>
		<category><![CDATA[lambs slide]]></category>
		<category><![CDATA[loft]]></category>
		<category><![CDATA[longs]]></category>
		<category><![CDATA[narrows]]></category>
		<category><![CDATA[peak]]></category>
		<category><![CDATA[ships prow]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1154</guid>
		<description><![CDATA[9.8.2011 My mom and I went to the top of Longs Peak via the Loft Route. We stopped for breakfast at Chasm Lake and that was the last time we could SEE the summit. At the top of Lamb&#8217;s Slide just before the Exit Ramp to the Loft the clouds soared up towards us and [...]]]></description>
			<content:encoded><![CDATA[<p>9.8.2011 My mom and I went to the top of Longs Peak via the Loft Route. </p>
<p>We stopped for breakfast at Chasm Lake and that was the last time we could SEE the summit.<br />
<a href="http://www.jesswatts.com/wp-content/uploads/Longs-summit-sept-2011-028.jpg"><img src="http://www.jesswatts.com/wp-content/uploads/Longs-summit-sept-2011-028-300x225.jpg" alt="" title="Long&#039;s summit sept 2011 028" width="300" height="225" class="aligncenter size-medium wp-image-1156" /></a><br />
At the top of Lamb&#8217;s Slide just before the Exit Ramp to the Loft the clouds soared up towards us and engulfed everything above 1,300&#8242;. From that moment on we were climbing in the clouds. It was until we got back down to Chasm Lake that we were able to see more than 20 feet in front of us. While in the cloud it snowed for short periods of time. There is a solid snow field at the top of the Lamb&#8217;s Slide that is mostly avoidable to the left, however the rocks were slightly wet and icy in spots.<br />
<a href="http://www.jesswatts.com/wp-content/uploads/Longs-summit-sept-2011-080.jpg"><img src="http://www.jesswatts.com/wp-content/uploads/Longs-summit-sept-2011-080-300x225.jpg" alt="" title="Long&#039;s summit sept 2011 080" width="300" height="225" class="aligncenter size-medium wp-image-1157" /></a><br />
The Loft itself had patches of snow which was actually helpful on the return trip. Without much visibility we were able to retrace our steps like they were bread crumbs.<br />
<a href="http://www.jesswatts.com/wp-content/uploads/Longs-summit-sept-2011-069.jpg"><img src="http://www.jesswatts.com/wp-content/uploads/Longs-summit-sept-2011-069-300x225.jpg" alt="" title="Long&#039;s summit sept 2011 069" width="300" height="225" class="aligncenter size-medium wp-image-1158" /></a><br />
No view from the top but it was a very cool experience. Back at Chasm Lake we took a look behind us and I could not believe we were up there just hours earlier. It was a wonderful trip.</p>
<p>Full Gallery</p>
<object style="float:left; margin: 0 10px 10px 0" width="154" height="154"><param name="movie" value="http://picasna.com/widget/gallery.swf?cover=lh4.ggpht.com/-cxFxL-rc7MY/Tmpd72AryXE/AAAAAAAABuw/Fp0ZEmcwE6U/s144-c/LongsPeak09082011.jpg&xmlPath=picasna.com/widget/xml&an=LongsPeak09082011&ps=800&un=jesszen&at=To the Cloud! Longs Peak &#8211; Loft Route &#8211; 092011&ts=144&cpad=5&tpad=7&cscheme=0&ct=0&bt=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed style="float:left; margin: 0 10px 10px 0" width="154" height="154" src="http://picasna.com/widget/gallery.swf?cover=lh4.ggpht.com/-cxFxL-rc7MY/Tmpd72AryXE/AAAAAAAABuw/Fp0ZEmcwE6U/s144-c/LongsPeak09082011.jpg&xmlPath=picasna.com/widget/xml&an=LongsPeak09082011&ps=800&un=jesszen&at=To the Cloud! Longs Peak &#8211; Loft Route &#8211; 092011&ts=144&cpad=5&tpad=7&cscheme=0&ct=0&bt=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="154" height="154"></embed></object>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/14er/to-the-cloud-longs-peak-loft-route/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Edora Frolf Course Map</title>
		<link>http://www.jesswatts.com/other/new-edora-frolf-course-map</link>
		<comments>http://www.jesswatts.com/other/new-edora-frolf-course-map#comments</comments>
		<pubDate>Wed, 31 Aug 2011 16:29:08 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[edora]]></category>
		<category><![CDATA[fort collins]]></category>
		<category><![CDATA[frisbee]]></category>
		<category><![CDATA[frolf]]></category>
		<category><![CDATA[golf]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1144</guid>
		<description><![CDATA[Enjoy the new course and click on the map below for the full size version.]]></description>
			<content:encoded><![CDATA[<p>Enjoy the new course and click on the map below for the full size version.</p>
<p><a href="http://www.jesswatts.com/wp-content/uploads/edoramap.jpg"><img src="http://www.jesswatts.com/wp-content/uploads/edoramap-300x203.jpg" alt="" title="edoramap" width="300" height="203" class="aligncenter size-medium wp-image-1145" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/other/new-edora-frolf-course-map/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

