Skip to content

Instantly share code, notes, and snippets.

var degrees2meters = function(lon,lat) {
var radius = 6378137.0;
var x = radius * lon * Math.PI / 180.0;
var y = radius * Math.log(Math.tan(Math.PI / 4.0 + lat * Math.PI / 360.0));
return [x, y]
}
lon= -77.035974
lat = 38.898717
@wesgarrison
wesgarrison / gist:3921560
Created October 20, 2012 01:10
October 19 2012 - rubygems.org - notes on server

[transcript from http://www.youtube.com/watch?v=z73uiWKdJhw and irc]

Why is the server unhappy?

  • Bundle API is 70%-80% of traffic and it has to resolve the dependency graph and Marshal
  • x Processes are spinning in Ruby with 380% (of 400% total CPU [4 x 100%])
  • x Bundle can only use vanilla gems, so that's why we have to use Marshal
  • Redis Heapsize
  • Diskspace

Timing - middle of the day US

@map7
map7 / rails.org
Created November 8, 2011 05:23
Rails 3.1 autocomplete using coffee-script and jquery-ui