<?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>Fri, 20 Apr 2012 00:21:00 +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>Install VMware Player 4 on Ubuntu Server</title>
		<link>http://www.jesswatts.com/it/install-vmware-player-4-on-ubuntu-server</link>
		<comments>http://www.jesswatts.com/it/install-vmware-player-4-on-ubuntu-server#comments</comments>
		<pubDate>Wed, 04 Apr 2012 15:51:20 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu server]]></category>
		<category><![CDATA[vmware player]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1213</guid>
		<description><![CDATA[Install Ubuntu Server with no additional packages (ie, LAMP, Virtual Machine Host, etc) Updates sudo apt-get update sudo apt-get upgrade Returns build information that will be used with the command below uname -r Install packages required by VMware player Replace &#8216;uname -r&#8217; in the command below with the results from uname -r above sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>Install Ubuntu Server with no additional packages (ie, LAMP, Virtual Machine Host, etc)</p>
<p>Updates<br />
<code><br />
sudo apt-get update<br />
sudo apt-get upgrade</code></p>
<p>Returns build information that will be used with the command below<br />
<code>uname -r</code></p>
<p>Install packages required by VMware player<br />
Replace &#8216;uname -r&#8217; in the command below with the results from uname -r above<br />
<code>sudo apt-get install build-essential linux-headers-'uname -r'</code></p>
<p>Install a GUI<br />
<code>sudo apt-get install xubuntu-desktop</code></p>
<p>Start GUI<br />
<code>sudo startx</code></p>
<p>Donwnload VMware Player<br />
Browse to www.vmware.com/go/downloadplayer<br />
Download the latest version of Player for either 32 or 64 bit linux (depending on what you installed)</p>
<p>Open a terminal and install VMware Player<br />
<code>cd /home/youruser/Downloads<br />
gksudo bash ./VMware-Player-yourversion<br />
</code></p>
<p>Example:<br />
<code>cd /home/jess/Downloads<br />
gksudo bash ./VMware-Player-4.0.2-59120.x86_64.bundle<br />
</code></p>
<p>Follow the VMware installer GUI to finish the install.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/install-vmware-player-4-on-ubuntu-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>html hyperlink popup in wordpress</title>
		<link>http://www.jesswatts.com/it/html-hyperlink-popup-in-wordpress</link>
		<comments>http://www.jesswatts.com/it/html-hyperlink-popup-in-wordpress#comments</comments>
		<pubDate>Thu, 08 Mar 2012 17:55:53 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[pluggin]]></category>
		<category><![CDATA[pop up]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1210</guid>
		<description><![CDATA[There are several popup pluggins for wordpress, I haven&#8217;t found one that does a simple popup window that can work with other contact forms. Here is an HTML/Javascript solution: &#60;a href=&#8221;http://popupurl.com&#8221; onclick=&#8221;window.open(this.href,&#8217;window&#8217;,'width=400,height=500,resizable,scrollbars,toolbar,menubar&#8217;) ;return false;&#8221;&#62;Link Text&#60;/a&#62; Link Text]]></description>
			<content:encoded><![CDATA[<p>There are several popup pluggins for wordpress, I haven&#8217;t found one that does a simple popup window that can work with other contact forms.</p>
<p>Here is an HTML/Javascript solution:</p>
<p>&lt;a href=&#8221;http://popupurl.com&#8221; onclick=&#8221;window.open(this.href,&#8217;window&#8217;,'width=400,height=500,resizable,scrollbars,toolbar,menubar&#8217;) ;return false;&#8221;&gt;Link Text&lt;/a&gt;</p>
<p><a href="http://jesswatts.com" onclick="window.open(this.href,'window','width=400,height=500,resizable,scrollbars,toolbar,menubar') ;return false;">Link Text</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/html-hyperlink-popup-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress fix &#8211; apostrophes appear as question marks</title>
		<link>http://www.jesswatts.com/it/wordpress-fix-apostrophes-appear-as-question-marks</link>
		<comments>http://www.jesswatts.com/it/wordpress-fix-apostrophes-appear-as-question-marks#comments</comments>
		<pubDate>Thu, 08 Mar 2012 17:51:02 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[apostrophe]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[question marks]]></category>
		<category><![CDATA[solved]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1205</guid>
		<description><![CDATA[Does your theme not interpret &#8216; apostrophes &#8216; correctly? Do they appear as ? question marks ? or other characters. A quick fix is to replace the apostrophe with &#38;#39;]]></description>
			<content:encoded><![CDATA[<p>Does your theme not interpret &#8216; apostrophes &#8216; correctly? Do they appear as ? question marks ? or other characters.</p>
<p>A quick fix is to replace the apostrophe with <code>&amp;#39;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/wordpress-fix-apostrophes-appear-as-question-marks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPad 3</title>
		<link>http://www.jesswatts.com/it/ipad-3</link>
		<comments>http://www.jesswatts.com/it/ipad-3#comments</comments>
		<pubDate>Wed, 07 Mar 2012 22:16:27 +0000</pubDate>
		<dc:creator>wattsup</dc:creator>
				<category><![CDATA[IT]]></category>

		<guid isPermaLink="false">http://www.jesswatts.com/?p=1202</guid>
		<description><![CDATA[Just pre-ordered, delivery set for March 16th!]]></description>
			<content:encoded><![CDATA[<p>Just pre-ordered, delivery set for March 16th!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jesswatts.com/it/ipad-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
	</channel>
</rss>

