<?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"
	>

<channel>
	<title>Technical Tips and Tricks</title>
	<atom:link href="http://www.aaviso.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aaviso.com</link>
	<description>Random technical things I run across every day, from Windows to Linux to *BSD</description>
	<pubDate>Mon, 14 Apr 2008 03:14:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>PGP Desktop for Mac</title>
		<link>http://www.aaviso.com/archives/27</link>
		<comments>http://www.aaviso.com/archives/27#comments</comments>
		<pubDate>Mon, 14 Apr 2008 03:08:58 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[PGP]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[GnuPG]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/?p=27</guid>
		<description><![CDATA[Is pretty much broken.
&#160;&#160;&#160;If you are trying to use PGP&#8217;s mail feature with Entourage and Exchange it doesn&#8217;t work.  You can encrypt mail and send it but you cannot un-encrypt the mail in-line.  I have found a work around which is to highlight the encrypted string and paste it into a text box [...]]]></description>
			<content:encoded><![CDATA[<p>Is pretty much broken.<br />
&nbsp;&nbsp;&nbsp;If you are trying to use PGP&#8217;s mail feature with Entourage and Exchange it doesn&#8217;t work.  You can encrypt mail and send it but you cannot un-encrypt the mail in-line.  I have found a work around which is to highlight the encrypted string and paste it into a text box then un-encrypt that&#8230;pretty hokey but it works.  Additionally if you get a PGP encrypted attachment when you double click on it, the attachment gets saved in the clear under your user folder/Documents/Microsoft User Data/Saved Attachments.  This has got to be one of the worst features I have seen from a security standpoint.  I mean yeah so I have an encrypted attachment so what I was thinking is that you move it to another folder and saved it in the clear&#8230;.not.<br />
 &nbsp;&nbsp;&nbsp; We also purchased the WDE (whole disk encryption) feature and umm it doesn&#8217;t work either.  WDE does not even see the Mac disk.  There are quite a few articles on the web that say PGP is working on WDE for the Mac&#8230;.too bad that isn&#8217;t what the salesperson told us when we were buying it.<br />
  &nbsp;&nbsp;&nbsp;In closing we have done quite a bit of work recently while trying to get PGP to work and frankly if you want some of the features described above (sans WDE), <a href="http://www.gnupg.org/">GnuPG</a> works a lot better and is free as in beer.</p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-8265545186219742";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="3547236525";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "7DA721";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
<p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/27/feed</wfw:commentRss>
		</item>
		<item>
		<title>It has been a while.</title>
		<link>http://www.aaviso.com/archives/26</link>
		<comments>http://www.aaviso.com/archives/26#comments</comments>
		<pubDate>Mon, 31 Dec 2007 01:22:08 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<category><![CDATA[Snort]]></category>

		<category><![CDATA[performance monitor]]></category>

		<category><![CDATA[snort.stats]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/archives/26</guid>
		<description><![CDATA[  I have completely switched focus in the last year from primarily development to security.  That being said I have been struggling with getting snort to run on a gigabit ethernet tap.  I compiled pf ring into a redhat kernel on a quad core 64 bit Opteron platform.  While the platform [...]]]></description>
			<content:encoded><![CDATA[<p>  I have completely switched focus in the last year from primarily development to security.  That being said I have been struggling with getting snort to run on a gigabit ethernet tap.  I compiled pf ring into a redhat kernel on a quad core 64 bit Opteron platform.  While the platform and the network interface can keep up snort is really struggling to keep up.<br />
  In an effort to find out what snort is doing I enabled the performance monitor but had a darned struggle figuring out exactly what was being logged in Snort 2.8.1.  The fields are defined in perf-base.c in the snort code but I have taken the liberty of copying and pasting them here to possibly save someone some time.<br />
  I will post later on the steps to get pf ring runnign on a 64 bit platform.</p>
<p> * unixtime(in secs since epoch)<br />
 * %pkts dropped<br />
 * mbits/sec (wire)<br />
 * alerts/sec<br />
 * K-Packets/Sec (wire)<br />
 * Avg Bytes/Pkt  (wire)<br />
 * %bytes pattern matched<br />
 * syns/sec<br />
 * synacks/sec<br />
 * new-sessions/sec (tcp stream cache)<br />
 * del-sessions/sec (tcp stream cache)<br />
 * total-sessions open (tcp stream cache)<br />
 * max-sessions, lifetime (tcp stream cache)<br />
 * streamflushes/sec<br />
 * streamfaults/sec<br />
 * streamtimeouts<br />
 * fragcreates/sec<br />
 * fragcompletes/sec<br />
 * fraginserts/sec<br />
 * fragdeletes/sec<br />
 * fragflushes/sec<br />
 * current-frags open (frag cache)<br />
 * max-frags (frag cache)<br />
 * fragtimeouts<br />
 * fragfaults<br />
 * num cpus (following triple is repeated for each CPU)<br />
 * %user-cpu usage<br />
 * %sys-cpu usage<br />
 * %idle-cpu usage<br />
 * mbits/sec (wire)<br />
 * mbits/sec (ip fragmented)<br />
 * mbits/sec (ip reassembled)<br />
 * mbits/sec (tcp stream rebuilt)<br />
 * mbits/sec (app layer)<br />
 * Avg Bytes/Pkt  (wire)<br />
 * Avg Bytes/Pkt  (ip fragmented)<br />
 * Avg Bytes/Pkt  (ip reassembled)<br />
 * Avg Bytes/Pkt  (tcp stream rebuilt)<br />
 * Avg Bytes/Pkt  (app layer)<br />
 * K-Packets/Sec (wire)<br />
 * K-Packets/Sec (ip fragmented)<br />
 * K-Packets/Sec (ip reassembled)<br />
 * K-Packets/Sec (tcp stream rebuilt)<br />
 * K-Packets/Sec (app layer)<br />
 * Pkts recieved<br />
 * Pkts dropped<br />
 * Blocked-KPackets  (wire)<br />
 * udp-sessions<br />
 * max-udp-sessions<br />
 * del-udp-sessions/sec (udp stream cache)<br />
 * new-udp-sessions/sec (udp stream cache)<br />
 * max-sessions, interval (tcp stream cache)<br />
 * curr-tcp-sessions-initializing (tcp stream cache, of total-sessions open)<br />
 * curr-tcp-sessions-established (tcp stream cache, of total-sessions open)<br />
 * curr-tcp-sessions-closing (tcp stream cache, of total-sessions open)<br />
 * tcp-sessions-mistream/sec (tcp stream cache, of new-sessions/sec)<br />
 * tcp-sessions-closed/sec (tcp stream cache, of del-sessions/sec)<br />
 * tcp-sessions-timedout/sec (tcp stream cache, of del-sessions/sec)<br />
 * tcp-sessions-pruned/sec (tcp stream cache, of del-sessions/sec)<br />
 * tcp-sessions-dropped_async/sec (tcp stream cache, of del-sessions/sec)<br />
 * hosts in attribute table<br />
 * attribute table reloads</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/26/feed</wfw:commentRss>
		</item>
		<item>
		<title>Kubuntu Server, Nagios and Mysql</title>
		<link>http://www.aaviso.com/archives/24</link>
		<comments>http://www.aaviso.com/archives/24#comments</comments>
		<pubDate>Sun, 10 Jun 2007 18:28:48 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Mysql]]></category>

		<category><![CDATA[Nagios]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/blog/?p=24</guid>
		<description><![CDATA[In an effort to get nagios to monitor an Mysql database on a remote server I decided to try and get the command working.  First off to get the Nagios plugins to work for mysql you have to install the mysql client libraries.  In order to get the client libraries to install correctly [...]]]></description>
			<content:encoded><![CDATA[<p>In an effort to get nagios to monitor an Mysql database on a remote server I decided to try and get the command working.  First off to get the Nagios plugins to work for mysql you have to install the mysql client libraries.  In order to get the client libraries to install correctly you have to install XML::Parser &#8230; and of course to get XML::Parser to install from CPAN you have to install the Expat library manually.  Step by stpe here is what it took.</p>
<p>Install Expat from <a href="http://sourceforge.net/projects/expat/">here</a><br />
Install the XML::Parser from CPAN like soo &#8220;cpan install XML::Parser&#8221;<br />
Install the libmysqlclient-dev from apt &#8220;apt-get install libysqlclient-dev&#8221;<br />
Install DBD::mysql from CPAN &#8220;cpan install DBD::mysql&#8221;</p>
<p>Then you have to modify the nagios commands.cfg by adding</p>
<p><code>define command{<br />
     command_name     check_mysql<br />
     command_line        $USER1$/check_mysql -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$<br />
}</code></p>
<p>And modify the localhost.cfg with the service check info</p>
<p><code>define service{<br />
     use                               local-service<br />
     host_name                   blah<br />
     check_command          check_mysql!USERNAME!PASSWORD<br />
     service_description     MYSQL<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/24/feed</wfw:commentRss>
		</item>
		<item>
		<title>Comment Spammers</title>
		<link>http://www.aaviso.com/archives/23</link>
		<comments>http://www.aaviso.com/archives/23#comments</comments>
		<pubDate>Mon, 28 May 2007 00:46:48 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/blog/?p=23</guid>
		<description><![CDATA[Just a quick note to you stupid comment spammers (which I know your bot will never read).  Wordpress has for quite some time added a no-follow tag to comment links by default.  That being the case your worthless comment posts with all your link code do not and will not provide any benefit [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to you stupid comment spammers (which I know your bot will never read).  Wordpress has for quite some time added a no-follow tag to comment links by default.  That being the case your worthless comment posts with all your link code do not and will not provide any benefit to anyone so stop it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/23/feed</wfw:commentRss>
		</item>
		<item>
		<title>Kubuntu server and Vmware</title>
		<link>http://www.aaviso.com/archives/21</link>
		<comments>http://www.aaviso.com/archives/21#comments</comments>
		<pubDate>Sun, 27 May 2007 14:53:57 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/blog/?p=21</guid>
		<description><![CDATA[&#160;&#160;&#160;I recently install Kubuntu server on my desktop so that I could run Nagios to monitor my colo machines &#8230; more about that later.  Of course as ultimately happens every time I make a change I ran into issues.  This time with VMWare.  The problem was that vmware would not compile.  [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;I recently install <a href="http://www.kubuntu.org/">Kubuntu</a> server on my desktop so that I could run <a href="http://nagios.org">Nagios</a> to monitor my colo machines &#8230; more about that later.  Of course as ultimately happens every time I make a change I ran into issues.  This time with <a href="http://www.vmware.com">VMWare</a>.  The problem was that vmware would not compile.  First off the server headers are not installed &#8230; 2 questions, what the heck are you going to do on a server without the headers and secondly why are the base headers along with the generic headers installed but not the server headers???</p>
<p>&nbsp;&nbsp;&nbsp;Once you get the headers installed and of course you have downloaded vmware the you have to install all the packages vmware requires.</p>
<p>sudo apt-get install linux-headers-`uname -r` build-essential xinetd</p>
<p>Then try</p>
<p>sudo ./vmware-install.pl</p>
<p>which will fail with a vmmon error along the lines of &#8220;make: *** [vmmon.ko] Error 2<br />
make: Leaving directory `/tmp/vmware-config4/vmmon-only&#8217; Unable to build the vmmon module.&#8221;</p>
<p>To fix this download the <a href="http://platan.vc.cvut.cz/ftp/pub/">VMWare any any update from here</a> and run the runme.pl.  When it asks if you want to run configure type yes.  This will over come the vmmon error and you will be all set.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/21/feed</wfw:commentRss>
		</item>
		<item>
		<title>Feisty Fawn and VPNC</title>
		<link>http://www.aaviso.com/archives/20</link>
		<comments>http://www.aaviso.com/archives/20#comments</comments>
		<pubDate>Tue, 15 May 2007 21:23:19 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/blog/?p=20</guid>
		<description><![CDATA[It is things like this that really make me wonder if linux can ever make it as a desktop replacement.  The current version of Ubuntu was released with a known bug in vpnc 0.4.0.  It appears that when using vpnc to connect to a Cisco easy vpn solution the dead peer detection drops [...]]]></description>
			<content:encoded><![CDATA[<p>It is things like this that really make me wonder if linux can ever make it as a desktop replacement.  The current version of Ubuntu was released with a known bug in vpnc 0.4.0.  It appears that when using vpnc to connect to a Cisco easy vpn solution the dead peer detection drops the vpn tunnel after less than 1 minute.  Now I was using vpnc on Edgy for months and never had an issue, after I upgraded to Fawn a few weeks ago I never could get the vpn to stay up long enough to accomplish anything.  I thought for some time that the PIX I was connecting to was having some issues because at times in the past vpnc 0.3.3 would eventually cause the pix to hang and I would have to have it rebooted.  Come to find out the current version of vpnc shipped with Fawn had a known flaw, yet it was released in the distribution anyway.  Nice going.</p>
<p>The bigger issue is how to fix it.  There are some instructions <a href="https://bugs.launchpad.net/ubuntu/+source/vpnc/+bug/93413/comments/26">here</a> about downloading the vpnc source and making a change.  However, you have to enable &#8220;universe&#8221; in /etc/apt/sources.list in order to get the source.  Then of course there was some problem trying to update the rules in binary and I kept getting this error &#8220;make: dh_testdir: Command not found&#8221; which I never was able to overcome.  Then for awhile I tried to dpatch the source as it appears there is a patch included in the source, which of course there are no friggin instructions on how to do it.  In the end I removed vpnc 0.4.0 and reinstall vpnc 0.3.3 using <a href="http://packages.debian.org/stable/net/vpnc">this</a> package, with the caveat that I need to watch my updates and make sure 0.3.3 doesn&#8217;t get overwritten until it is fixed.</p>
<p>What a cluster.  I consider myself reasonably well versed in some of this stuff, I cannot imagine a regular user trying to overcome the hurdles that are put out there even with the most user friendly distributions.  </p>
<p>&nbsp;</p>
<p><center><script type="text/javascript"><!--
google_ad_client = "pub-8265545186219742";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="3547236525";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "7DA721";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/20/feed</wfw:commentRss>
		</item>
		<item>
		<title>Modifying GPSMAP</title>
		<link>http://www.aaviso.com/archives/19</link>
		<comments>http://www.aaviso.com/archives/19#comments</comments>
		<pubDate>Sun, 22 Apr 2007 20:51:44 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/blog/?p=19</guid>
		<description><![CDATA[GPSMAP comes as a part of kismet which I started using before I went to the SANS Wireless training in Orlando but have been using much more since.  I specifically needed the functionality of gpsmap to create a scatter-plot of geo coded web addresses for houses that are in foreclosure in our area.  [...]]]></description>
			<content:encoded><![CDATA[<p>GPSMAP comes as a part of <a href="http://www.kismetwireless.net/">kismet</a> which I started using before I went to the SANS Wireless training in Orlando but have been using much more since.  I specifically needed the functionality of gpsmap to create a scatter-plot of geo coded web addresses for houses that are in foreclosure in our area.  The first scatter-plot can be found at <a href="http://www.1228home.com/info/foreclosure.php">Tampa Real Estate</a> which I created using the base gpsmap and labeling the points as open when I created the xml file.  What I need to do next is to create a new color coding function for the map points so I can separate the points on the scatter-plot by month.  Thank goodness for open-source software.  I will post the changes I make along with a sample when I am done. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/19/feed</wfw:commentRss>
		</item>
		<item>
		<title>Major Update to Real Estate Page</title>
		<link>http://www.aaviso.com/archives/18</link>
		<comments>http://www.aaviso.com/archives/18#comments</comments>
		<pubDate>Sat, 16 Sep 2006 14:53:26 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/blog/?p=18</guid>
		<description><![CDATA[&#160;&#160;&#160;  Have you ever taken on a task and when you got deep into it asked yourself &#8220;what was I thinking?&#8221;  I recently took on the task of updating the Tampa Real Estate website and ran into that question.  It started out as a server upgrade&#8230;.we purchased a new web server from [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;  Have you ever taken on a task and when you got deep into it asked yourself &#8220;what was I thinking?&#8221;  I recently took on the task of updating the <a href="http://www.1228home.com">Tampa Real Estate</a> website and ran into that question.  It started out as a server upgrade&#8230;.we purchased a new web server from Dell for the site with the idea of moving some of the other sites we manage to the old server.  Then the thought was, hey we shoud do a layout, css, and color upgrade while we are at it&#8230;.slowly it built&#8230;.then we decided we should validate the css and html through the <a href="http://w3c.org">w3c</a> site for at least the major design elements since there are something like 60,000 pages total on the site.  Wow, I had no idea just how bad my code was 2 years ago&#8230;.suffice it to say that I have learned a ton in the last 2 years about developing, particularly with php.<br />
 &nbsp;&nbsp;&nbsp; So we go through that whole process&#8230;.fix validate&#8230;fix validate..etc.  Once we get all that done we bring the site live and notice that our error log is 66 <b>meg</b> in just a day&#8230;.ouch.  The process begins anew., the errors are primarily in using literals in php&#8230;&#8230;so we go through the headache of fixing most of those errors.  BTW I research everything, and for those people who advocate turning off notify in your php.ini instead of tracking down the errors and correcting them&#8230;..I say bleh to you.<br />
&nbsp;&nbsp;&nbsp;I am happy to say that after 2 solid weeks of work I am about 50% finished fixing all of the ugliness I created.  I read recently that some google developer said that no matter how good their algorithm gets they cannot account for people&#8217;s incompetence when developing sites&#8230;&#8230;now I know what he meant.<br />
 &nbsp;&nbsp;&nbsp; Good luck and hopefully better coding.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/18/feed</wfw:commentRss>
		</item>
		<item>
		<title>Real Estate online lead generation - Google</title>
		<link>http://www.aaviso.com/archives/17</link>
		<comments>http://www.aaviso.com/archives/17#comments</comments>
		<pubDate>Tue, 29 Aug 2006 13:44:56 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[Google]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/blog/?p=17</guid>
		<description><![CDATA[  This might be slightly off topic for this website, but it most certainly pertains to web site design and Google so here goes.  The money that funds this site and all of the hardware and software that support it come primarily from real estate.  It is a one hand washes the [...]]]></description>
			<content:encoded><![CDATA[<p>  This might be slightly off topic for this website, but it most certainly pertains to web site design and Google so here goes.  The money that funds this site and all of the hardware and software that support it come primarily from real estate.  It is a one hand washes the other scenario, I develop a website that generates leads for the real estate business and the real estate business pays hosting fees and buy servers for me to play with so that I can build better websites to generate more leads&#8230;.and so on.  I have recently been doing some analysis of where leads come from, how they are generated, whether or not they are organic, etc with the help of <a href="http://www.google.com/analytics/" target="_blank">Google Analytics</a> and of course analyzing the physical data&#8230;ie sales.  What I have determined is that despite the best marketing efforts of sites like homegain and lending tree and all the spammers that solicit my web business daily, sales generated strictly from online leads have an ROI that is no better and evidence suggests possibly worse than traditional marketing efforts. </p>
<p>  Just to give you an idea of what I am talking about let me give you some information to support my assertion.  My data suggests that pure online lead generation accounts for approximately 25% of sales, note that we are on the first page for our primary keyword &#8220;(city) real estate&#8221; for a google search and we also rank very well for a plethora of other keyword phrases&#8230;so I am talking about a well developed site with good optimization and good backlinks.  To get that 25% of sales we spend 40% of our total marketing budget on things like hardware, software, hosting and on occasion outside development (which by the way is very expensive and only worthwhile for targeted projects).  This 40% does not account for <b>any</b> outlay for inside development work, if inside development was factored the ROI would be considerably lower.</p>
<p>  Traditional marketing efforts including post cards, magazines, newsletters etc account for approximately 35% of total sales for the company.  These efforts may also factor in to online efforts from the standpoint that a postcard may drive traffic to the website that may eventually turn into a sale.  These types of sales are very difficult to track back to post cards and we are working on ways to more closely track this data including using tracking numbers on post cards so that when the user visits the website they can be associated with the postcard instead of being labeled a &#8220;direct visit&#8221;, once again Google Anayltics will help tremendously with this effort.  The 35% of sales generated by traditional marketing accounts for another 40% of our marketing budget.</p>
<p>  The other 20% of our marketing budget accounts for 40% of sales&#8230;you might be wondering what this could possibly be.  Marketing to past clients.  It&#8217;s pretty simple, marketing to past clients is fairly cheap but generates a significant portion of sales, we simply send them cards and magazines bi-monthly and their additional sales and referrals help the bottom line by 40%.</p>
<p>  The bottom line&#8230;.despite what lead generation websites and email spam tell you, having a balanced marketing plan is the best way to spend your dollars.  Also, unless you are going to go all out and spend $12,000/year or more on a website, do not bother with these guys that are going to &#8220;get you leads&#8221; for $49 dollars to start and $50/month.  Your website will be invisible to anyone not looking for you specifically, what I mean is it will not be found in a search for anything meaningful.  If you just want to have a web presence find a real estate template and throw something up on a $9.95/month hosting plan and walk away.  Thanks for tuning in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/17/feed</wfw:commentRss>
		</item>
		<item>
		<title>Google Maps&#8230;.Global Ajax Radio Buttons</title>
		<link>http://www.aaviso.com/archives/16</link>
		<comments>http://www.aaviso.com/archives/16#comments</comments>
		<pubDate>Sat, 26 Aug 2006 02:31:15 +0000</pubDate>
		<dc:creator>klard</dc:creator>
		
		<category><![CDATA[Google Maps Mashup]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.aaviso.com/blog/?p=16</guid>
		<description><![CDATA[I spent the better part of a day trying to figure out how to get a few radio buttons representing some limits on rent prices to integrate with my google maps code.  It turns out I was over-thinking it.  I got the impression from reading a ton of infomation that I needed to [...]]]></description>
			<content:encoded><![CDATA[<p>I spent the better part of a day trying to figure out how to get a few radio buttons representing some limits on rent prices to integrate with my google maps code.  It turns out I was over-thinking it.  I got the impression from reading a ton of infomation that I needed to set up an event listener inside the onload to listen for the radio button click.  As it turns out all I really needed was to listen for a global event.  I am inserting the code&#8230;without once again doing a good job of linking back to where I found it.  <font color="blue">The original code that I modified for both the java script and the html was found <a href="http://www.washington.edu/webinfo/snippets/javascript/events.html" target="_blank">here</a>.</font>  I have some notes at my office and will be able to clean that up later.  Here is the code.</p>
<p>The html code that adds the radio buttons and calls the javascript:<br />
<code>&lt;form method="get"&gt;<br />
&lt;p align="left"&gt;<strong>Rent Less Than</strong>&lt;/p&gt;<br />
&lt;ul class="formlist"&gt;<br />
&lt;li class="rent"&gt;&lt;label&gt;&lt;input type="radio" value="1000" name="radios" /&gt;<br />
onclick="return radioClick (event)" /&gt; $1000&lt;/label&gt;&lt;/li&gt;<br />
&lt;li class="rent"&gt;&lt;label&gt;&lt;input type="radio" value="1500" name="radios" /&gt;<br />
onclick="return radioClick (event)" /&gt; $1500&lt;/label&gt;&lt;/li&gt;<br />
&lt;li class="rent"&gt;&lt;label&gt;&lt;input type="radio" value="2000" name="radios" /&gt;<br />
onclick="return radioClick (event)" /&gt; $2000&lt;/label&gt;&lt;/li&gt;<br />
&lt;li class="rent"&gt;&lt;label&gt;&lt;input type="radio" value="100000" name="radios"  /&gt;<br />
onclick="return radioClick (event)" /&gt;     Any&lt;/label&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;input type="hidden" disabled="disabled" size="10" class="notify" name="notify" id="notify" /&gt;<br />
&lt;/form&gt;</code></p>
<p>And the javascript that handles the event  (reminder this is placed outside the onload function)<br />
<code>function radioClick(e) {<br />
var obj = eventTrigger (e);<br />
var notify = document.getElementById &amp;&amp;<br />
document.getElementById ('notify');<br />
if (notify)<br />
rent = obj.value;<br />
getMarkers();<br />
return true;<br />
}<br />
function eventTrigger (e) {<br />
if (! e)<br />
e = event;<br />
return e.target || e.srcElement;<br />
}</code><br />
After that it is just a matter of  adding the rent number back to the query and adding thatas part of the mysql query.</p>
<p>You can see all the code by going to <a target="_blank" href="http://www.turtlecreektampa.com">Orlando Rentals</a> and viewing the source.</p>
<p><!--adsense#block_add--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaviso.com/archives/16/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
