« first day (238 days earlier)      last day (4788 days later) » 

10:00 PM
Er, agreed.
Er, my sunrise is off, apparently...
 
@drachenstern Wait, are you saying you don't believe in the simultaneous 4-day time cube?
 
@MichaelMrozek ... um ... but ... you see what happpen was ...
It's like this: The FSM told me that it was not true.
 
I wish I could understand this well enough to comprehend how hilarious it is
 
I'm getting 7:31 for sunrise and 7:32 for sunset....
Seems like I've made a mistake somewhere.
 
@Moshe given how close we are to the solstice I would imagine 12 hours apart was nearly accurate
given the offset of 1 hour for DST I would imagine you're pretty close.
Go outside in 70 minutes and wait for sunset.
Then see how close you were
 
10:07 PM
@drachenstern That's with the offset.
 
@Moshe yes, that's what I said
otherwise it would be 6:30 and 6:30
er, is it the solstice or the equinox?
it's the equinox isn't it?
 
I'm not going to pretend to know.
 
At the equinoxes we are roughly at 12 light and 12 dark hours
you are predicting a 12 hour diff between sunrise and sunset
ergo: you're probably really close
 
Google claims sunrise is 6:41am Thursday (EDT) - Sunrise in New York, NY
12 hours 32 minutes from now
 
That only happened like a week ago or something
 
10:09 PM
Sunset 7:18pm Wednesday (EDT) - Sunset in New York, NY
1 hour 8 minutes from now
 
@Moshe I really have no idea, as I'm not usually awake that early, unless something bad is happening ...
 
I'm off by about 30 -50 minutes in either direction...
 
12.5 hours really?
 
I'm going to go back and compare my methods with the original Java.
 
that seems longer than I would've predicted
 
10:11 PM
@drachenstern So says Google.
Oh, I just thought of something!
Perhaps my dates/months are off by one?
You know, month numbering
0-11 vs 1-12
 
try it right now with feb as the target month
or april, whichever
 
I just pass in today's date, and iOS breaks it up. Seems to be getting 3 as the month.
Trying as april...
5:30 and 5:29
I'm off...
 
Yeah, if it moves the times back in lockstep, you are
 
I wonder if I mixed up latitude and longitude?
Although that's unlikely
considering how close they are.
 
You guys are approaching the 2 hour mark for your conversation about calculating sunrise
 
10:19 PM
@MichaelMrozek Well it's over now, my ride leaves now.
Thanks @drachenstern.
Tchüss
 
Calculating sunrise?
 
Hm, I seem to be sick...very uncool. sighs
 
@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.
Unless you're using SEI time calculations.
 
> 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
No Condé Nast, just no.
 
10:23 PM
Im on iOS now.
I wonder where I went wrong.
 
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...
ha, piece of cake!
 
Could be the accuracy of pi? I have several constants available in objC
 
@TimStone I wanna ask how you became a vanity fair insider tho ...
 
@rebeccaChernoff I ported code not wrote it.
Haha
 
Mar 22 at 4:26, by drachenstern
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...
 
10:25 PM
Eh. See you laters.
 
@drachenstern Oh, maybe it was only 1 hour. It felt like 7
 
You certainly cannot see my layers :o
 
@MichaelMrozek it felt like two weeks but ...
 
Autocorrect.
 
How are there several versions of the constant pi?
3
 
10:26 PM
@drachenstern Apparently if they wish I have a subscription hard enough, it'll come true! (I'm subscribed to Wired, so)
 
@TimStone lmao
 
M_PI4
M_PI and M_PI2
 
@Moshe rhetorical
 
M_PI4 as well. I'd better look them up.
 
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 ...
stupid javascript ...
 
10:29 PM
@drachenstern To Indiana!
 
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 ...
 
You can call something blocking, like alert :D
 
2
Q: Is java.lang.Math.PI equal to GCC's M_PI?

system PAUSEI 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...

 
@TimStone yeah, cos we all know how blocking alert is :p
 
I assume you really want a callback chain, but :P
 
10:36 PM
idk, lemme rubberduck it
I'm using bing maps, so I add a layer to the map
then I list all layers (which shows my just added layer, so that's good)
hmmm, I may have found a weak spot, lemme run a debug print
 
@Moshe, did you @lert me earlier today? I've been running around like a chicken with its head cut off and I think I forgot to respond to something.
 
I think he thanked you because he got word that a package had arrived for him (presumably his t-shirt..)
 
wahoa, I think I need to figure out about a callback then :(
Thanks @TimStone for the actual answer I need
now to find where to use it
 
Ooh T-shirts. Here's hoping mine make it across the Atlantic soon.
 
10:45 PM
I think it's official, my coworkers don't understand the asp.net webforms framework ...
 
@rebbecca yep. Thank you.
 
@drachenstern I thought the whole point of WebForms was that you didn't need to understand it...
 
@Shog9 perty much...
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 ...
 
11:02 PM
I hate ViewState so much. So very, very much.
 
for comparison my last three projects have been almost completely clientside with json passing
I'm trying to move away from viewstate and statebags and all that complicated data rollup
sometimes we have to tho
 
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!
 
yeah, I got him to skype me his code
he's setting it in the .cs as value = someop; and reading it in the .aspx as <%=value%> and it remembers it until he does a postbacktrigger
I promise I can type
 
@rchern Fess up. You know what the april fool's day prank is going to be right? You can tell us, we're like a close-knit family in here.
 
> well it has soemthing to do with IIS since it works fine under debug
 
11:13 PM
@shog9 You too. Tell us!
 
GAAAAAAAHHHHHHHHHH /headdesk /headdesk /headdesk
 
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?
/me is a sad puppy.
 
Supposedly even I got a tshirt ... I haven't seen it yet however
 
@drachenstern did you get an email or something?
 
@AdamDavis Moshe had a hand in the uh...mobile style.
 
11:16 PM
@AdamDavis ack
 
@AdamDavis Nope. But you'll want to wear this poncho and safety goggles.
 
Ah good, I'm already prepared then.
 
@Shog9 I always code wearing a poncho and safety goggles. And nothing else.
4
 
@AdamDavis sticky!
makes mental note to wear gloves when going to visit Adam on April - WAIT DON'T THINK OUTLOUD!
 
@Shog9 might as well, we hate having to strain to hear you think softly
 
11:19 PM
CHICKEN FINGERS!
 
That's not a very nice thing to call someone.
 
Sure it is. You're just lacking context.
 
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?
 
eep!
 
11:27 PM
> well it turns out its working... the file on dev was not up to date
> I swear I had updated it.. .
/headdesk /headdesk /headdesk
 
11:59 PM
heh
 

« first day (238 days earlier)      last day (4788 days later) »