Archives / 2017 / April
  • Wappalyzer + PageXray Chrome plugins combined change PUT to GET

    I installed at home two Chrome plugins on my Mac to analyze technology used on websites: Wappalyzer and PageXray. When I got on my work this morning and turned on my Windows PC  I started using the application we are developing, but it behaved weird. After a lot of debugging I found that an Ajax PUT request was changed into a GET request! Then I remembered that I installed some plugins at home, and that on startup of Chrome these plugins were installed at work as well! When I disable one of the plugins it started working again as expected. So beware of this deadly combination!!

  • Zipkin with docker startup script

    In a project we use for distributed tracing. During development is is very handy to trace to Zipkin running in a Docker image. The following PowerShell script will help with (re)starting the Docker image on WIndows and open Zipkin in Chrome when it is running.

    $runningZipkin = & docker ps -q --filter ancestor=openzipkin/zipkin
    if ($runningZipkin) {
    "Running Zipkin with id $runningZipkin - will be killed"
    & docker stop $runningZipkin
    "Starting Zipkin docker image"
    & docker run -d -p 9411:9411 openzipkin/zipkin

    $ErrorActionPreference = "SilentlyContinue" # We don't want to see failing requests
    do {
    Start-Sleep -Seconds 1
    "Waiting for starting of Zipkin..."
    $up = Invoke-WebRequest -Uri http://localhost:9411
    } while (!$up)

    & "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://localhost:9411