<?xml version="1.0" encoding="iso-8859-1"?>

<rdf:RDF 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns="http://purl.org/rss/1.0/"
>
		
	<channel rdf:about="http://www.bpurcell.org/index.cfm">
	<title>Brandon Purcell's Blog</title>
	<description>A blog for ColdFusion, Java, and other topics.</description>
	<link>http://www.bpurcell.org/blog/index.cfm</link>
	
	<items>
		<rdf:Seq>
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1133" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1132" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1131" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1130" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1129" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1128" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1127" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1126" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1125" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1124" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1123" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1122" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1121" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1120" />
			
			<rdf:li rdf:resource="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1119" />
			
		</rdf:Seq>
	</items>
	
	</channel>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1133">
	<title>Helpful command to see disk space usage on linux by directory</title>
	<description>&lt;p&gt;I was running out of space on a server the other day and was wondering what directory was full and what files I could clean up. There is a simple command that is helpful to identify usage by directory. This works from within any directory so you can walk the path from / down through your largest directories and look for files to clean up.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;[root@localhost]# du -hc --max-depth=1&lt;br&gt;
  4.0K	./misc&lt;br&gt;
  4.0K	./srv&lt;br&gt;
  576K	./root&lt;br&gt;
  29M	./sbin&lt;br&gt;
  16K	./tmp&lt;br&gt;
  2.0G	./usr&lt;br&gt;
  731M	./proc&lt;br&gt;
  12M	./boot&lt;br&gt;
  0	./sys&lt;br&gt;
  379M	./appserver&lt;br&gt;
  28M	./opt&lt;br&gt;
  447M	./var&lt;br&gt;
  85M	./lib&lt;br&gt;
  8.0M	./etc&lt;br&gt;
  11M	./home&lt;br&gt;
  0	./selinux&lt;br&gt;
  6.3M	./bin&lt;br&gt;
  16K	./lost+found&lt;br&gt;
  40K	./dev&lt;br&gt;
  24K	./mnt&lt;br&gt;
  3.7G	.&lt;br&gt;
3.7G	total&lt;/em&gt;&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1133</link>
	<dc:date>2010-03-30T19:48:43-07:00</dc:date>
	<dc:subject>Amazon EC2</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1132">
	<title>Help with PostgreSQL commands</title>
	<description>&lt;p&gt;We use PostgreSQL for SpatialKey and because of that I have learned a lot about system administration with PostgreSQL. While debugging an issue with tables that had ballooned up I ran into this article which has some great tips for isolating db and table size with a few quick commands. &lt;a href=&quot;http://www.thegeekstuff.com/2009/05/15-advanced-postgresql-commands-with-examples/&quot;&gt;http://www.thegeekstuff.com/2009/05/15-advanced-postgresql-commands-with-examples/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also check out &lt;a href=&quot;http://www.thegeekstuff.com/2009/04/15-practical-postgresql-database-adminstration-commands/&quot;&gt;15 Practical PostgreSQL database administration commands&lt;/a&gt; and &lt;a href=&quot;http://www.thegeekstuff.com/2009/01/how-to-backup-and-restore-postgres-database-using-pg_dump-and-psql/&quot;&gt;backup and restore PostGreSQL with pg dump and psql&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1132</link>
	<dc:date>2010-01-06T08:14:10-07:00</dc:date>
	<dc:subject>Amazon EC2</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1131">
	<title>Keeping a session alive on ColdFusion using Jquery</title>
	<description>&lt;p&gt;There is nothing more frustrating than taking 30 minutes filling out some text in a long form only to submit and have your session reset and lose all of your data. Here is a simple solution to keep a session open on forms where users may need an extended period of time for data entry. I included this code on any page where I need the session extended. You can remove the javascript include if JQuery is included on everyone of your pages already.&lt;/p&gt;


&lt;DIV STYLE=&quot;padding-left : 10px;&quot;&gt;&lt;PRE&gt;&lt;FONT COLOR=GRAY&gt;&lt;I&gt;&amp;lt;!--- Include this file on any page where users may take a 
long time filling in text and you want to keep the session open ---&gt;&lt;/I&gt;&lt;/FONT&gt;
&lt;FONT COLOR=MAROON&gt;&amp;lt;cfparam name=&lt;FONT COLOR=BLUE&gt;&quot;variables.refreshrate&quot;&lt;/FONT&gt; default=&lt;FONT COLOR=BLUE&gt;&quot;60000&quot;&lt;/FONT&gt;&gt;&lt;/FONT&gt;

&lt;FONT COLOR=MAROON&gt;&amp;lt;cfoutput&gt;&lt;/FONT&gt;
&lt;FONT COLOR=NAVY&gt;&lt;FONT COLOR=MAROON&gt;&amp;lt;script type=&lt;FONT COLOR=BLUE&gt;&quot;text/javascript&quot;&lt;/FONT&gt; src=&lt;FONT COLOR=BLUE&gt;&quot;/js/jquery-1.3.2.min.js&quot;&lt;/FONT&gt;&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT COLOR=NAVY&gt;&lt;FONT COLOR=MAROON&gt;&amp;lt;/script&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT COLOR=NAVY&gt;&lt;FONT COLOR=MAROON&gt;&amp;lt;script language=&lt;FONT COLOR=BLUE&gt;&quot;JavaScript&quot;&lt;/FONT&gt; type=&lt;FONT COLOR=BLUE&gt;&quot;text/javascript&quot;&lt;/FONT&gt;&gt;&lt;/FONT&gt;&lt;/FONT&gt;
	$(document).ready(function(){
 					setTimeout(&lt;FONT COLOR=BLUE&gt;&quot;callserver()&quot;&lt;/FONT&gt;,#variables.refreshrate#); 
 				});
 	
 	function callserver()
 	{
 		var remoteURL = &apos;/emptypage.cfm	&apos;;
			    $.get(remoteURL,  function(data){
			     &lt;FONT COLOR=GRAY&gt;&lt;I&gt; //alert(data);&lt;/I&gt;&lt;/FONT&gt;
			      setTimeout(&lt;FONT COLOR=BLUE&gt;&quot;callserver()&quot;&lt;/FONT&gt;,#variables.refreshrate#);
			    });
 	}
&lt;FONT COLOR=NAVY&gt;&lt;FONT COLOR=MAROON&gt;&amp;lt;/script&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT COLOR=MAROON&gt;&amp;lt;/cfoutput&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1131</link>
	<dc:date>2009-08-04T06:36:45-07:00</dc:date>
	<dc:subject>ColdFusionMX,Jquery</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1130">
	<title>Drunk on Software episode featuring members from the SpatialKey team</title>
	<description>&lt;p&gt;&lt;a href=&quot;http://www.jamesward.com/&quot;&gt;James Ward&lt;/a&gt; and &lt;a href=&quot;http://gorillajawn.com/wordpress&quot;&gt;Jon Rose&lt;/a&gt; recently published the &lt;a onclick= href=&quot;http://www.drunkonsoftware.com/2009/07/26/episode-15-universal-mind-spatialkey/&quot;&gt;latest episode of Drunk on Software&lt;/a&gt; with members of the &lt;a onclick=&quot;javascript:pageTracker._trackPageview(&apos;/outgoing/spatialkey.com&apos;);&quot; href=&quot;http://spatialkey.com&quot;&gt;SpatialKey&lt;/a&gt; team, including myself, Tom Link, and &lt;a href=&quot;http://www.dougmccune.com/&quot;&gt;Doug McCune&lt;/a&gt;. 

  &lt;/p&gt;
&lt;p&gt;&lt;object id=&quot;showplayer&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; width=&quot;480&quot; height=&quot;300&quot;&gt;&lt;param value=&quot;true&quot; name=&quot;allowfullscreen&quot;&gt;&lt;param value=&quot;best&quot; name=&quot;quality&quot;&gt;&lt;param value=&quot;http://blip.tv/scripts/flash/showplayer.swf?enablejs=true&amp;file=http%3A//blip.tv/rss/flash/2415961&amp;feedurl=http%3A//drunkonsoftware.blip.tv/rss/&amp;autostart=false&amp;brandname=Drunk%20on%20Software&amp;brandlink=http%3A//drunkonsoftware.blip.tv/&quot; name=&quot;src&quot;&gt;&lt;embed id=&quot;showplayer&quot; allowfullscreen=&quot;true&quot; quality=&quot;best&quot; src=&quot;http://blip.tv/scripts/flash/showplayer.swf?enablejs=true&amp;file=http%3A//blip.tv/rss/flash/2415961&amp;feedurl=http%3A//drunkonsoftware.blip.tv/rss/&amp;autostart=false&amp;brandname=Drunk%20on%20Software&amp;brandlink=http%3A//drunkonsoftware.blip.tv/&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;480&quot; height=&quot;300&quot;&gt;&lt;br&gt;
  
&lt;/object&gt;&lt;/p&gt;
&lt;p&gt;In the video we talk about Universal Mind, how SpatialKey came to be, a lot about what SpatialKey is and how it works. I dive into the architecture a bit and how we leveraged the cloud to build out our infrastructure. &lt;/p&gt;
&lt;p&gt;Thanks to Jon and James hosting us, we crashed Jon&apos;s house for the video. I think Doug tossed back the most beers I can&apos;t keep up with him and still talk. &lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1130</link>
	<dc:date>2009-07-30T12:09:35-07:00</dc:date>
	<dc:subject>Amazon EC2,Software,SpatialKey</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1129">
	<title>Linux NFS mount: failed, reason given by server: Permission denied</title>
	<description>&lt;p&gt;This issue drove me nuts today for several hours today, to be honest I was pretty close to breaking something! Earlier in the day I had the NFS mount working fine then I created an AMI and booted up another instance from the newly created AMI but in the new instance the mount kept failing. The error looks something like this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;[root@server]# mount -t nfs 192.168.2.1:/dbshare /mnt/dbshare&lt;br /&gt;
mount: 192.168.2.1:/dbshare failed, reason given by server: Permission denied&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;According to the error you would think that I have a configuration issue so I changed everything that I could think of within /etc/exports&lt;/p&gt;
&lt;p&gt;My /etc/exports originally looked like this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;/dbshare 192.168.2.2(rw,sync)&lt;/em&gt; (where 192.168.2.2 is the client where I am performing the mount)&lt;/p&gt;
&lt;p&gt;I changed it to something more open like this with no luck:&lt;/p&gt;
&lt;p&gt;/dbshare 192.168.0.0/255.255.0.0(rw,sync)&lt;/p&gt;
&lt;p&gt;I started looking around the logs on the server in /var/log/messages and found that it was authenticating fine&lt;br /&gt;
&lt;em&gt;Jun 11 19:04:00 servername mountd[5222]: authenticated mount request from 192.168.2.2:736 for /dbshare (/dbshare)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I was really frustrated at this point and I had already spent an hour on Google looking for the answer. I found another answer but the website was down, luckily the cached version on Google came to the rescue. &lt;/p&gt;
&lt;p&gt;The ANSWER:&lt;/p&gt;
&lt;p&gt;The problem was that the special nfsd file system that mounts to /proc/fs/nfsd wasn&apos;t mounted.  I&apos;m not sure how it gets mounted (maybe rc.sysinit does it?), but I tool the advice from the forum entry and added an entry to /etc/fstab&lt;/p&gt;
&lt;p&gt;&lt;em&gt;none	/proc/fs/nfsd	nfsd	auto,defaults	0 0&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;then ran &lt;em&gt;mount -a&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;After this the mount worked fine. I hope that someone finds this helpful.&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1129</link>
	<dc:date>2009-06-11T18:28:56-07:00</dc:date>
	<dc:subject>Amazon EC2</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1128">
	<title>Recursively deleting .svn directories</title>
	<description>&lt;p&gt;I often need to copy code from a SVN repository to a location where I have files deployed or I may pull code from an SVN repository on the web and want to check it in locally. Both of these actions require the stripping out of all .svn directories spread throughout the directory structure. On Linux or Mac this is pretty simple with the following command&lt;/p&gt;
&lt;p&gt;&lt;em&gt;sudo find -d . -name &apos;.svn&apos; -exec rm -rf &apos;{}&apos; \; -print&lt;/em&gt;&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1128</link>
	<dc:date>2009-05-27T10:15:32-07:00</dc:date>
	<dc:subject>Amazon EC2</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1127">
	<title>Slick Example of JQuery Selectors</title>
	<description>&lt;p&gt;I ran across &lt;a href=&quot;http://codylindley.com/jqueryselectors/&quot;&gt;this today&lt;/a&gt;. Examples are great when trying to understand JQuery selectors. &lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1127</link>
	<dc:date>2009-05-14T22:50:11-07:00</dc:date>
	<dc:subject>Jquery</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1126">
	<title>CFDUMP for PHP and Javascript</title>
	<description>&lt;p&gt;In recent months I have been using PHP to extend functionality inside of WordPress for the SpatialKey site and working with JQuery as well. After working with ColdFusion for so long I have gotten spoiled by the CFDUMP tag . Here are a few options similar to CFDUMP for both PHP and Javascript.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://dbug.ospinto.com/&quot;&gt;CFDUMP for PHP - dBug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.netgrow.com.au/files/javascript_dump.cfm&quot;&gt;CFDUMP for Javascript&lt;/a&gt;&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1126</link>
	<dc:date>2009-05-14T11:34:24-07:00</dc:date>
	<dc:subject>ColdFusionMX</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1125">
	<title>Sending SMTP messages from your EC2 instances</title>
	<description>&lt;p&gt;One challenge I have encountered with Amazon Ec2 is the sending of email from our web applications. If you try to send directly from sendmail or postfix then you might as well forget about guranteed delivery. A large amount of your email will end up in spam folders if it is even delivered at all. &lt;/p&gt;
&lt;p&gt;There are a few problems with delivering email from Ec2&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;MX record will not map to your IP and you are using dynamic IPs (you can address this with elastic IP&apos;s) adding a SPF DNS record can help as well&lt;/li&gt;
  &lt;li&gt;Reverse DNS will map back to Amazon and not back to your Hostname&lt;/li&gt;
  &lt;li&gt;Many of the Ec2 IP&apos;s have been blacklisted due to abusers of the service sending spam.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are a few solutions to this problem and I will propose two of them.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Using a google apps account:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you are using a solution like Google Apps and have them host your email accounts then you can use gmail as your SMTP server. You will need to create an account donotreply@mydomain.com and use authentication in your applications to send the email. With Google apps you cannot override the &quot;from&quot; address when you send email it wil always become whatever you account you are sending from. For example if you create the account donotreply@mydomain.com and attempt to set the &quot;from&quot; in your code to send from brandon@mydomain.com google will override it and send from donotreply. The only option is to set &quot;replyto&quot; in your code and when a user replys they will send to your replyto account. With google apps you are limited to a maximum amount of 500 emails a day per account as well and if you are sending a lot of emails this can quickly become a problem. This is a great solution for small volumes of email and you delivery rates are very good.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Relay from localhost through a third party&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;This &lt;a href=&quot;http://pauldowman.com/2008/02/17/smtp-mail-from-ec2-web-server-setup/&quot;&gt;blog post outlines&lt;/a&gt; a set of steps to relay through a local Postfix instance to a third party SMTP service. The great thing about this solution is that you can send email from your application to localhost without storing the authentication parameters in your applications code and have Postfix handle it all. If you have many applications sending email this can greatly simplify things. Also it allows your application to hand off the emails quickly to another service that can handle queuing in case the third party email service is down at any time. You could combine the approach above with this one but you would still have the 500 email limitation. I am searching for a good third party SMTP service that is reliable, the &lt;a href=&quot;http://pauldowman.com/2008/02/17/smtp-mail-from-ec2-web-server-setup/&quot;&gt;author of the blog post&lt;/a&gt; recommends &lt;a href=&quot;http://www.authsmtp.com/&quot;&gt;AuthSMP&lt;/a&gt;. I have not tried them and their prices are not too high but not cheap either. I am going to do a little more digging and test some of the options and will report back to this posting.&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1125</link>
	<dc:date>2009-04-29T13:27:05-07:00</dc:date>
	<dc:subject>Amazon EC2</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1124">
	<title>Running applications at startup on Linux with chckconfig</title>
	<description>&lt;p&gt;This is common knowledge if you have been using Linux for a while but I still find it a helpful resource to understand how you set what programs are running when Linux starts. This is mainly specific to Red Hat or CentOS which I use on a regular basis. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;  Running level&lt;/b&gt;&lt;br&gt;
  
  Running level is the current running functional level of the operation system, from level 1 to 6, possessing different functions.&lt;br&gt;
Here are the different running levels:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;0 - downtime or halt&lt;/li&gt;
  &lt;li&gt;1  single user mode&lt;/li&gt;
  &lt;li&gt;2  multi-userno NFS &lt;/li&gt;
  &lt;li&gt;3  entire multi-user mode(standard running level) &lt;/li&gt;
  &lt;li&gt;4  not available &lt;/li&gt;
  &lt;li&gt;5 - X11 multi-user graphic modexwindow) &lt;/li&gt;
  &lt;li&gt;6 - restart never set initdefault 6 	 &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  These levels are specified in the file /etc/inittab., which is the main file that the program init looks for, and the first running service is placed under the directory /etc/rc.d.  For most Linux releases, startup scripts are all located in /etc/rc.d/init.d, which are all linked to the directory  /etc/rc.d/rcn.d by ln command (here the n is the running level 0-6).&lt;br&gt;
  &lt;br&gt; 
&lt;strong&gt;Setting services/applications to run at startup using chkconfig&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;chkconfig&lt;/em&gt; command (under redhat and centos)&lt;/p&gt;
&lt;p&gt;Linux provides the command chkconfig to update and query system services of different running levels allowing you to set when certain process are started.&lt;br&gt;&lt;br&gt;
  &lt;b&gt;Syntax:&lt;/b&gt;&lt;br&gt;
  chkconfig --list [name] &lt;br&gt;
  chkconfig --add name &lt;br&gt;
  chkconfig --del name &lt;br&gt;
  chkconfig [--level levels] name &lt;br&gt;
  
chkconfig [--level levels] name&lt;/p&gt;
&lt;p&gt;example:&lt;/p&gt;
&lt;pre&gt;
[user@server]# chkconfig --list
anacron        	0:off	1:off	2:on	3:on	4:off	5:on	6:off
atd            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:off	5:on	6:off
conman         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
dc_client      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dc_server      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
getsshkey      	0:off	1:off	2:off	3:off	4:on	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
haproxy        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ibmasm         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
iptables       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
jexec          	0:on	1:on	2:on	3:on	4:on	5:on	6:on
&lt;/pre&gt;
&lt;p&gt;
  &lt;em&gt;chkconfig&lt;/em&gt; has five functions: add service, delete service, list service, change startup info and check the start state of specified service.&lt;br&gt;
  
  &lt;br&gt;
Option overview:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;--level levels &lt;/b&gt;&lt;br&gt;
  specify running level, which is a character string composed of the number 0 to 7. For example:&lt;br&gt;
  --level 35 means to specify running level 3 and 5.&lt;br&gt;
  To stop the service nfs during running level 3,4,5, use the command next: chkconfig --level 345 nfs off&lt;br&gt;
  &lt;br&gt;
  &lt;b&gt;--add name&lt;/b&gt;&lt;br&gt;
  This option adds a new service, chkconfig ensures every running level an entrance to start (S) or to kill (K). if it is absent, then it would auto establish from default init script.
  
  &lt;br&gt;&lt;br&gt;
  &lt;b&gt;  --del name&lt;/b&gt;&lt;br&gt;
  To delete service and delete related sign connections from /etc/rc[0-6].d.&lt;br&gt;
  &lt;br&gt;
  &lt;b&gt;--list name&lt;/b&gt;&lt;br&gt;
  List, if name is specified, then it only displays specified service name, otherwise, to list the state of all service at different running levels.&lt;br&gt;
  &lt;br&gt; 
Usage examples:&lt;/p&gt;
&lt;p&gt;As an example if you wanted mysql to run when the os starts you just need to do the following&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;/etc/init.d/mysqld must exist and needs to be an executable (chmod +x)&lt;/li&gt;
  &lt;li&gt;Add mysql - &lt;em&gt;chkconfig --add mysqld&lt;/em&gt;&lt;/li&gt;
  &lt;li&gt;setting the start level - &lt;em&gt;chkconfig --level 345 mysqld on&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This example applies to any server and to validate that it worked you can use &lt;em&gt;chkconfig --list | grep mysql&lt;/em&gt; to see the changes&lt;/p&gt;
&lt;p&gt;&#xa0;&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1124</link>
	<dc:date>2009-04-29T12:13:53-07:00</dc:date>
	<dc:subject>Amazon EC2</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1123">
	<title>.htaccess tips and tricks</title>
	<description>&lt;p&gt;I ran across &lt;a href=&quot;http://corz.org/serv/tricks/htaccess.php&quot;&gt;this article&lt;/a&gt; while debugging some .htaccess issues on our SpatialKey server and found some helpful information on .htaccess.</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1123</link>
	<dc:date>2009-04-29T09:36:28-07:00</dc:date>
	<dc:subject>Amazon EC2</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1122">
	<title>Monitoring in Linux</title>
	<description>&lt;p&gt;This is a &lt;a href=&quot;http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html&quot;&gt;good article on some monitoring tools for Linux&lt;/a&gt;. I had already used several of them before but found &apos;htop&apos; and &apos;atop&apos; in the comments and they are great&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1122</link>
	<dc:date>2009-04-23T10:01:26-07:00</dc:date>
	<dc:subject>Amazon EC2</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1121">
	<title>JBoss - Generating a thread dump with twiddle</title>
	<description>&lt;p&gt;I had been looking for a simple way to get a thread dump from JBoss to see what was happening on each of the SpatialKey servers without actually logging onto any of them. After all reading through thread dumps is one of my favorite past times. I found a simple way to do that writes an HTML file containing the thread dump and I can access it by hitting the webserver directory at a hidden URL.&lt;/p&gt;
&lt;p&gt;The command is rather simple to generate a thread dump:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;/jboss/bin/twiddle.sh invoke &quot;jboss.system:type=ServerInfo&quot; listThreadDump &gt;  /dump.html&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I modified the /etc/crontab file to create this file every minute&lt;/p&gt;
&lt;p&gt;&lt;em&gt;*/1 * * * * root //jboss/bin/twiddle.sh invoke &quot;jboss.system:type=ServerInfo&quot; listThreadDump &gt;  /apachewebroot/subdir/dump.html 2&gt;&amp;1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;It is pretty simple but it worked for what I needed.&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1121</link>
	<dc:date>2009-04-23T08:20:49-07:00</dc:date>
	<dc:subject>Amazon EC2,Jboss,SpatialKey</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1120">
	<title>Searching through many files for a specific string in Linux</title>
	<description>&lt;p&gt;I found a helpful command today to help me search through many different file in linux. I have a bunch of log files and want to find a certain occurrence of an error.&lt;/p&gt;

&lt;p&gt;&lt;i&gt;for i in `find ./`; do grep -H &quot;string to search&quot; $i; done&lt;/i&gt;&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1120</link>
	<dc:date>2009-04-07T14:33:40-07:00</dc:date>
	<dc:subject>Amazon EC2,Other</dc:subject>
	</item>
		
  	<item rdf:about="http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1119">
	<title>Putting your Excel Data on the Map - Data Visualization and Reporting with SpatialKey</title>
	<description>&lt;p&gt;Excel is a powerfull tool for sorting and analyzing data but what if you want to look at your data from another angle. What if you want to see the geographic aspect and understand the trends both over time and geographically? Geocoding your data can be a challenging task and getting it on a map can be even more of a pain. &lt;a href=&quot;http://www.spatialkey.com&quot;&gt;SpatialKey &lt;/a&gt;takes the pain out of mapping your excel data and makes it simple to get your data into a map and build engaging reports. &lt;/p&gt;
&lt;a href=&quot;http://www.bpurcell.org/viewcontent.cfm?contentID=152&quot; title=&quot;Spreadsheet_to_report_Spatialkey.jpg by brandonpurcell, on Flickr&quot;&gt;&lt;img src=&quot;http://farm4.static.flickr.com/3549/3390824033_d7e76f20a4.jpg&quot; width=&quot;500&quot; height=&quot;268&quot; alt=&quot;Spreadsheet_to_report_Spatialkey.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
&lt;p&gt;I have &lt;a href=&quot;http://www.bpurcell.org/viewcontent.cfm?contentID=152&quot;&gt;outlined this process in an article&lt;/a&gt; explaining how to take your excel data and get it into &lt;a href=&quot;http://www.spatialkey.com/&quot;&gt;SpatialKey&lt;/a&gt;&lt;/p&gt;</description>
	<link>http://www.bpurcell.org/blog/index.cfm?mode=entry&amp;entry=1119</link>
	<dc:date>2009-03-27T21:22:42-07:00</dc:date>
	<dc:subject>SpatialKey</dc:subject>
	</item>
		</rdf:RDF> 