<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>GraysUnderground.com</title>
	<link>http://www.graysunderground.com</link>
	<description>Gray's Tech Blog</description>
	<lastBuildDate>Thu, 20 May 2010 17:31:11 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Postgres: FATAL:  sorry, too many clients already</title>
		<description><![CDATA[Ok so I have a postgres database at work that we use to store application information and this database is shared across some large web applications. We recently started getting the above error in the postgres logs, and occasional failures in the web apps. Let me state for the record I am not a postgres [...]]]></description>
		<link>http://www.graysunderground.com/2010/05/20/postgres-fatal-sorry-too-many-clients-already/</link>
			</item>
	<item>
		<title>Run command as apache in centos</title>
		<description><![CDATA[Here is how you run a command as apache in centos without giving apache a valid shell.
su -s /bin/sh apache -c &#8220;whoami&#8221;
]]></description>
		<link>http://www.graysunderground.com/2010/05/06/run-command-as-apache-in-centos/</link>
			</item>
	<item>
		<title>Validate an email address using regular expressions</title>
		<description><![CDATA[If you want a PHP script to validate an email address here is a quick and simple PHP regular expression to do it. This script is also case-insensitive, so it will treat all characters as lower case. This script is a simple and  easy way to check the syntax and format of an email address.
The [...]]]></description>
		<link>http://www.graysunderground.com/2009/04/15/validate-an-email-address-using-regular-expressions/</link>
			</item>
	<item>
		<title>How to disable FireFox caching</title>
		<description><![CDATA[Web browser caching is good. But even now in the days of 20+Mb broadband, caching web requests still speeds browsing up. It’s also saves money in bandwidth costs.
At home, and work, I set up a caching proxy server with pfSense and Squid, rendering my browser cache effectively useless. Here’s how to disable FireFox’s browser cache [...]]]></description>
		<link>http://www.graysunderground.com/2009/03/18/how-to-disable-firefox-caching/</link>
			</item>
	<item>
		<title>Linux &#8211; CentOS &#8211; Mail &#8212; Delete alll mail in centos using mail</title>
		<description><![CDATA[Just run the following command from the command line:
echo 'd *' &#124; mail -N
]]></description>
		<link>http://www.graysunderground.com/2008/11/04/linux-centos-mail-delete-alll-mail-in-centos-using-mail/</link>
			</item>
	<item>
		<title>Perl Snippet to tell you how many files in a directory.</title>
		<description><![CDATA[Great little perl snippet to let you know the number of files and directories in the current directory. Run from the command line.
ls -l &#124;perl -e 'while(&#60;&#62;){$h{substr($_,0,1)}+=1;} END {foreach(keys %h){print "$_ $h{$_}\n";}}'
]]></description>
		<link>http://www.graysunderground.com/2008/10/04/perl-snippet-to-tell-you-how-many-files-in-a-directory/</link>
			</item>
	<item>
		<title>Just some code I don&#8217;t want to forget</title>
		<description><![CDATA[
&#60;form method="post" action="blah.php" onSubmit="return confirm('Are you sure this is correct?');"&#62;
]]></description>
		<link>http://www.graysunderground.com/2008/09/09/just-some-code-i-dont-want-to-forget/</link>
			</item>
	<item>
		<title>PHP Frameworks</title>
		<description><![CDATA[Been thinking of using a PHP framework found a very interesting slideshow on the Zend Framework. Any opinions?

 &#124; View &#124; Upload your own


]]></description>
		<link>http://www.graysunderground.com/2008/05/24/php-frameworks/</link>
			</item>
	<item>
		<title>Top 10 Scalability Mistakes with PHP</title>
		<description><![CDATA[Found a great slide that talks about the top 10 mistakes when programming scalable applications with PHP. Discusses everything from hardware to AJAX. The AJAX piece I found to be very interesting. Check it out and give me your thoughts.

 &#124; View &#124; Upload your own

]]></description>
		<link>http://www.graysunderground.com/2008/05/23/top-10-scalability-mistakes-with-php/</link>
			</item>
	<item>
		<title>Quick and easy PHP function to Validate email strings.</title>
		<description><![CDATA[Quick and easy way to validate email strings. I picked this bit of code up from somewhere, not sure where&#8230;.Think it was the Zend site. Credit goes to the original unknown author, not me.
&#60;?php
 function is_email($address) {
 $rc1 = (ereg('^[-!#$%&#38;'*+./0-9=?A-Z^_`a-z{&#124;}~]+'.
'@'.
'[-!#$%&#38;'*+\/0-9=?A-Z^_`a-z{&#124;}~]+.'.
'[-!#$%&#38;'*+\./0-9=?A-Z^_`a-z{&#124;}~]+$',
 $address));
 $rc2 = (preg_match('/.+.ww+$/',$address));
return ($rc1 &#38;&#38; $rc2);
}
 ?&#62;
]]></description>
		<link>http://www.graysunderground.com/2008/04/25/quick-and-easy-php-function-to-validate-email-strings/</link>
			</item>
</channel>
</rss>
