<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0" -->
<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/"
	>

<channel>
	<title>George Hubka</title>
	<link>http://www.georgehubka.com</link>
	<description>George Hubka, MSE, PMM,          CIO of the Kansas Department of Labor</description>
	<pubDate>Sat, 06 Dec 2008 02:16:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>
	<language>en</language>
			<item>
		<title>How to convert a text URL into a hyperlink</title>
		<link>http://www.georgehubka.com/2008/09/14/how-to-convert-a-text-url-into-a-hyperlink/</link>
		<comments>http://www.georgehubka.com/2008/09/14/how-to-convert-a-text-url-into-a-hyperlink/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 03:14:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>PHP</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/09/14/how-to-convert-a-text-url-into-a-hyperlink/</guid>
		<description><![CDATA[May sound easy, change the HTML&#8230;.
but there are time when you cannot directly change the HTML.  For instance if your content is database driven, and you don&#8217;t want to edit the database source.
well, a little PHP code can do the trick

$str = ereg_replace(&#34;[[:alpha:]]+://[^&#60;&#62;[:space:]]+[[:alnum:]/]&#34;,&#34;&#60;a href=\&#34;\\0\&#34;&#62;\\0&#60;/a&#62;&#34;, $str);

for example This will take a a http://www.attheboard.com and change it [...]]]></description>
			<content:encoded><![CDATA[<p>May sound easy, change the HTML&#8230;.</p>
<p>but there are time when you cannot directly change the HTML.  For instance if your content is database driven, and you don&#8217;t want to edit the database source.</p>
<p>well, a little PHP code can do the trick</p>
<p><code><br />
$str = ereg_replace(&quot;[[:alpha:]]+://[^&lt;&gt;[:space:]]+[[:alnum:]/]&quot;,&quot;&lt;a href=\&quot;\\0\&quot;&gt;\\0&lt;/a&gt;&quot;, $str);<br />
</code></p>
<p>for example This will take a a http://www.attheboard.com and change it to a fully linked  tagged link</p>
<p>found this little trick on http://www.liamdelahunty.com
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/09/14/how-to-convert-a-text-url-into-a-hyperlink/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>How to find what robots have visited my website</title>
		<link>http://www.georgehubka.com/2008/08/24/how-to-find-what-robots-have-visited-my-website/</link>
		<comments>http://www.georgehubka.com/2008/08/24/how-to-find-what-robots-have-visited-my-website/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 20:24:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>Linux</category>
	<category>SEO</category>
	<category>Apache</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/08/24/how-to-find-what-robots-have-visited-my-website/</guid>
		<description><![CDATA[Ever wonder how to find out what robots/crawlers have visited your site?  If you don&#8217;t have robust log analyzer there is another way.  If you are using apache there is a simple way from the command line to figure out how as been visiting.
grep robots.txt /etc/httpd/domlogs/bumideas.com&#124;awk -F '"' '{print $6}'&#124;sort -k 1&#124;uniq -c
What [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wonder how to find out what robots/crawlers have visited your site?  If you don&#8217;t have robust log analyzer there is another way.  If you are using apache there is a simple way from the command line to figure out how as been visiting.</p>
<p><code>grep robots.txt /etc/httpd/domlogs/bumideas.com|awk -F '"' '{print $6}'|sort -k 1|uniq -c</code></p>
<p>What is returned is a list of the robots and the number of visits reported in the log.</p>
<p>9 BlogPulseLive (support@blogpulse.com)<br />
53 ia_archiver<br />
18 ia_archiver (+http://www.alexa.com/site/help/webmasters; crawler@alexa.com)<br />
32 ia_archiver-web.archive.org<br />
4 Mediapartners-Google<br />
2 Mozilla/4.0 (compatible: FDSE robot)<br />
2 Mozilla/4.0 (compatible; MSIE enviable; DAUMOA 2.0; DAUM Web Robot; Daum Communications Corp., Korea; +http://ws.daum.net/aboutkr.html)<br />
6 Mozilla/5.0 (compatible; Ask Jeeves/Teoma; +http://about.ask.com/en/docs/about/webmasters.shtml)<br />
49 Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)<br />
94 Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)<br />
16 Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16<br />
1 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12; ips-agent) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7<br />
8 msnbot/1.1 (+http://search.msn.com/msnbot.htm)<br />
16 msnbot-media/1.0 (+http://search.msn.com/msnbot.htm)<br />
2 msnbot-media/1.1 (+http://search.msn.com/msnbot.htm)<br />
4 panscient.com<br />
3 SurveyBot/2.3 (Whois Source)
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/08/24/how-to-find-what-robots-have-visited-my-website/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>List of places to ping a blog</title>
		<link>http://www.georgehubka.com/2008/08/17/list-of-places-to-ping-a-blog/</link>
		<comments>http://www.georgehubka.com/2008/08/17/list-of-places-to-ping-a-blog/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 02:58:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>SEO</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/08/17/list-of-places-to-ping-a-blog/</guid>
		<description><![CDATA[Here is a ping list I found on www.prelovac.com that I am trying out.
http://1470.net/api/ping
http://api.my.yahoo.com/rss/ping
http://api.feedster.com/ping
http://api.moreover.com/ping
http://api.moreover.com/RPC2
http://bblog.com/ping.php
http://blogsearch.google.com/ping/RPC2
http://blog.goo.ne.jp/XMLRPC
http://blogmatcher.com/u.php
http://blogdb.jp/xmlrpc/
http://bulkfeeds.net/rpc
http://coreblog.org/ping/
http://ping.cocolog-nifty.com/xmlrpc
http://ping.blo.gs/
http://ping.weblogalot.com/rpc.php
http://ping.bitacoras.com
http://ping.feedburner.com
http://ping.fakapster.com/rpc
http://ping.weblogs.se/
http://ping.syndic8.com/xmlrpc.php
http://ping.myblog.jp
http://ping.blogmura.jp/rpc/
http://pingoat.com/goat/RPC2
http://ping.bloggers.jp/rpc/
http://pinger.blogflux.com/rpc
http://rpc.icerocket.com:10080/
http://rpc.blogrolling.com/pinger/
http://rpc.tailrank.com/feedburner/RPC2
http://rpc.pingomatic.com/
http://rpc.weblogs.com/RPC2
http://rpc.britblog.com
http://rpc.technorati.com/rpc/ping
http://rpc.wpkeys.com
http://topicexchange.com/RPC2
http://trackback.bakeinu.jp/bakeping.php
http://www.blogdigger.com/RPC2
http://www.blogpeople.net/servlet/weblogUpdates
http://www.bitacoles.net/ping.php
http://www.blogoon.net/ping/
http://xmlrpc.blogg.de
http://xping.pubsub.com/ping
we will need to see how this list performs&#8230;.

]]></description>
			<content:encoded><![CDATA[<p>Here is a ping list I found on www.prelovac.com that I am trying out.</p>
<p>http://1470.net/api/ping<br />
http://api.my.yahoo.com/rss/ping<br />
http://api.feedster.com/ping<br />
http://api.moreover.com/ping<br />
http://api.moreover.com/RPC2<br />
http://bblog.com/ping.php<br />
http://blogsearch.google.com/ping/RPC2<br />
http://blog.goo.ne.jp/XMLRPC<br />
http://blogmatcher.com/u.php<br />
http://blogdb.jp/xmlrpc/<br />
http://bulkfeeds.net/rpc<br />
http://coreblog.org/ping/<br />
http://ping.cocolog-nifty.com/xmlrpc<br />
http://ping.blo.gs/<br />
http://ping.weblogalot.com/rpc.php<br />
http://ping.bitacoras.com<br />
http://ping.feedburner.com<br />
http://ping.fakapster.com/rpc<br />
http://ping.weblogs.se/<br />
http://ping.syndic8.com/xmlrpc.php<br />
http://ping.myblog.jp<br />
http://ping.blogmura.jp/rpc/<br />
http://pingoat.com/goat/RPC2<br />
http://ping.bloggers.jp/rpc/<br />
http://pinger.blogflux.com/rpc<br />
http://rpc.icerocket.com:10080/<br />
http://rpc.blogrolling.com/pinger/<br />
http://rpc.tailrank.com/feedburner/RPC2<br />
http://rpc.pingomatic.com/<br />
http://rpc.weblogs.com/RPC2<br />
http://rpc.britblog.com<br />
http://rpc.technorati.com/rpc/ping<br />
http://rpc.wpkeys.com<br />
http://topicexchange.com/RPC2<br />
http://trackback.bakeinu.jp/bakeping.php<br />
http://www.blogdigger.com/RPC2<br />
http://www.blogpeople.net/servlet/weblogUpdates<br />
http://www.bitacoles.net/ping.php<br />
http://www.blogoon.net/ping/<br />
http://xmlrpc.blogg.de<br />
http://xping.pubsub.com/ping<br />
we will need to see how this list performs&#8230;.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/08/17/list-of-places-to-ping-a-blog/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>How to bulk replace strings in a file on linux</title>
		<link>http://www.georgehubka.com/2008/08/16/how-to-bulk-replace-strings-in-a-file-on-linux/</link>
		<comments>http://www.georgehubka.com/2008/08/16/how-to-bulk-replace-strings-in-a-file-on-linux/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 16:07:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>PHP</category>
	<category>Linux</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/08/16/how-to-bulk-replace-strings-in-a-file-on-linux/</guid>
		<description><![CDATA[Ever find that you need to do a bulk/mass replacement of strings in a file on a linux server?  I ran into a situation where I needed to change a website from using persistent connections to mysql to normal.  This involved changing mysql_pconnect to mysql_connect.  Using grep, There were about 5 files to change.
Of course [...]]]></description>
			<content:encoded><![CDATA[<p>Ever find that you need to do a bulk/mass replacement of strings in a file on a linux server?  I ran into a situation where I needed to change a website from using persistent connections to mysql to normal.  This involved changing mysql_pconnect to mysql_connect.  Using grep, There were about 5 files to change.</p>
<p>Of course this would not take to long just using emacs, but I wanted a quicker method.</p>
<p>The shell &#8220;replace&#8221; utility comes in handy.</p>
<p><strong><span class="highlight">replace</span></strong> <em>from to</em> <strong>[</strong><em>from to</em><strong>] &#8230; &#8211;</strong> <em>file</em> <strong>[</strong><em>file</em><strong>] &#8230;</strong></p>
<p>In my case it was a simple</p>
<p>replace pconnect connect &#8212; *.php</p>
<p>in the appropriate directory.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/08/16/how-to-bulk-replace-strings-in-a-file-on-linux/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>How to ping a sitemap</title>
		<link>http://www.georgehubka.com/2008/08/11/how-to-ping-a-sitemap/</link>
		<comments>http://www.georgehubka.com/2008/08/11/how-to-ping-a-sitemap/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 03:17:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>SEO</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/08/11/how-to-ping-a-sitemap/</guid>
		<description><![CDATA[You may have heard of pinging a blog, but did you know that you can ping a sitemap? Ping it to let the services know that you have some new web pages.
Ask.com:
http://submissions.ask.com/ping?sitemap=http://www.yourdomain.com/sitemap.xml

Google:
http://www.google.com/webmasters/sitemaps/ping?sitemap=http://www.yourdomain.com/sitemap.xml

Yahoo:
http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=YahooDemo&#038;url=http://www.yourdomain.com/sitemap.xml
Hopefully I can find a couple more.

]]></description>
			<content:encoded><![CDATA[<p>You may have heard of pinging a blog, but did you know that you can ping a sitemap? Ping it to let the services know that you have some new web pages.<br />
<strong>Ask.com:</strong></p>
<p>http://submissions.ask.com/ping?sitemap=http://www.yourdomain.com/sitemap.xml<br />
<strong /></p>
<p><strong>Google:</strong></p>
<p>http://www.google.com/webmasters/sitemaps/ping?sitemap=http://www.yourdomain.com/sitemap.xml<br />
<strong /></p>
<p><strong>Yahoo:</strong></p>
<p>http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=YahooDemo&#038;url=http://www.yourdomain.com/sitemap.xml</p>
<p>Hopefully I can find a couple more.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/08/11/how-to-ping-a-sitemap/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>blacklist for phpbb forums to help stop spam</title>
		<link>http://www.georgehubka.com/2008/08/04/blacklist-for-phpbb-forums-to-help-stop-spam/</link>
		<comments>http://www.georgehubka.com/2008/08/04/blacklist-for-phpbb-forums-to-help-stop-spam/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 01:23:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>PhpBB</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/08/04/blacklist-for-phpbb-forums-to-help-stop-spam/</guid>
		<description><![CDATA[Looking for a good way to help prevent forum spam on your phpbb forum?  There is a phpbb hack that will check against the major spam lists such as spamcop and spamhaus.
 
http://www.phpbbhacks.com/download/4878
 
I just installed this one today on a site of mine, we shall see if it works.

]]></description>
			<content:encoded><![CDATA[<p>Looking for a good way to help prevent forum spam on your phpbb forum?  There is a phpbb hack that will check against the major spam lists such as spamcop and spamhaus.</p>
<p> </p>
<p><a href="http://www.phpbbhacks.com/download/4878">http://www.phpbbhacks.com/download/4878</a></p>
<p> </p>
<p>I just installed this one today on a site of mine, we shall see if it works.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/08/04/blacklist-for-phpbb-forums-to-help-stop-spam/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Changing the default file via htaccess</title>
		<link>http://www.georgehubka.com/2008/07/19/changing-the-default-file-via-htaccess/</link>
		<comments>http://www.georgehubka.com/2008/07/19/changing-the-default-file-via-htaccess/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 04:39:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>Apache</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/07/19/changing-the-default-file-via-htaccess/</guid>
		<description><![CDATA[htaccess has a ton of special operations available in it.  One useful is to override the default file that is served up by the server for a directory. A web server typcally has index.html, index.htm, or something similar as the default
Simply locate your .htaccess file and open it for editing with your favorite editor and [...]]]></description>
			<content:encoded><![CDATA[<p>htaccess has a ton of special operations available in it.  One useful is to override the default file that is served up by the server for a directory. A web server typcally has index.html, index.htm, or something similar as the default<br />
Simply locate your .htaccess file and open it for editing with your favorite editor and add a line where x.html is replaced with the file you want as the default file.</p>
<p>DirectoryIndex x.html</p>
<p>Save and reload the page&#8230;.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/07/19/changing-the-default-file-via-htaccess/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Error with file_get_contents(), is there a work around?</title>
		<link>http://www.georgehubka.com/2008/07/15/error-with-file_get_contents-is-there-a-work-around/</link>
		<comments>http://www.georgehubka.com/2008/07/15/error-with-file_get_contents-is-there-a-work-around/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 01:08:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>PHP</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/07/15/error-with-file_get_contents-is-there-a-work-around/</guid>
		<description><![CDATA[Alternative for  file_get_contents()
I was trying to use file_get_contents to work the other day and was getting an error message.  Turns out the function was disabled in the php config.  There is a way around this which I found on wiki.dreamhost.com.  see below for an example.
Instead of:
< ?php
$file_contents = file_get_contents('http://example.com/');

// display file
echo [...]]]></description>
			<content:encoded><![CDATA[<p><span class="mw-headline">Alternative for  <code>file_get_contents()</code></span></p>
<p>I was trying to use file_get_contents to work the other day and was getting an error message.  Turns out the function was disabled in the php config.  There is a way around this which I found on wiki.dreamhost.com.  see below for an example.</p>
<p>Instead of:</p>
<pre>< ?php
$file_contents = file_get_contents('http://example.com/');

// display file
echo $file_contents;
?></pre>
<p>Use this:</p>
<pre>< ?php
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, 'http://example.com');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);

// display file
echo $file_contents;
?></pre>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/07/15/error-with-file_get_contents-is-there-a-work-around/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Stopbadware - check your site for issues</title>
		<link>http://www.georgehubka.com/2008/07/10/stopbadware-check-your-site-for-issues/</link>
		<comments>http://www.georgehubka.com/2008/07/10/stopbadware-check-your-site-for-issues/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 02:32:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>SEO</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/07/10/stopbadware-check-your-site-for-issues/</guid>
		<description><![CDATA[Interesting site that works in coordination with google to protect your computer from badware.  You can check if your site is listed via this URL
http://www.stopbadware.org/home/reportsearch
Being listed can cause your site to diverted to a warning page by google and you could be losing traffic as a result.  They even include a brief history of when [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting site that works in coordination with google to protect your computer from badware.  You can check if your site is listed via this URL</p>
<p><a href="http://www.stopbadware.org/home/reportsearch">http://www.stopbadware.org/home/reportsearch</a></p>
<p>Being listed can cause your site to diverted to a warning page by google and you could be losing traffic as a result.  They even include a brief history of when things were detected and the type of threat that was detected.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/07/10/stopbadware-check-your-site-for-issues/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>How to optimize a table or database in mysql</title>
		<link>http://www.georgehubka.com/2008/07/08/how-to-optimize-a-table-or-database-in-mysql/</link>
		<comments>http://www.georgehubka.com/2008/07/08/how-to-optimize-a-table-or-database-in-mysql/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 03:42:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<category>MYSQL</category>
		<guid isPermaLink="false">http://www.georgehubka.com/2008/07/08/how-to-optimize-a-table-or-database-in-mysql/</guid>
		<description><![CDATA[If you are finding a lot of Long Running Queries and think you have built all the indexes you need.  You might want to try to optimize the database files.  As tables have inserts, the files can become less than optimized.
From the mysql manual&#8230;
shell> mysqlcheck [options] db_name [tables]
shell> mysqlcheck [options] &#8211;databases db_name1 [db_name2 db_name3&#8230;]
shell> mysqlcheck [...]]]></description>
			<content:encoded><![CDATA[<p>If you are finding a lot of Long Running Queries and think you have built all the indexes you need.  You might want to try to optimize the database files.  As tables have inserts, the files can become less than optimized.<br />
From the mysql manual&#8230;<br />
<em>shell> mysqlcheck [options] db_name [tables]</em></p>
<p><em>shell> mysqlcheck [options] &#8211;databases db_name1 [db_name2 db_name3&#8230;]</em></p>
<p><em>shell> mysqlcheck [options] &#8211;all-databases<br />
</em></p>
<p>If you do not name any tables following db_name or if you use the &#8211;databases or &#8211;all-databases option, entire databases are checked.</p>
<p>mysqlcheck has a special feature compared to other client programs. The default behavior of checking tables (&#8211;check) can be changed by renaming the binary. If you want to have a tool that repairs tables by default, you should just make a copy of mysqlcheck named mysqlrepair, or make a symbolic link to mysqlcheck named mysqlrepair. If you invoke mysqlrepair, it repairs tables.</p>
<p>The following names can be used to change mysqlcheck default behavior:</p>
<p><em>mysqlrepair The default option is &#8211;repair<br />
mysqlanalyze The default option is &#8211;analyze<br />
mysqloptimize The default option is &#8211;optimize</em>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.georgehubka.com/2008/07/08/how-to-optimize-a-table-or-database-in-mysql/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
