u/js_fan

2,108 post karma · 57 comment karma · joined Jan 2017

  1. 1points

    JavaScript Weekly Issue 358: October 27, 2017 (javascriptweekly.com)

    0 comments · source

  2. 5points

    Tutorial: animated fractal in 32 lines of pure JavaScript (slicker.me)

    0 comments · source

  3. 1points

    Website certificate issue when using guest wifi (self.techsupport) [Solved]

    6 comments

  4. 1points

    ELI5: Ex div date for FORR (self.investing) [Help]

    6 comments

  5. 2points

    Ex div date confusion for FORR (self.stocks) [Question]

    2 comments

  6. 3points

    Attorney: Client ate ‘everything’ bagel, did not take drugs (seattletimes.com)

    1 comments · source

  7. 1points

    Attorney: Client ate ‘everything’ bagel, did not take drugs (seattletimes.com)

    0 comments · source

  8. 1points

    Attorney: Client ate ‘everything’ bagel, did not take drugs (seattletimes.com)

    0 comments · source

  9. 1points

    Attorney: Client ate ‘everything’ bagel, did not take drugs (seattletimes.com)

    0 comments · source

  10. 2points

    Attorney: Client ate ‘everything’ bagel, did not take drugs (seattletimes.com)

    0 comments · source

  11. 3points

    Flash & The Future of Interactive Content (blogs.adobe.com)

    0 comments · source

  12. 1points

    Attorney: Client ate ‘everything’ bagel, did not take drugs (seattletimes.com)

    0 comments · source

js_fan

Yanni!

js_fan

Probably 2 million. That’s why the title of the post says Blender

js_fan

"trig functions are expensive" - agreed 100%, they're really slow. They way to go around it is to pre-calculate the results once and store them in a matrix.

js_fan

The difference between your code for text and circles is that for text you refer directly to window.innerWidth and Height (lines 54 and 58).

For circles, you refer to fitnessgroup[i].x and y (line 90) which never get updated (even if the window is resized). These variables are only calculated once, at the beginning of the run.
Try changing line 89 to: fitness1.x=(window.innerWidth / 20) * 4; to see how it could work.
By the way, you should not depend on the interval to redraw the elements, they should only be redrawn on resize. (unless they will really be animated in some way)

js_fan

Hallo Thomas,

Wie geht's?

The value of "calculate" is square root of member/price based on your code. Why did you insert the sqrt function? It doesn't sound like that's what need if you're just trying to divide.

js_fan

understood, thanks

js_fan

ok, the school finally told us we need to download certs from their website to handle https pages. now everything is working.

js_fan

thanks, I'll try a non-https page tonight

js_fan

thanks again!

js_fan

Thanks for checking for me!

But your quote (and the entire announcement in the link) only mentions the payable date (9/20) and the record date (9/6).

I am asking about the exact ex-div date, which is earlier than both of the above.

The main reason I'm asking is to know which of the two Nasdaq pages I can rely on in the future, since they're contradicting each other.

js_fan

I think you're right. I checked a couple of other websites and they all say 9/1. So looks like a bug on the Nasdaq website.

js_fan

It just says "shareholders of record on September 6" - so the record date, not the ex div date.

http://phx.corporate-ir.net/phoenix.zhtml?c=60569&p=irol-newsArticle&ID=2289071

js_fan
  1. 1st rectangle: x1,y1, width1, height1 = Math.random
  2. 2nd rectangle: x2,y2, width2, height2 = Math.random
    if (x1+width1<x2) and (y1+height1<y2): draw the rectangles
    else randomize again
    x1,y1,x2,y2 are the coordinates of the upper left corner of the respective rectangles

This does not include the roads.