Archive for the Google Category

Google Custom Search – Restricted to specific directory, and filetype…

Posted in CSE, Custom Search Engine, Google, Google, Information Technology, JavaScript with tags , , , , , , , , , on 2012.26.01 by w3bguy

So I’ve been having trouble getting a new Google Custom Search to look only in a specific directory on my web server, as well as to only look at specific file types.   It seemed like this should have been SO easy…  But, it took me a bit to figure it out.  So here’s the information just in case anyone else needs it.

  1. Set up a new search engine, in Google Custom Search.
  2. Make sure that you have the root directory in the “Sites” section.  I used “”.
  3. You can enter refinements, but they only seem to work if the user clicks on them; not what I wanted.
  4. Go down to “Get Code” and grab the code block that is created for you.  For me it was this:
    • <div id="cse" style="width: 100%;">Loading</div>
        <script src="" type="text/javascript"></script>
        <script type="text/javascript">
          google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
          google.setOnLoadCallback(function() {
            var customSearchOptions = {};
            var customSearchControl = new
              'Custom Search ID', customSearchOptions);
          }, true);
  5. This will give you the basic search.  In order to add in the site restriction and the filetype restriction I changed it to:
    • <div id="cse" style="width: 100%;">Loading</div>
        <script src="" type="text/javascript"></script>
      <script type="text/javascript">
      google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
      var customSearchOptions ={};
      /* Add Custom Search Option to restrict directory */
      customSearchOptions []={"as_sitesearch": ""};
      var customSearchControl = new"Custom Search ID", customSearchOptions );
      /* Add query addition to restrict filetype */
      function(control, searcher, query) {
      searcher.setQueryAddition("filetype:pdf OR filetype:PDF");
      }, true);

    I hope that helps out anyone else who might be looking for a similar problem…


Rooting a NOOKcolor 1.2.0

Posted in Android, Google, Hacking, NOOK, NOOKcolor, Rooting, YouTube with tags , , , , , on 2011.22.05 by w3bguy

I picked up my new NOOKcolor, yesterday, at Barnes and Noble.  As just an eBook reader, it is very impressive.  But, I wanted to the full Android tablet capabilities, not just an eReader.

After searching all around the Internet for reliable instructions, I found a video walk-through on YouTube (, and a text walk-through on (

In short, what this takes is a micro SD card, turned into a bootable SD card, with the new ROM on it.  The walk-through on the xda site links to the needed image writer, the bootable image, and the new ROM.  Those links are as follows:

Image Writer:
Bootable Image:

The video shows a “Install Failed” at the end of the installation.  I received the same screen, and after rebooting it worked fine.  Once the tablet is rooted, it appears to work just like a regular Android tablet.  I just rooted mine, so we’ll see how it goes throughout the day.


Easy GPS Coordinates

Posted in Google, Google, Google Maps, JavaScript, Web Development with tags , , on 2010.05.11 by w3bguy

Ever need to find the GPS coordinates for a location?
Try the simple step below to get the GPS coordinates for any location, using Google Maps:

  1. Open Google Maps, and find the areayou wish GPS coordinates for
  2. Right click at the specific spot you would like GPS coordinates for
  3. Select “center map here” from the list
  4. Paste this JavaScript code into the address bar
    • javascript:void(prompt(”,gApplication.getMap().getCenter()));
  5. Press Enter on your keyboard
  6. A pop-up will appear showing the coordinates of the center of the map. It should look something like this: (43.60336, -110.7362)
  7. Right click on the coordinates to copy, and click either “OK” or “Cancel”

YouTube Embed Code Experiment

Posted in Google, Google, Information Technology, YouTube, YouTube on 2010.27.07 by w3bguy

via Website Magazine

YouTube is experimenting with a shorter, more compatible embed code which uses the <iframe> tag.

If you choose to use the new embed code style, site visitors will be able to view the embedded video in one of YouTube’s Flash or HTML5 players depending on their viewing environment and preferences. Supported environments include those browsers that support both the video tag in HTML5 and either the h.264 video codec or the WebM format (with VP8 codec).

As an aside, WebM is a media file format designed exclusively for the Web.

The suppported browsers include Firefox (WebM enabled version), Google Chrome (h.264 supported), Opera (WebM supported), Microsoft IE 9 (h.264), and Apple Safari (h.264, version 4+). Should there be an instance when HTML5 is not supported, YouTube will use Flash.

One of the most significant developments of the new embed style is that it will eventually allow embeds to work on mobile devices.

There are a few restrictions to the beta-test of the new embed code. Videos with ads are not supported (they will play in the Flash player), and on Firefox and Opera only videos with WebM transcodes will play in HTML5.

To participate in this experiment, simply join the HTML5 beta here.

Chrome Passes Safari

Posted in Browsers, Chrome, Google, Google, Google News, Information Technology, Safari, Web Development with tags , , , on 2010.28.06 by w3bguy

via Website Magazine

Web analytics provider StatCounter is reporting that Google’s Chrom browsre has overtaken Apple’s Safari in the US for the first time. Research is from the firm’s StatCounter Global Stats report for the week beginning June 21.

Chrome with 8.97% took third place in the US browser market ahead of Safari with 8.88%. Microsoft’s Internet Explorer still dominates the US Internet browser market with 52%, followed by Firefox (28.5%).

“This is quite a coup for Google as they have gone from zero to almost 10% of the US market in under two years,” commented Aodhan Cullen, CEO, StatCounter. “There is a battle royal going on between Google and Apple in the internet browser space (Chrome v Safari) as well as in the mobile market (Android v iPhone).”

The data is based on an analysis of 3.6 billion page views (874 million from the US) for the week 21 to 27 June 2010 collected from the StatCounter network of over three million websites

Google Plans Music Service Tied to Search Engine

Posted in Google, Google, Google News, Information Technology with tags , on 2010.22.06 by w3bguy

Via Wall Street Journal

Google Inc. is preparing to roll out a music download service tied to its search engine later this year, followed by an online subscription service in 2011, according to people familiar with the Internet giant’s discussions with the music industry.

Google’s proposals are still vague, say these people, and it’s unclear whether it has struck any deals with record labels so far. But Google has been stepping up conversations about offering new music services tied to phones running its Android operating system along with the broader Web, said people who have been briefed on the talks. The launch of Google’s download music store is still months away, these people said.

The discussions come as Google has been pushing deeper into music. Last year, as a first step, the company began linking to partner websites like iLike and Pandora through its search engine, allowing people to stream songs with one click from its search page. Now, the company is looking to tie its own service to its search engine, too….

Twitter Gets One Step Closer to Google

Posted in Google, Information Technology, Social Media, Twitter, Web Development on 2010.18.06 by w3bguy

via Website Magazine

It’s no secret that Twitter has been mostly centered on a “push” mentality – throw enough out there and something will stick, and you’ll gain followers in the mean time. Of course, the more followers you have the better chance of something sticking, or being shared. And, the cycle goes on. But things are about to change. Twitter is on its way to becoming a “pull” interaction – just like another world-famous website, Google.

If you think about Google like a social network, the similarities are clear. As a Google “publisher” your goal is to be listed and get the attention of others. When successful, your content is shared via syndication and links. As a Google “user” you’re there to find information, through search. When you find something you like, you might link to that website, bookmark the page or subscribe to the site’s RSS feed or e-mail newsletter. In other words, you become a “follower” of that website. But imagine if you were to “friend” every website as the result of a search … you would quickly become overwhelmed. Now take all of that and apply it to Twitter. It’s not much different….