WorldView-3: Ready for Launch

WorldView-3, the world’s first multi-payload, super-spectral, high-resolution commercial satellite for earth observations and advanced geospatial solutions, will launch into orbit on Aug. 13 aboard an Atlas rocket. Operating at an expected altitude of 617 km, WorldView-3 will have an average revisit time of less than one day and will be capable of collecting up to 680,000 square kilometers of imagery per day. Its data-rich imagery will discover new sources of minerals and fuels, manage forests and farms, and accelerate DigitalGlobe’s exploitation of Geospatial Big Data™ – a living digital inventory of the surface of the earth. Credit: Lockheed Martin/United Launch Alliance

The Bing Code Search Add-in for Visual Studio 2013

Maybe you already know the Bing Code Search Add-in for Visual Studio 2013. If not, you can see it here:

http://research.microsoft.com/apps/video/default.aspx?id=208988

The cool thing is, that you can also test it online at: http://codesnippet.research.microsoft.com/

Here I asked “how to save an image?” where I directly got some suggestions with code samples:

bing code search

Coding made easy! ;-)

Bing Maps Preview App

The Bing Maps Preview app uses the best of Windows 8.1 and Bing to help you get real world tasks done with beautiful 3D, designed for touch and personalization courtesy of your Facebook friends, favorite routes and more.

More info at http://www.bing.com/blogs/site_blogs/b/search/archive/2013/12/05/maps3d.aspx

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!