I plan to build an online map for markers (pins) of a game and I don't manage to set the correct latitude of my markers.  Original map is a square of 2048*2048px  Then I got markers (many thousands)  Map coordinates are set with a x, y notation f...
s o o o o o o o o o o o o o o o o o o o o o o o e   How can I calculate all possible paths, without using the same square twice, that a person could take to get from s to e?  I've created a grid array [[1,1]...[5,5]] but i dont know if that will...
I want to convert meters to miles in JavaScript.  For example 12700 meters is 7.8867 miles.  What formula can I use to do the conversion?...
Just a quick question, can this sum be written in one short line:    a = (b / c) * 100;   if (a < 0) a = 0;   Apart from the obvious way which is equally long:   if ((b / c) * 100) > 0) a = (b / c) * 100; else a = 0;   EDIT: And the ternary ver...
I'd like to be able to calculate the length of the shortest sub-string required to achieve complete uniqueness.    Lets say I have a varying length list of 32 character UUIDs, but what I'd like to achieve is shortenening them during reference...
When the viewport is at a 1:1 width-to-height ratio (e.g. 1000x1000 resolution), I want a variable to be set to 0.22.  When the viewport is at a 2:1 width-to-height ratio (e.g. 2000x1000 resolution), I want that variable to be 0.33.  This should scal...
Not sure of the best way to ask this question other than:  I'm writing a function that will accept a variable called 'x'.  function doIt(x){   var y = someformula; //this is just a placeholder for the correct formula   return y; }   And h...
Ok, I have two positions in 3d space:  var fromX = 1,     fromY = 2,     fromZ = 3,     toX = 15,     toY = 16,     toZ = 17;   Then I need to calculate the current position, when someone/something is moving in a straight line from the from-coordinat...
I am working with xpages and i want to fill a combobox with Years starting with 2010. I tried to do it without success. Any idea of the formula item to fill to the combobox ? Thanks...
I have the following formula in Excel  =1-(B30^(EXP(D30-C30)))   where B30, D30 and C30 are cells.  I am converting it into JavaScript something like this  result = 1 - (Math.pow(Math.exp(D30-C30), B30)); console.log(result);   The result is differen...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.