Skip to content

Instantly share code, notes, and snippets.

Letter received from Twitter May 4 2018

Hi @rasmusei,

When you set a password for your Twitter account, we use technology that masks it so no one at the company can see it. We recently identified a bug that stored passwords unmasked in an internal log. We have fixed the bug, and our investigation shows no indication of breach or misuse by anyone.

Out of an abundance of caution, we ask that you consider changing your password on all services where you’ve used this password. You can change your Twitter password anytime by going to the password settings page.

About The Bug

A plugin for raster reprojection in d3

Here is a demo of a simple d3 plugin to reproject (warp) a raster image using d3.

I was motivated to make it because I could not get gdalwarp to produce nice reprojections of rasters when the target projection had the antimeridian inside the picture, e.g. in a rotated orhographic projection (showing Earth's "back side"). The gdalwarp utility typically leaves a thin sliver unpainted close to the antimeridian, which shows up as a transparent line along the antimeridian.

How to use the plugin

The plugin behind this demo (see below, or in the GitHub repo) is only a proof of concept, not ready for production. But it illustrates that we can easily create a pretty neat API for raster reprojection, something like this:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am rasmuse on github.
  • I am rasmuse (https://keybase.io/rasmuse) on keybase.
  • I have a public key ASC9h9cl8S0D4gkht-5t8R8cyrNCGJiv7spfcZur3c-8bAo

To claim this, I am signing this object:

@rasmuse
rasmuse / .block
Last active May 10, 2022 12:50
A plugin for raster reprojection in d3
height: 700
scrolling: yes
border: no