Monthly archives: August 2006

How to create an mp3 Google search box for your website

Have you ever wanted to add a specialty Google search box for your website that only found mp3, xls, doc, or other files of specific extensions? Well using a little JavaScript and tweaking Google’s code, it’s very simple to add a specialty Google search box to your website.

Here’s an example of a search box that only finds mp3 files.
Try searching for Daft Punk


Amazing, so how did I do this? Here’s the original JavaScript from Google to add a standard web search box to your website:

<!-- Search Google -->
<FORM method=GET action="">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE style="background-color:#ffffff;"><tr><td>
<A HREF="">
<IMG SRC="" ALT="Google" align="absmiddle" style="border:0;"></A>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<!-- Search Google -->

Here’s a little JavaScript you need to find only mp3 files. Notice, I am just using the “intitle” and “-” syntax to narrow the search results.

<!-- Search Script -->
function submitform() {
       var new_query="intitle:index.of \"mp3\" \"" +"\"-htm -html -php -asp \"Last Modified\"";;
<!-- End Search Script -->

In the above code, is just what the user originally typed.
Here’s the revised Google search code that implements the above JavaScript to make a specialty Google search happen:

<script type='text/javascript' src='search.js'></script>
<!-- Search Google --><center><form action="" method="get" name="gs" onsubmit="return submitform();" ><input type="hidden" value="UTF-8" name="ie" /> <input type="hidden" value="UTF-8" name="oe" /><table style="background-color:#ffffff;">
<td><a href=""> <img style="border:0;" alt="Google" src="" /></a> <input type="text" maxlength="255" size="25" name="query" /> <input type="submit" value="mp3 Search" name="btnG" /></td>
<!-- Search Google -->

If you wanted to make some money, you could modify Google’s Adsense Search Box to search for only mp3, mp4, mpeg, etc… However, that would violate the Google’s Adsense Terms of Service.

Is Flixya Violating Google Adsense TOS?

Flixya is a start-up video sharing service, much like YouTube and Google Video. Unlike its competitors, Flixya provides user incentives to share and upload videos. Flixya’s Revenue Sharing program offers a 50/50 split of all revenue earned from Adsense, Google’s Pay-Per-Click advertising program. The more video links you provide to Flixya, the greater your chances of making PPC revenue on the site.
FlixyaGoogle’s Program Policies, however, state the following rules regarding incentives,

Web pages may not include incentives of any kind for users to click on ads (ads=referals too). This includes encouraging users to click on the ads … as well as drawing any undue attention to the ads.

Google’s Policy also states the following about labeling ads,

Publishers may not label the ads with text other than “sponsored links” or “advertisements.

For purposes of these policies, “referral buttons are considered to be ‘Google ads'”. Yet, before and after users sign up for accounts with Flixya, they are shown several advertisements that direct them to sign up for Google Adsense as a direct incentive to make money. It seems apparent that instructing users to “Sign up for Google’s Ads to Share In Flixya’s Revenue Sharing Program” and labeling referral ads with the phrase “Sign Up” are violations of Adsense TOS. Adsense users should be further concerned that using Flixya’s Revenue Sharing Program and viewing videos on Flixya will cause an increase in page impressions with Google Adsense, which is a per se violation of Google’s TOS. What’s the likely penalty? Goodbye Adsense account.

SubjuGator holds onto top honors in 9th Annual AUV competition

SubjuGator 2006This past weekend saw the 9th Annual Autonomous Underwater Vehicle Competition in San Diego. Twenty-one collegiate teams pitted against each other to complete three tasks: finding a docking station, inspecting a pipeline, and surfacing in a recovery zone. The University of Florida’s SubjuGator Team retained the top title for the second consecutive year in this prestigious international competition sponsored by the United States Office of Naval Research (ONR) and the Association for Unmanned Vehicle Systems International (AUVSI). The University of Florida (UF) defeated teams from MIT, Cornell University, as well as international contenders from Japan and Canada.

Last minute finishing touchesBefore the AUV Final Round, Dr. Eric Schwartz, advisor of Team SubjuGator, updates UF students via e-mail from San Diego, “We are doing pretty well so far…We are the only team to dock with the docking station. It is apparent that ETS (Ecole de Technologie Superieure, from Canada) is our biggest threat…There are several other teams with very well built subs that could sneak up and beat us, but I believe the [SubjuGator] team is feeling good about our chances.” And Dr. Schwartz was right. Team members Carlo Francis, James Greco, Kevin Claycomb, Matthew Koenn, Sean Cohen, Sean Matthews, Michael Gregg, Jacob Collumns, Gene Shokes, Greg Cieslewski, and Adam Barnett walked away victorious.

Team SubjuGatorThe SubjuGator is designed to operate underwater at depths in excess of 15 feet and weighs about 40 lbs. The mission behavior of SubjuGator is controlled by a network of I2C modules. This system includes sensors, motor controllers, more than 10 microcontrollers, and vision systems. A single-board Pentium M based computer running Microsoft Windows XP Embedded provides processing power for the vision system and advanced signal processing.