<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.4" -->
<rss version="0.92">
<channel>
	<title>Topher's Scribbles</title>
	<link>http://topherdotcom.com/scribble</link>
	<description>My journey through Apache, PHP, FreeBSD, and then some.</description>
	<lastBuildDate>Thu, 18 Mar 2010 23:05:10 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Finding Duplicate Records in MySQL</title>
		<description><![CDATA[So I was needed to find some duplicate records in a table that had more than 3,000 records. I stumbled upon this query which made my life easier.
SELECT `field`, COUNT(`field`)
FROM `table`
GROUP BY `field`
HAVING ( COUNT(`field`) &#62; 1 )
<script type="text/javascript">SHARETHIS.addEntry({ title: "Finding Duplicate Records in MySQL", url: "http://topherdotcom.com/scribble/apache-php-mysql/finding-duplicate-records-in-mysql/41" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/finding-duplicate-records-in-mysql/41</link>
			</item>
	<item>
		<title>vi &#8212; &#8216;already locked, session is read-only&#8217;</title>
		<description><![CDATA[I recently came across this error in Vi after I was editing a file and was disconnect: &#8220;foo.txt already locked, session is read-only.&#8221; I thought it was a swp file issue of some sort, so I immediately searched for it to remove it. Only to find out that one didn&#8217;t exist.
So I did what most [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "vi &#8212; &#8216;already locked, session is read-only&#8217;", url: "http://topherdotcom.com/scribble/freebsd/vi-already-locked-session-is-read-only/39" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/freebsd/vi-already-locked-session-is-read-only/39</link>
			</item>
	<item>
		<title>MySQL Search and Replace</title>
		<description><![CDATA[This is definitely useful&#8230;
UPDATE `&#60;table_name&#62;` SET `&#60;field_name&#62;` = replace( &#60;field_name&#62;, &#8216;&#60;string_search&#62;&#8217;, &#8216;&#60;string_replace&#62;&#8217; ) ;
Cheers!!

<script type="text/javascript">SHARETHIS.addEntry({ title: "MySQL Search and Replace", url: "http://topherdotcom.com/scribble/apache-php-mysql/mysql-search-and-replace/37" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/mysql-search-and-replace/37</link>
			</item>
	<item>
		<title>Ternary; which means this stuff ? :</title>
		<description><![CDATA[OK, I needed to write this down as I do not use this comparison on a daily basis, but use it enough where its getting annoying that I have to research it every time I use it.
So without further ado&#8230;..
(expression) ? &#8216;do this if true&#8216; : &#8216;do this if false&#8216;
Voila
<script type="text/javascript">SHARETHIS.addEntry({ title: "Ternary; which means this stuff ? :", url: "http://topherdotcom.com/scribble/apache-php-mysql/ternary-which-means-this-stuff/35" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/ternary-which-means-this-stuff/35</link>
			</item>
	<item>
		<title>OOP in PHP not the same as Java</title>
		<description><![CDATA[We all know that PHP5 has a lot more OOP features than PHP4, and we all know that it is not a real OOP language. There are a lot of things in PHP5 that won&#8217;t work like Java (obviously). With that said, I just want to point out one feature that I noticed while playing [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "OOP in PHP not the same as Java", url: "http://topherdotcom.com/scribble/apache-php-mysql/oop-in-php-not-the-same-as-java/33" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/oop-in-php-not-the-same-as-java/33</link>
			</item>
	<item>
		<title>Deny Users in a Directory and Allow Users in Subdirectory</title>
		<description><![CDATA[It took me a while to figure this out. I wanted to deny the public access to a directory, like /deny and allow the public in a subdirectory like /deny/allow.
This was done by the specific order of Allow, Deny. If you mix these up, you will either allow all or deny all. Anyway, here&#8217;s what [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Deny Users in a Directory and Allow Users in Subdirectory", url: "http://topherdotcom.com/scribble/apache-php-mysql/deny-users-in-a-directory-and-allow-users-in-subdirectory/31" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/apache-php-mysql/deny-users-in-a-directory-and-allow-users-in-subdirectory/31</link>
			</item>
	<item>
		<title>Stopping Starting Sendmail in FreeBSD</title>
		<description><![CDATA[Here&#8217;s a quick reference for Sendmail users. The commands below are to start, stop, restart, and rebuild aliases for the Sendmail Daemon.
Stopping Sendmail
# cd /etc/mail
# make stop
Starting Sendmail
# cd /etc/mail
# make start
Restarting Sendmail
# cd /etc/mail
# make restart
Rebuild Aliases
# cd /etc/mail
# make
Enable Sendmail on startup
# echo &#8217;sendmail_enable=&#8221;YES&#8221;&#8216; &#62;&#62; /etc/rc.conf
# echo &#8217;sendmail_submit_enable=&#8221;YES&#8221;&#8216; &#62;&#62; /etc/rc.conf
Disable Sendmail on startup
# [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Stopping Starting Sendmail in FreeBSD", url: "http://topherdotcom.com/scribble/freebsd/stopping-starting-sendmail-in-freebsd/30" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/freebsd/stopping-starting-sendmail-in-freebsd/30</link>
			</item>
	<item>
		<title>Bash Test Operators</title>
		<description><![CDATA[Here&#8217;s a list I have compiled that explains many Bash test operators. This is pretty much all I use. I think there&#8217;s more, but I will add to it as I discover them. I&#8217;ve been wanting to put this online so I can use as a reference and I finally did. So here it is, [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Bash Test Operators", url: "http://topherdotcom.com/scribble/bash/bash-test-operators/29" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/bash/bash-test-operators/29</link>
			</item>
	<item>
		<title>FreeBSD 6.2 + PHP5 + PHP5-extensions = php.core dumps!!</title>
		<description><![CDATA[I had just recently installed 2 new servers and both of them had PHP dumps (php.core) and issued a segmented fault, signal 11. I installed PHP5 and installed PHP5-Extensions through the ports.
My first experience with the dump, I wrote a simple code to calculate interest rates, which was totally incorrect (my code btw). My second [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "FreeBSD 6.2 + PHP5 + PHP5-extensions = php.core dumps!!", url: "http://topherdotcom.com/scribble/freebsd/freebsd-62-php5-php5-extensions-phpcore-dumps/27" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/freebsd/freebsd-62-php5-php5-extensions-phpcore-dumps/27</link>
			</item>
	<item>
		<title>Areca + FreeBSD 6.2 + &gt;2TB Installation</title>
		<description><![CDATA[I&#8217;ve been trying to set up a backup file server using FreeBSD 6.2-RELEASE amd64, Areca RAID, and using a partition that is &#62;2TB. My first install crashed the server under heavy writing. I was rsyncing 3 servers simultaneously. Checking the logs, there were some &#8220;kernel: g_vfs_done():&#8230;Error: 5&#8243; errors before the crash. I searched google and [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Areca + FreeBSD 6.2 + >2TB Installation", url: "http://topherdotcom.com/scribble/freebsd/areca-freebsd-62-2tb-installation/26" });</script>]]></description>
		<link>http://topherdotcom.com/scribble/freebsd/areca-freebsd-62-2tb-installation/26</link>
			</item>
</channel>
</rss>
