@RebeccaChernoff He wrote something that calculates the sunrise time for the current day. And apparently it doesn't work. At least that's what I gathered from glancing at the backlog periodically over the last few hours
@MichaelMrozek I don't think your calculations are accurate. I was gone from ~1500-1600 local for lunch. It being only 1721 local indicates that was not an option.
> As a Vanity Fair insider, you are eligible for this exclusive offer. For a limited time when you subscribe to Vanity Fair, you'll get the May issue, featuring the Royal Wedding Preview
The sunrise equation as follows can be used to derive the time of sunrise and sunset for any solar declination and latitude in terms of local solar time when sunrise and sunset actually occur:
:\cos \omega_o = -\operatorname{tan}(\phi) \times \operatorname{tan}( \delta)
where:
:\,\!\omega_o is the hour angle in degrees at either sunrise (when negative value is taken) or sunset (when positive value is taken);
:\,\!\phi is the latitude of the observer on the Earth;
:\,\!\delta is the sun declination.
Theory of the Equation
The Earth rotates at the angular speed of 15°/hour and, therefor...
The sunrise equation as follows can be used to derive the time of sunrise and sunset for any solar declination and latitude in terms of local solar time when sunrise and sunset actually occur:
:\cos \omega_o = -\operatorname{tan}(\phi) \times \operatorname{tan}( \delta)
where:
:\,\!\omega_o is the hour angle in degrees at either sunrise (when negative value is taken) or sunset (when positive value is taken);
:\,\!\phi is the latitude of the observer on the Earth;
:\,\!\delta is the sun declination.
Theory of the Equation
The Earth rotates at the angular speed of 15°/hour and, therefor...
ok, I have a global variable, that I assign to, so I can check it later, and when I see my code run with a console.log(var) it gives me [] but when I do the same on the console proper var I get the data I want ...
Is there a way to tell javascript to wait until the operation has finished before continuing on to the next step? since that's what it feels like it's doing ...
I am coding several reference algorithms in both Java and C/C++. Some of these algorithms use π. I would like for the two implementations of each algorithm to produce identical results, without rounding differently. One way to do this that has worked consistently so far is to use a custom-defi...
I've taken to putting my custom variables that need postback persistence into a wrapper of this format (and it broke for my coworker, and I don't know what his code looks like, so I'm really just frustrated ;) ):
private string SearchValueField {
get {
if ( ViewState["searchValue"] == null )
ViewState["searchValue"] = "";
return ViewState["searchValue"].ToString();
}
set { ViewState["searchValue"] = value; }
}
Since that encapsulates the retrieval and setting logic for me, and makes it easy to use the values in the codebehind with minimal effort. And since everything gets serialized into the ViewState bag, then putting like 6 or 7 items in there is cheap enough ...
But yeah, if you don't know what his code looks like, then trying to diagnose is probably a waste of time. He could be failing to postback, or trying to read the value too early in the page lifecycle, or... BAT COUNTRY!
If you install tacks point-up on your desk, you're less likely to use the headdesk technique, and when you do, your boss will send you home early. win win.
Aw, did they distribute tshirts and I not make the cut this time?
I grok the context of this but it makes me feel that the people of Cali are just getting dumber and dumber ... oops, I guess I meant dummerrrr and dummerrrr
> Well sister some people aree just inconsiterate
and yeah, I'm picking on Cali, but are any of our regulars even from cali?