Mapstraction: The javascript mapping abstraction library

cut-out-maps

Mapstraction is a Javascript library that provides a single, common interface for a wide variety of Javascript map APIs. It’s designed to enable a developer to switch from one maps API to another as smoothly and as quickly as possible.

Support for all the major mapping APIs:

  • CloudMade
  • ESRI ArcGIS
  • Google – v2 and v3
  • Leaflet
  • MapQuest and MapQuest Open
  • Microsoft Bing – v6 and v7
  • Nokia Here
  • OpenLayers
  • Ordnance Survey OpenSpace
  • Nokia Ovi
  • Yandex

Find out more on http://mapstraction.com/

Scrape and download pdf files from google or bing using PowerShell

Here is a very simple script that you could execute using PowerShell ISE. It could probably be written much better, but it works. The script just uses the power of the google search engine by searching for a specific filetype. This should also work with the Bing search engine.
To make the script work, make sure you have a directory C:\temp\dwnld\ created. Also you could easily change the regular expression pattern and the keywords.

Comments with modifications on the scripts are always welcome ;)

$keywords = @("manual", "microsoft", "powershell")
$pattern = 'http://(.*?)[.]{1}pdf'
$storageDir = "C:\temp\dwnld\"
$filetype = "pdf"
$rand = New-Object System.Random

$keywords | foreach {
    $urlToScrapeWithKeyword = "http://www.google.be/search?hl=nl&tbo=d&biw=1229&bih=677&output=search&sclient=psy-ab&q={0}+filetype%3A{1}&btnK=" -f $_, $filetype
    $urlToScrapeWithKeyword | Out-Default
    (Invoke-WebRequest -UseBasicParsing -Uri $urlToScrapeWithKeyword).Links | select -ExpandProperty href | Get-Unique | foreach {
        if ($_ -match $pattern) {
            $Matches[0] | Out-Default
            try {
                Start-BitsTransfer $Matches[0] $storageDir
                "Download ok" | Out-Default
            } catch [exception] {
                "Download failed:" | Out-Default
                $_.Exception.Message | Out-Default
            }
            "Sleeping" | Out-Default
            Start-Sleep -s $rand.Next(20, 43)
        }
    }
}

Enjoy ;-)
Don’t forget, web scraping can be illegal! Use it with care!

Google Transparency Report

This tool provides information about traffic to our services around the world. Each graph shows historic traffic patterns for a given geographical region and service. You may select a region and then choose a service to view each respective graph. Graphs are updated as data is collected, normalised and scaled. By showing outages, this tool visualises disruptions in the free flow of information, whether it’s a government blocking information or a cable being cut.

Check it out on: http://www.google.com/transparencyreport/traffic/

The new Bing

Bing introduces a new design, way to search and connect all data. You will now have your core search results, a snapshot area and a sidebar.
They will improve the connection of real object and social entities together with your search results. If you are concerned about your (Facebook) privacy: they also announced at the Bing Search Summit that they respect the Facebook privacy settings and that it is their priority 1, 2, 3 and 4 to protect your privacy.

Some images from the Bing Search Summit webcast:

I just don’t like this “US”-only thing:

 

Find out more on: