« first day (239 days earlier)      last day (4785 days later) » 
00:00 - 07:0007:00 - 00:00

12:01 AM
Something is very very wrong with my code, but I don't know what.
 
12:46 AM
using jQuery (since the javascript room is temporarily dead) should I prefer mouseover or mouseenter for my event for my live handler?
I suppose given api.jquery.com/mouseover I'll use mouseenter
 
1:04 AM
Is it possible to use the second controller to control the ducks in duckhunt? http://bit.ly/hWy6xR #nintendo
^^^^^^^^^^ victory is will be mine
 
1:21 AM
What's good tonight @GeorgeMarian ?
 
@drachenstern Not this code that I'm cleaning up. :)
 
sounds like something I would say, except I'm working on my own code so ... :p
 
Hehe. Well, some of it is my own code, but that was tacked on to a minor mess.
It's interesting to see someone else's incomplete design decisions/changes.
Makes me feel less bad about my own. :)
 
Amen to that
 
1:49 AM
Dang it, Chrome. Why do you make things hard to select?
 
@GeorgeMarian Yeah I heard about that ... I don't have any Samsung devices to find out
 
@GeorgeMarian Ugh, I know, isn't it terrible?
 
@TimStone Odd behavior like that is one of the main reasons I haven't switched completely.
It may have the best JavaScript performance, but it still sucks in many other ways.
 
Yeah, unfortunately Firefox 3.6 was sucking pretty hard for me as far as memory leaks went, though maybe 4 fixed that.
 
How long are you guys gonna give the next few versions before you switch to it for daily testing usage? Or am I the only one here present doing web utils?
 
2:03 AM
@TimStone It seems a little bit better.
@drachenstern Heh. I've actually started using it for that, since I assume it's implementation of Firebug is better integrated into the browser.
 
@GeorgeMarian Ah, that's good...having to restart the browser because it was out of control was annoying.
 
I need to rephrase that: How long are you guys going to stick with current versions of FX and IE before upgrading to 4 and 9?
 
I already did. :P
Actually untrue, I haven't updated Firefox
I should though
Other developers use older browsers, so I let them worry about the difference, heh.
 
Well, at this point in time, I'm locked out of IE9, since all I have is Windblows XP.
 
2:06 AM
(and I switch to the laptop every now and then, since it's a bit behind)
 
I wanna move up but I have a feeling I'm gonna miss something. I know that I got some very good tool recs yesterdayish, so I'm gonna install those in the near future.
 
> Much of the public speculation about the attack on RSA so far has invoked the term “advanced persistent threat” or APT, which is security industry shorthand for “We’re pretty sure it came from China.”
LOL
 
GD-IT why did I allow myself to get linked to 27b/6?????
it's got a stronger hold than wikipedia!!!!!!!!!
 
heh wtf is it?
 
@GeorgeMarian Hahahah :D
 
2:15 AM
Found my bug! B"h
 
@GeorgeMarian what is what?
 
Got the original author to run the java code and log the outputs. We compared notes.
 
@drachenstern 27b/6
 
27b/6? I linked to it before. He's the one that did the "emailed you a spider for compensation please mail it back"
 
Ah, nice. (I tend to avoid clicking on my links for domains I don't recognize.)
 
2:18 AM
check out the middle sidebar become a chiropractor "quizlet" ... lol
 
lol
Though, technically, that shouldn't include "medical."
 
@GeorgeMarian too true. I missed that the first time.
 
2:34 AM
I forgot how much I like Golden Puffs.
 
But can you get enough of them?
 
Yah, I bought a super size bag of 'em. :)
 
Then you don't truly love that honey crunch
 
I doubt there's much honey in them, actually. (Which is why I prefer them over the big brand versions.)
 
lmao, what am I going to do with you two? :p
Yay awkward pauses :p :p Yatta!
 
2:37 AM
Feeding us cereal would be a good start. I'm all hungry now.
 
lmao
I'm almost out of cereal at my house too
I'm totally out of loaf bread, lunch meat, sliced cheese, and beer.
 
And I just ate a huge plate of ham, potatoes, and cranberries
 
ooooh, that sounds pretty good
So anyone wanna take care of porting my code from one specific API to another specific API?
I've worked out all the bugs!
 
I'm sure you have... ;)
 
2:40 AM
Well, all the ones that I care to edge-case test :p
I mean, if someone wants to open the console and start resetting variables in javascript or wants to delete random elements from the page, something is going to break
Why does word ignore my systemwide setting of using chrome as my default browser? Thanks WinWord!
 
That's only slightly less annoying than some non-MS application doing it.
 
It's tragic. Opening a URL in the default browser has been a one-line operation for something like 15 years, but Office apps still go out of their way to make it slow and broken.
 
Man, yesterday's The Daily Show is hilarious.
 
who was the guest?
 
@Shog9 Miguel Nicolellis
 
2:49 AM
mmm... monkey brains...
 
am I the only one that does my initial css layout in horridly contrasting colors only to go back later to make them pretty so I can see the initial boundaries?
I know that tailors do it with paper and chalk
 
I take that approach much of the time.
 
ok, just wanted to make sure that my teal and yellow and red and navy wasn't stupid ... at least I know where EVERY element is that I can't tell from the box modeling
 
yeah... And forget initial, I do that whenever I need to see boundaries clearly
 
2:52 AM
I'd like to know if there are any designers that take that approach.
 
@Shog9 I prefer * { border: thin solid red;} if I want to find where everything lives ... and for things that have overridden borders from higher specificity, well, those show up as non-red ...
 
@GeorgeMarian I'm sure @Jin lays out everything in tastefully-subtle shades of ocher
 
omg, I just did that to my current page ... eeek
 
@drachenstern yeah, red borders are good too, unless specific border widths are a key part of the layout.
 
2:54 AM
@Shog9 yeah, then it sucks
but it helps you find the problem children pretty quickly
 
nothing like debugging via mass-breakage
 
I also just found a place I needed to add a CSS tweak on something :p
/facepalm
 
(also my favorite technique for finding subtle bugs in C++... Just start NULL-ing things 'til it crashes & burns - SOMEONE FORGOT A SANITY CHECK!)
 
ok, that's enough of thin red border
 
contemplates code and a Scotch
 
2:57 AM
oooh, bourbon does sound good
 
mmmm, bourbon
 
have a mostly new (what sort of savage would I be if it wasn't opened yet?) bottle of Crown Black in my freezer ...
If ya'll haven't tried Crown Royal Black and you drink Bourbon, then what the hell are you doing? Go get some last week.
 
I don't have anything good in the house... The sight of an empty bottle of Buffalo Trace is reminding me of that.
There is the bottle of cheap stuff I use for cooking though... bit of ice, won't be terrible.
 
Yeah, mine was like that for several months
Budget does come first
ok, now for the tricky question ... do I abstract my javascript to a separate file or leave it in the aspx?
so far my codebehind consists of two lines
(excluding boilerplate requirements)
 
is it longer than, say, 10 lines?
 
3:00 AM
the javascript?
 
yeah
 
I would wager it's roughly 500 lines
but it's interwoven to be mostly api specific
I gotta sort out the parts that aren't and do a bit of encapsulation I believe. I'm working on it
I'm gonna port most of it to the other page and see what has overlap
 
well personally, that's at least 10x more than I'd want to edit inline with markup. It just gets irritating trying to find stuff.
 
Yeah, it's annoying as is. Fortunately I have great "find" resources in the shape of visual studio
But I got to introduce a bit more jQuery to the overall apps with this, and have a great baselayer for using jQuery templates so I can get my team used to seeing them in the code so we can get away from GridView and ListView
I know people like thinclients but I prefer fat clients
I want less on the wire, and fat clients let me put less on the wire, letting the server do more processing of data requests, and less formatting work
 
mmm... jQuery... Nothing takes the fun out of writing server-side markup-manipulation like realizing you could do the same thing client-side with like one line of chained jQuery.
 
3:07 AM
tell me about it
as often as you like
I much prefer doing my templating in jQuery than in gridView
     <script id="myTemplate" type="text/x-jquery-tmpl">
       <tr><td><input type='checkbox' class='checkbox-group1' myValue='abc' /></td><td>${name}</td><td>${age}</td></tr>
     </script>

      vs

     <asp:GridView ID="g" runat="server">
       <Columns>
         <asp:TemplateField>
           <asp:Checkbox ID="C" runat="server" CssClass="checkbox-group1" />
         </asp:TemplateField>
         <asp:BoundField DataField="name"/>
         <asp:BoundField DataField="age" />
       </Columns>
seriously formatter?
It's actually depressing since I just wrote all that out ... makes me realize how much boilerplate code there is in this situation
 
It's actually become a huge roadblock for me when using XAML - I just can't stand to see that much markup for something so conceptually simple.
 
oh lord, XAML ... I can't even fathom
 
3:31 AM
sips Old Crow, sucks ham out of teeth
 
3:52 AM
holy crap my code works on TWO apis :D :D :D
and I only really started porting it about 40 minutes ago according to the timeline here :D
now to find out how to add one bit of usability and then to figure out how to make it roughly api generic :D
 
4:18 AM
Arg. If Chrome is being annoying, can I blame it on the stable version instead of the dev version I usually run? (;
 
@RebeccaChernoff Of course!
That's all I came in here to say. Good night!
 
lol, I wanted to come in and complain about Chrome too :p
 
@RebeccaChernoff double check me .. if I want to call the event handler that's registered for onclick for any element, I should be able to $(selector).click() ... yes?
 
mm
now why don't lastpass and chat.se/global auth work for me? (;
 
4:24 AM
@AdamDavis no fair, I knew there was a setting for it but I had forgotten where ... thanks for reminding me :p
 
4:39 AM
o: ie9 says cookies are failing too
 
4:57 AM
hmm, nope. can't blame it on chrome stable
 
@drachenstern - I kinda fixed my bug.
 
Well I'm on chrome stable and no issues here
@Moshe yeah?
 
I'm off from the original code by a few minutes.
But the issue was:
I defined a compiler constant where the original code used a variable marked as const.
 
@drachenstern LastPass and chat.se/cookies are having serious issues for me. But I bumped up to Chrome Dev and still having the same problem on this machine, so it isn't the stable version. (;
 
@RebeccaChernoff Yatta!
 
5:00 AM
Putting my constant in parenthesis fixed the bug.
 
Unfortunately, not sure what else to blame it on. q:
 
@Moshe that's ... odd
@RebeccaChernoff /blame @balpha of course
or at this time of night likely @marcG
 
Odder still, some math stuff is misbehaving.
 
So, I know an element is in my dom, and I know clicking on it causes an action to occur, but I am having trouble getting it to fire (I can select it) by $(selector).click() and it's pissing me off :\
 
One of my methods is off by about 0.019
Which throws the rest off...
Does C assume float or double when given a decimal?
 
5:03 AM
@Moshe Does ObjectiveC assume ...
 
It is C.
ObjC is C in this regard. I'm using C.
 
3
Q: "f" after number/float in Objective-C/C

typeoneerrorI cannot find this in the Apple docs so: what does the "f" after the numbers here indicate? Is this from C or Objective-C? Is there any difference in not adding this to a constant number? CGRect frame = CGRectMake(0.0f, 0.0f, 320.0f, 50.0f); Can you explain why I wouldn't just write: CGRect f...

@Moshe are you compiling with gcc or something from apple?
 
@Moshe by default decimals are doubles, not floats
you need to use an f to specify it's a float
 
Apple gives me GCC
I want double. That's what the java uses.
Assuming java double and c double are identical.
@drach apple gives GCC
 
@Moshe DANGEROUS ASSUMPTION
 
5:09 AM
I'm noticing less number places in my logs in C than the java result I got in an email from the original author.
@shog9 I know.
This is the only difference I noticed.
 
@Moshe Depending on what you're using to write to the logs, C is probably not giving you full precision output
 
@Moshe both are the IEEE standard IIRC
 
%lf
 
@Moshe the compiler still isn't obligated to print to full precision with that
 
@markE but the tenths and hundredths are off.
 
5:14 AM
@Moshe due to rounding?
 
I don't know what l means when applied to f, but you should be able to get full precision by using %.15f
 
@Shog9 long float == double
 
@markE could be, but how would I know that? Everything before this method works.
 
isn't that format string compiler dependent tho? I would still go for the %.15f
 
The number doesn't look rounded but I don't know.
 
5:16 AM
@Moshe by multiplying by 1000 and viewing the results
 
@MarkElliot I was under the impression that floats were automatically promoted to doubles when passed as a vararg parameter
 
Why are we discussing floats? he wants doubles
 
@drachenstern because floats are interesting. And by interesting, I mean "interesting times" interesting.
 
@Shog9 what do you like have adonis dna or something?
 
eh?
 
5:17 AM
are you biwinning?
 
Obviously I'm too tired/drunk to get that
 
Ok. I got better results from %.15f. No changes in result but the logs are mre accurate.
 
@Shog9 vararg stuff is implementation dependent
 
@MarkElliot BASTARDS!
 
Im on GCC C99 standard
 
5:19 AM
@MarkElliot ah, I see...
 
I'd use %.15lf, still
 
@Shog9 old meme is old. charlie sheen
 
I am using %.15f
 
I thought you were using DOUBLES
 
ah... I know this makes me uncool, but I skipped the news for almost that entire fiasco.
 
5:20 AM
don't print with a FLOAT qualifier if your datatype is DOUBLES
 
@Shog9 +10 points for coolness
 
@Shog9 I did too, this is what has gleaned across my facebook into my brain
 
Well, what should I use?
 
at least lf
if not Lf
 
I was using lf
 
5:23 AM
%.15lf
%lf doesn't mean "print full precision"
it means "print a double with arbitrary precision"
 
3 mins ago, by Moshe
I am using %.15f
@MarkElliot which is usually 6 no?
 
@drachenstern I assume it varies by implementation, but GCC typically seems to print 6 numbers after the decimal point
 
I am trying various formatters as we chat.
%.15f is most accurate. But that is just
Logging.
I need to know why my C functions are breaking.
 
it doesn't appear to matter
afaik ideone runs GCC
maybe something else is wrong with your code?
 
@MarkElliot most likely >.>
 
5:27 AM
The logging is working. There are several functions at work here. There is one that is off by .019
 
that's a code problem
but a formatting problem
show us your code!
 
So how long does a question have to be open before I can offer a bounty?
 
@drachenstern 7 days IIRC
 
I'm on iOS.
 
ok, I'm out folks, as soon as my PC shuts down ... I need sleep or food or both, and my dog the same.
 
5:29 AM
@markE can you help if I post tweets with photos?
 
can't speak to GCC or iOS, but on Windows you have to be aware of the internal FP processor precision as well. Intermediate results can exceed normal double precision!
@drachenstern 'nite! Enjoy food!
 
how the hell are you writing c code on ios?
@Shog9 graci
 
I'm not. I'm writing on my MacBook. iOS is what has the Internet connected browser.
 
I may be back on in a bit, depends on how bored I get while eating ...
I don't need to be
 
Hang on... I wonder if I can get connected to on my MacBook.
 
5:30 AM
@Moshe what do tweets with photos have to do with it?
 
@markE the easiest way for me o post code from iOS.
 
Hmm, anybody remember seeing a meta post about chat.se and the cookie test failing? Can't find it. ):
 
I take a photo and tweet it. I don't know another way to post photos online.
 
@Moshe surely you can cut and paste it into an SO question
 
5:31 AM
Not on iOS.
The photo?
Or the code?
I'm so not writing a file transfer utility now.
Hang on.
 
wait, iOS features a copy and paste utility
are you programming on your iPad?
 
@Moshe there's also imgur mobile
I would know
 
I don't understand why text copy and paste is out of the question here
it's been around since iOS 2, no?
 
Hi wandering wonders
Why is twitter shooting for the stars ?
 
5:35 AM
Debugging code. http://t.co/ESDPWd3
@markE I'm writing the code on MacBook and screenshotting on iOS.
 
0
Q: What is the proper way in OpenLayers (OSM) to trigger a popup for a feature?

drachensternI have the feature ID, I can grap the marker layer on GeoRSS loadend, but I'm still not sure how to cause the popup to appear programmatically. I'll create the popup on demand if that's necessary, but it seems as though I should be able to get the id of the marker as drawn on the map and call so...

 
Imgur mobile is not an impulse buy I'm making at 130 am
 
Gimme yer views! (please)
Did I pay for it??? Hmmmm
 
But picup works.
 
I'm still at a loss here about where you're writing the code
and why you can't cut and paste text
 
5:38 AM
 
Be has two devices
 
@markE I'm writing code on a laptop which isn't connected to the net.
 
His phone has service, so he chats on his phone
 
I see
<- less confused
 
He's like that
 
5:39 AM
funnily enough i've written this function
you don't happen to be working a high altitude ballooning program, do you?
 
No. I'm doing sunrise and sunset.
Wanna see the function declarations for the other functions called there?
 
was the original function in degrees?
 
Oh the places you will go, oh the people you will meet...
 
@drachenstern I never could spell if I stopped with the 'Z'.
incidentally, that's nearly the quote I used on my college application essays
 
Here:
What do you mean by original function? The java version?
 
5:42 AM
the java version
all those conversions using M_PI could be giving you substantial error
if the java version was using radians straight up
 
The other version is identical actually.
One moment.
 
Math was never @Moshes strong suit ya know :p
 
oh, well that's annoying
 
@Moshe ... Prove your code is accurate .. Not the first time I've said that today. Paper n pen and all that
 
@drachenstern I'm decent with regular math. This is spherical geometry. I am porting code. No clue why it works. It just should... Perhaps I can declare my own PI to match Java...
 
5:47 AM
you haven't already done that?
 
No I use M_PI from Math.h
 
oh geez
 
What would Java's Math.PI be anyway?
 
one sec
 
Google...
 
5:49 AM
java = 3.141592653589793
 
Moshe I know I give you a lot of shit, but look here, if you don't understand it, then coding it will be hard as hell at the easiest, since you won't know what's wrong to debug it. Fortunately you have SO
 
c = 3.141592653589793
phew, looks like the same precision
er, I take that back
c = 3.141592653589793115997963468544185161590576171875
j = 3.141592653589793
bam!
now there's your problem.
 
@drach I know. I am almost there. I learned quote a bit already. I plan to get some good books afterwards, I want to weed out the language difference.
@markE but I was using the c PI.
 
precisely
c.pi != java.pi ==> code difference
 
And now switching didn't help.
 
5:54 AM
you're using Java's PI in place of M_PI everywhere?
 
Yea. No diff.
 
in that case I'm out of ideas
 
@MarkElliot what else would be causing an error? I had order of operations and a constant before.
 
well, how much error is there?
 
Well, the cosHourAngle is off by 0.019 approx. Which yields several minutes of error in my sunrise and sunset.
 
5:59 AM
hm
or what input values?
 
Does c have a native way to convert between degrees and radians or is my mini library the right way to do it?
Lat long and zenith?
 
yeah
 
Hang on.
Long is calculated at
@MarkElliot hrm... Should the zenith be adjusted there for refraction?
 
not sure
 
Also interesting to note is the truncated longitude.
 
6:05 AM
one sec
 
Yeah. Just found the bug.
Wow. That was obscure and I'm an idiot.
I was missing a zenith = in a function.
\o/
/facepalm
 
so using 10, 40, 90
i get near identical answers
different in the 10th decimal place
 
Yes. But you want 90.83333 not 90
 
See above please.
 
6:11 AM
@shog9
 
er, 14th decimal place
@Moshe that's not the point
the functions in Java and C produce identical results
here:
 
@drachenstern That's the answer. What the question is is irrelevant.
 
Java an c are identical here indeed.
Or close enough. The bug was my mistake elsewhere.
I didn't properly assign the adjusted zenith.
 
not sure why this thing won't format
 
Use `
 
6:13 AM
for code blocks? meh
 
Anyhow, @MarkElliot thank you.
 
Formatting doesn't work in multi-line messages, save multi-line, code-only messages.
 
i should go to sleep
 
My code produces identical results to that of the java authors at this point. Granted we need multiple test cases but yea.
 
see y'all
 
6:14 AM
@MarkElliot. Gnight thanks!
 
G'night!
 
Me too. I'm out.
 
@TimStone yeah, I was trying to tell @Shog9 I was gonna have his for him since he can't, but meh, iOS
@Moshe night. Grats on finishing it
 
Tchüss
Danke @drachenstern.
 
@drachenstern I wish I had some, I feel like crap at the moment.
 
6:15 AM
Bitte schone
@TimStone sorry
 
Not your fault I've somehow gotten sick...unless it is your fault, in which case shame on your germ ninjaosity.
 
I may be good at ninjaosity, but I'm not that good...
I /blame @RebeccaChernoff
 
I don't remember doing anything to provoke that, maybe she's preempting a comment I've yet to make. We're in big trouble if she's managed to develop that skill.
 
lol
she is a woman after all, I wouldn't doubt it
 
Has anyone got any golden april fools pranks up their sleeves ?
I mean IRL pranks.
 
6:22 AM
No, I grew past 13 about 18 years ago
2
 
but that's the only day you can get away with being 13 yo
 
So what are you planning?
 
last year I put wood shavings into the cereal box. that was funny
I have to top that. lets see :)
 
ever tape down your coworkers phone hooks?
using clear tape so when they answer the phone it doesn't actually lift up
 
Hmm but phones rarely ring here. Speaking of hooks I wrote a windows mouse hook program a lot time back. I can remotely control mouses. Maybe I'll try that.
 
00:00 - 07:0007:00 - 00:00

« first day (239 days earlier)      last day (4785 days later) »