Archive for the Google Category

New Google Privacy Policy..

Posted in Crazy People, Google, Policies, Social Media on 2012.29.02 by w3bguy

I keep seeing posts about how we should make sure to delete our +Google search  history before midnight tonight…  Seriously, why?  At least, in America, I’m sure that the government is monitoring everything we do anyway…  They love to break wiretapping laws like that.. #lol…

But seriously, are people actually worried about someone seeing their search results?  If you are searching for something that you’d like to hide, why are you logged in when doing it?  Or, for that matter why are you not at elast using a proxie to try and hide behind?

Personally, I welcome the new, improved services that this will eventually provide.  I say monitor my usage +Google, and use them to make my web experience even better.  I’d rather you do it that the American government… 🙂

Advertisements

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 “www.mydomain.com”.
  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="http://www.google.com/jsapi" 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 google.search.CustomSearchControl(
              'Custom Search ID', customSearchOptions);
            customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
            customSearchControl.draw('cse');
          }, true);
      </script>
  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="http://www.google.com/jsapi" type="text/javascript"></script>
      <script type="text/javascript">
      google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
      google.setOnLoadCallback(function(){
      var customSearchOptions ={};
      /* Add Custom Search Option to restrict directory */
      customSearchOptions [google.search.Search.RESTRICT_EXTENDED_ARGS]={"as_sitesearch": "www.myDomain.com/subDirectory1/subDirectory2/"};
      var customSearchControl = new google.search.CustomSearchControl("Custom Search ID", customSearchOptions );
      customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
      customSearchControl.draw('cse');
      /* Add query addition to restrict filetype */
      customSearchControl.setSearchStartingCallback(
      this,
      function(control, searcher, query) {
      searcher.setQueryAddition("filetype:pdf OR filetype:PDF");
      }
      );
      }, true);
        </script>

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

Just finished my first actual Adobe Air application

Posted in Adobe Air, Adobe Flex, Desktop Applications, Google, Programming, Programming Links on 2011.22.07 by w3bguy

So, I just finished my first actual Adobe Air application.

Version 1.0 is a basic QR code generator.  This version just takes a string and embeds it into the QR Code; created for use with URLs, but it will take any string.  The next version will have fields for creating contact information QR Codes.

http://bit.ly/pzO0pF

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 (http://youtu.be/A2-Zu6ADH_g), and a text walk-through on xda-developers.com (http://forum.xda-developers.com/showthread.php?t=987735).

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:  https://launchpad.net/win32-image-writer
Bootable Image: http://legacyschool.us.to/nookdev/clockwork/0.7/
ROM: ManualNooter-4-5-18.zip

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.

–W3BGUY

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