<?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>Technology Blog</title>
	<atom:link href="http://www.brianessig.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brianessig.com</link>
	<description>Tips and Tricks for Techies</description>
	<lastBuildDate>Thu, 16 Feb 2012 21:54:53 +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>Shell Script to Optimize all tables for a database</title>
		<link>http://www.brianessig.com/2012/02/shell-script-to-optimize-all-tables-for-a-database/</link>
		<comments>http://www.brianessig.com/2012/02/shell-script-to-optimize-all-tables-for-a-database/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 21:27:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/?p=328</guid>
		<description><![CDATA[This shell script finds all the tables for a database and run a command against it. &#160; See File optimize-tables The file&#8217;s contents are below as well: #!/bin/sh # this shell script finds all the tables for a database and run a command against it # @usage &#34;mysql_tables.sh --optimize MyDatabaseABC&#34; # @date 6/14/2006 # @version 1.1 [...]]]></description>
			<content:encoded><![CDATA[<p>This shell script finds all the tables for a database and run a command against it.</p>
<p>&nbsp;</p>
<p>See File <a href="http://www.brianessig.com/wp-content/uploads/optimize-tables.txt">optimize-tables</a></p>
<p>The file&#8217;s contents are below as well:</p>
<pre>
#!/bin/sh

# this shell script finds all the tables for a database and run a command against it
# @usage &quot;mysql_tables.sh --optimize MyDatabaseABC&quot;
# @date 6/14/2006
# @version 1.1 - 1/28/2007 - add repair
# @version 1.0 - 6/14/2006 - first release
# @author Son Nguyen

DBNAME=$2

printUsage() {
  echo &quot;Usage: $0&quot;
  echo &quot; --optimize &lt;dbname&gt;&quot;
  echo &quot; --repair &lt;dbname&gt;&quot;
  return
}

doAllTables() {
  # get the table names
  TABLENAMES=`mysql -D $DBNAME -e &quot;SHOW TABLES\G;&quot;|grep &#039;Tables_in_&#039;|sed -n &#039;s/.*Tables_in_.*: \([_0-9A-Za-z]*\).*/\1/p&#039;`

  # loop through the tables and optimize them
  for TABLENAME in $TABLENAMES
  do
    mysql -D $DBNAME -e &quot;$DBCMD TABLE $TABLENAME;&quot;
  done
}

if [ $# -eq 0 ] ; then
  printUsage
  exit 1
fi

case $1 in
  --optimize) DBCMD=OPTIMIZE; doAllTables;;
  --repair) DBCMD=REPAIR; doAllTables;;
  --help) printUsage; exit 1;;
  *) printUsage; exit 1;;
esac
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2012/02/shell-script-to-optimize-all-tables-for-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert any dedicated machine into a xen hypervisor</title>
		<link>http://www.brianessig.com/2012/02/convert-any-dedicated-machine-into-a-xen-hypervisor/</link>
		<comments>http://www.brianessig.com/2012/02/convert-any-dedicated-machine-into-a-xen-hypervisor/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 21:23:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/?p=324</guid>
		<description><![CDATA[&#160; Important Note: Since these were Rackspace servers – the default repository that they connect to does not have the xen kernel packages and xen software on them.  We had to call and have Rackspace add the capability of using certain commands like “yum install xen” Step 1.1:Install the xen kernel and xen. &#160; # [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><strong>Important Note:</strong></p>
<p>Since these were Rackspace servers – the default repository that they connect to does not have the xen kernel packages and xen software on them.  We had to call and have Rackspace add the capability of using certain commands like “yum install xen”</p>
<p><strong>Step 1.1:</strong>Install the xen kernel and xen.</p>
<p>&nbsp;</p>
<pre>

# yum --disableexcludes=all install kernel-xen xen
</pre>
<p>&nbsp;</p>
<p><strong>Step 1.2:</strong> Reboot</p>
<p>&nbsp;</p>
<pre># reboot</pre>
<p>&nbsp;</p>
<p><strong> </strong></p>
<p><strong>Step 1.3:</strong>Ensure the new kernel loaded.  You should see xen after the kernel version:</p>
<p>&nbsp;</p>
<pre># uname –a</pre>
<p>&nbsp;</p>
<p><code>Linux web1.myhostname.com 2.6.18-238.9.1.el5<strong>xen</strong> #1 SMP Fri Mar 18 12:53:42 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux</code></p>
<p>&nbsp;</p>
<p><strong> </strong></p>
<p><strong>Step 1.4:</strong>Ensure xen is running on boot.</p>
<p>&nbsp;</p>
<pre># xm list

Name                                      ID Mem(MiB) VCPUs State   Time(s)

Domain-0                                   0     7989     8 r-----   6268.9

&nbsp;
</pre>
<p>Congrats the host machine is setup!<strong></strong></p>
<p><strong>Step 2:</strong> Let’s setup a CentOS virtual machine.  Virt-install:</p>
<p>&nbsp;</p>
<pre># virt-install -–prompt</pre>
<p>&nbsp;</p>
<pre>What is the name of your virtual machine? mnode1

How much RAM should be allocated (in megabytes)? 8024

What would you like to use as the disk (file path)? /home/xen/mnode1

How large would you like the disk (/home/xen/mnode1) to be (in gigabytes)? 100

What is the install URL? http://mirror.cogentco.com/pub/linux/centos/5.6/os/x86_64/

&amp;nbsp;

&lt;code&gt;Starting install...&lt;/code&gt;

Retrieving file .treeinfo...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; 417 B&nbsp;&nbsp;&nbsp;&nbsp; 00:00

Retrieving file vmlinuz...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 2.1 MB&nbsp;&nbsp;&nbsp;&nbsp; 00:01

Retrieving file initrd.img...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 7.9 MB&nbsp;&nbsp;&nbsp;&nbsp; 00:03

Creating storage file...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 100 GB&nbsp;&nbsp;&nbsp;&nbsp; 00:00

Creating domain...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp; 0 B&nbsp;&nbsp;&nbsp;&nbsp; 00:05

error: Failed to get local hostname
</pre>
<pre>Domain installation still in progress. You can reconnect to

the console to complete the installation process.</pre>
<p>&nbsp;</p>
<p><strong>Step 4:</strong>At this point you need to connect to the virtual machines “console” to continue.</p>
<pre># xm console &lt;hostname&gt;</pre>
<p><strong>Step 5:</strong>Go through the centos install&#8230;..I&#8217;ll omit this process.  But in short you WILL need to know the ip address, subnet, and gateway of your server.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2012/02/convert-any-dedicated-machine-into-a-xen-hypervisor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install APF Firewall</title>
		<link>http://www.brianessig.com/2012/02/install-apf-firewall/</link>
		<comments>http://www.brianessig.com/2012/02/install-apf-firewall/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 21:03:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/?p=313</guid>
		<description><![CDATA[Install iptables (Hopefully, you&#8217;ve done this already) # yum install iptables* -y Download, unpack, install of APF from source: &#160; # cd /usr/local/src # wget http://www.rfxn.com/downloads/apf-current.tar.gz # tar -zxf apf-current.tar.gz # cd apf-9* # ./install.sh   Cleanup source install files: # rm -Rf /usr/local/src/apf-9* &#38;&#38; cd &#160; Backup original APF config: # cp /etc/apf/conf.apf /etc/apf/conf.apf.bak [...]]]></description>
			<content:encoded><![CDATA[<p>Install iptables (Hopefully, you&#8217;ve done this already)</p>
<p><code># yum install iptables* -y</code></p>
<p>Download, unpack, install of APF from source:</p>
<p>&nbsp;</p>
<p><code># cd /usr/local/src</code></p>
<p><code># wget http://www.rfxn.com/downloads/apf-current.tar.gz</code></p>
<p><code># tar -zxf apf-current.tar.gz</code></p>
<p><code># cd apf-9*</code></p>
<p><code># ./install.sh</code></p>
<p><strong> </strong></p>
<p>Cleanup source install files:</p>
<p><code># rm -Rf /usr/local/src/apf-9* &amp;&amp; cd</code></p>
<p>&nbsp;</p>
<p>Backup original APF config:</p>
<p><code># cp /etc/apf/conf.apf /etc/apf/conf.apf.bak</code></p>
<p>&nbsp;</p>
<p>Edit APF Configuration file:</p>
<p><code># nano -w /etc/apf/conf.apf</code></p>
<p>&nbsp;</p>
<p><strong>Change the following settings:</strong></p>
<p><code>RAB="0" to RAB="1"</code></p>
<p>RAB_PSCAN_LEVEL=&#8221;2&#8243; to RAB_PSCAN_LEVEL=&#8221;3&#8243;</p>
<p>TCR_PASS=&#8221;1&#8243; to TCR_PASS=&#8221;0&#8243;</p>
<p>DLIST_PHP=&#8221;0&#8243; to DLIST_PHP=&#8221;1&#8243;</p>
<p>DLIST_SPAMHAUS=&#8221;0&#8243; to DLIST_SPAMHAUS=&#8221;1&#8243;</p>
<p>DLIST_DSHIELD=&#8221;0&#8243; to DLIST_DSHIELD=&#8221;1&#8243;</p>
<p>DLIST_RESERVED=&#8221;0&#8243; to DLIST_RESERVED=&#8221;1&#8243;</p>
<p>IG_TCP_CPORTS=”21,22,25,53,80,443,3306″</p>
<p>IG_UDP_CPORTS=”″</p>
<p>EGF=”1”</p>
<p>EG_TCP_CPORTS=”22,3306,80,443″</p>
<p>EG_UDP_CPORTS=”″</p>
<p>DEVEL_MODE=”0”</p>
<p>&nbsp;</p>
<p><strong>Step 20:</strong> Reload APF:</p>
<p><code># /usr/local/sbin/apf–r</code></p>
<p><strong>Step 21:</strong>Make sure APF starts automatically after reboot:</p>
<p><code># chkconfig --add apf</code></p>
<p># chkconfig &#8211;level 345 apf on</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2012/02/install-apf-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2011-11-19</title>
		<link>http://www.brianessig.com/2011/11/twitter-updates-for-2011-11-19/</link>
		<comments>http://www.brianessig.com/2011/11/twitter-updates-for-2011-11-19/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 20:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/2011/11/twitter-updates-for-2011-11-19/</guid>
		<description><![CDATA[@CLaPlaca Hey newest follower! #]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>@<a href="http://twitter.com/CLaPlaca" class="aktt_username">CLaPlaca</a> Hey newest follower! <a href="http://twitter.com/creatingdigital/statuses/137661801725829120" class="aktt_tweet_time">#</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2011/11/twitter-updates-for-2011-11-19/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2011-10-13</title>
		<link>http://www.brianessig.com/2011/10/twitter-updates-for-2011-10-13/</link>
		<comments>http://www.brianessig.com/2011/10/twitter-updates-for-2011-10-13/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 20:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/2011/10/twitter-updates-for-2011-10-13/</guid>
		<description><![CDATA[@LiquidWeb its the host that&#39;s been down for 7 hours now: dc2-vps1-245 #]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>@<a href="http://twitter.com/LiquidWeb" class="aktt_username">LiquidWeb</a> its the host that&#39;s been down for 7 hours now: dc2-vps1-245 <a href="http://twitter.com/creatingdigital/statuses/124168982981910528" class="aktt_tweet_time">#</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2011/10/twitter-updates-for-2011-10-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2011-10-12</title>
		<link>http://www.brianessig.com/2011/10/twitter-updates-for-2011-10-12/</link>
		<comments>http://www.brianessig.com/2011/10/twitter-updates-for-2011-10-12/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 20:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/2011/10/twitter-updates-for-2011-10-12/</guid>
		<description><![CDATA[@liquidweb Not experiencing the Heroic Support today&#8230;down since 6:30am EST and no one can give me an ETA or description of whats going on. #]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>@<a href="http://twitter.com/liquidweb" class="aktt_username">liquidweb</a> Not experiencing the Heroic Support today&#8230;down since 6:30am EST and no one can give me an ETA or description of whats going on. <a href="http://twitter.com/creatingdigital/statuses/124143993436114944" class="aktt_tweet_time">#</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2011/10/twitter-updates-for-2011-10-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2011-09-28</title>
		<link>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-28-2/</link>
		<comments>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-28-2/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 20:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-28-2/</guid>
		<description><![CDATA[Check out coworking in Hoboken, NJ @MissionFifty http://www.MissionFifty.com. I just earned the MissionFiftyBadge! #]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Check out coworking in Hoboken, NJ @<a href="http://twitter.com/MissionFifty" class="aktt_username">MissionFifty</a> <a href="http://www.MissionFifty.com" rel="nofollow">http://www.MissionFifty.com</a>. I just earned the MissionFiftyBadge! <a href="http://twitter.com/creatingdigital/statuses/119042555345248256" class="aktt_tweet_time">#</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-28-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2011-09-12</title>
		<link>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-12/</link>
		<comments>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-12/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 20:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-12/</guid>
		<description><![CDATA[@AKlaassen Only approved people can view tweets&#8230;saw yours and gils #]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>@<a href="http://twitter.com/AKlaassen" class="aktt_username">AKlaassen</a> Only approved people can view tweets&#8230;saw yours and gils <a href="http://twitter.com/creatingdigital/statuses/112961970096967680" class="aktt_tweet_time">#</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2011-09-02</title>
		<link>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-02/</link>
		<comments>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-02/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 20:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-02/</guid>
		<description><![CDATA[Creating Digital Facebook page is in full effect! Please like us! #]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Creating Digital Facebook page is in full effect!  Please like us! <a href="http://twitter.com/creatingdigital/statuses/109384641391239169" class="aktt_tweet_time">#</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2011/09/twitter-updates-for-2011-09-02/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Updates for 2011-08-23</title>
		<link>http://www.brianessig.com/2011/08/twitter-updates-for-2011-08-23/</link>
		<comments>http://www.brianessig.com/2011/08/twitter-updates-for-2011-08-23/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 20:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.brianessig.com/2011/08/twitter-updates-for-2011-08-23/</guid>
		<description><![CDATA[http://t.co/RKdyFXh some google swag #]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li><a href="http://t.co/RKdyFXh" rel="nofollow">http://t.co/RKdyFXh</a> some google swag <a href="http://twitter.com/creatingdigital/statuses/105725465372798976" class="aktt_tweet_time">#</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brianessig.com/2011/08/twitter-updates-for-2011-08-23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

