« first day (24 days earlier)      last day (4940 days later) » 

12:09 AM
i answered many questions on SO, but not many ppl realize the "accept solution" button.. is it nice to just write under comments, "please accept my solution?"
 
if they drop a comment under your answer like 'thank you..' or similar
 
what about "will look into this"
 
I do it from time to time if I felt that I helped them and they interacted with me, so why not? Nobody has told me it's bad form yet. I normally go under the question and put a comment "@asker ~ would you please accept an answer for this question and be a good community member? thanks." And I do that often for questions I didn't give an answer to.
 
i generally post a comment "reminding" them to "please mark the correct answer as accepted"
 
lol
 
12:14 AM
don't really refer to yourself, just "remind"
and, not trying to insult, but posting 32 answers in 1.5 years is not really "so many" ..
 
i never wrote so many.. and define "many"
 
> i answered many questions on SO, but not many ppl realize ...
i dont know what is average actually
 
many questions on Stack Overflow
 
i used to be alot more active, im currently at 307 in 1 year 1month
 
many does not mean "average"
i am not really active, i started using SO again 1 month ago
 
12:21 AM
(307 answers, 11k rep). the ratio of being correct and getting marked as accepted isnt that great -shrug-
 
check my activity log
 
you'll enjoy the site alot more if you just dont think about it
it's just 15 points. if you have a good answer that other people think is good, each approval from those people is +10
so write your answer for the public .. for the guy who is searching google 6mos from now .. that will earn you more rep in the end
i get daily upvotes from questions i answered months ago ..
 
@Matt doing better than me 171 and 2k
I just love when I comment out a chunk of jQuery because I don't want that function turned on right now, and I have my debug statements in the code, and so I leave it alone, and someone else turns it on, and performance degrades DRASTICALLY
 
1:00 AM
anyone here had a chance to see how the IE browser on the Windows Phone 7 behaves?... e.g. like IE6, IE8, or IE9-ish?
 
@scunliffe It's a mix of IE7 and 8 according to the reports
Rendering is okay, but no support for HTML5 video and co.
 
that's what we need more of. IE.
2
</sarcasm>
 
hehehe yeah, I know... I'm just wondering how much torture I'm going to be in for if I have to support this device...
on a personal level, I'd be happy if IE6,7,8 self-destructed when IE9 comes out
 
@scunliffe Then you'll have to deal with hoards of XP users screaming at you to get their internet back
(Yeah, people still thing Internet Explorer is the Internet)
 
Yeah, I know... that said, Chrome on XP is a much better experience than IE
 
1:09 AM
s/on XP//
 
+1 rchern
 
 
9 hours later…
9:49 AM
Morning
 
@Raynos Evening
What do you think about the new homepage sort order?
 
?
Vague statement is vague
 
@Raynos The homepage's recent tab has been replaced with a new interesting tab that sorts the questions using a totally new ranking algorithm
What do you think about it?
 
oh i c
Its different
I never used recent
all our html pages are ugly and badly formatted.
What kind of tool can I use to beautify the page?
 
@Raynos You're referring to the code or the actual design?
 
9:58 AM
code
whitespace layout of code is stupid
 
@Raynos There was a recent question about HTML beautifier
Hang on
3
Q: HTML formatter/tidy/beautifier for JavaScript

PetahIs there any HTML formatter/tidy/beautifier out there written in JavaScript? I have made a content editor (CMS) which has both WYSIWYG and source code views. The problem the code written by the WYSIWYG editor is normally a single line. So I would like a JavaScript that could format this into a m...

 
That's the beautifier I use in my user script for the JS formatting button on SO.
 
its good for js
but no good for aspx
 
Got fed up of all the poorly formatted JS that gets posted - much easier to spot errors now.
 
:)
entire html pages are more difficult to format :(
Besides they dont deal with inline asp <% %> well.
 
10:41 AM
How do you avoid 10 levels of indentation in html files?
 
10:58 AM
Can the jQuery UI Datepick be used for ranges of dates?
or multiple dates selected?
 
11:32 AM
with multiples inputs, yes
 
I meant a single input containing csv or date1 - date2 (date1 < date2)
The initial surge is dying down
chat is becoming less popular
 
 
2 hours later…
1:24 PM
Are tuesdays dead tuesdays?
 
1:34 PM
any crossbrowser wrappers for document.styleSheets ?
 
2:08 PM
I think the chat was more lively when it was at the top of SO.com in bright pee yellow telling you to join in
 
:)
 
Tom
Hey, looks like firebug console commands freeze the script if firebug is not active or you use a different browser than firefox?
 
yes
although I think firefox handle it nicely if firebug is off
 
Tom
@Raynos, interesting I don't think the same happend on my windows machine
 
but calling to console in ie blows up
 
Tom
2:16 PM
@Raynos, it does not handle it nicely for me if firebug is off
Chrome neither
Hmm, that is rather annoying. I cannot easily remove all debug lines.
 
@Tom just wrap console
@Tom if (typeof(console) === "undefined") window.console = { "log" : function() {} };
 
Tom
@Raynos, alright thanks
 
@Tom if you use console.group check if it exists since console.group is for firebug only whereas console.log calls to the native chrome console or something like that. I had edge cases where console.log exists but console.group does not exist
 
Please don't flame me:
What exactly is the link/relation from Java to JavaScript?
 
Flames @Greg
 
2:19 PM
I mean, where does the name come from?
 
ug...
:)
 
@Greg "Java is a popular name. Lets call our language JavaScript. Maybe people who use java will start using it"
 
literally just that?
 
@Greg yes.
 
it was cross marketed with Java yes
 
2:20 PM
@Greg Eh... (points to Google, search for "The History of Javascript"). Seriously.
 
There is no relation
programmically at least
 
mmmm there is
the curly brace style came from Java
 
Or C
 
no..Java
 
and sometimes it has semicolons
 
2:21 PM
Also a more-or-less random collection of Java reserved words are claimed by Javascript for no good reason
 
Self and Scheme were the biggest influences of JavaScript
 
@MikeFielden and @YiJiang, I know the difference between them, I've been programming for years. But one question that I've never really thought about before is where the name came from, and how come Sun didn't complain?
 
@Greg "The change of name from LiveScript to JavaScript roughly coincided with Netscape adding support for Java technology in its Netscape Navigator web browser. "
 
correction: ECMAScript reserves those words: developer.mozilla.org/en/JavaScript/Reference/Reserved_Words
 
@Greg "The final choice of name caused confusion, giving the impression that the language was a spin-off of the Java programming language, and the choice has been characterized by many as a marketing ploy by Netscape to give JavaScript the cachet of what was then the hot new web-programming language. [14] [15] "
@Greg "It has also been claimed that the language's name is the result of a co-marketing deal between Netscape and Sun, in exchange for Netscape bundling Sun's Java runtime with their then-dominant browser"
@NickCraver C-style syntax comes from C -.-
 
2:22 PM
Are you saying that the reserved words didn't get reserved until ECMA published the standard?
 
@Raynos No, it didn't come from C
If you want to argue with Brendan Eich who created it, go ahead
Java followed C, but the style in JavaScript came from Brendan's Java experience
 
@Raynos hmm that is interesting. Not what I thought at all
 
Well I think we're talking about "heritage" not necessarily direct borrowing
 
@NickCraver One can argue that Java's use of C-style syntax comes from C therefore its from C ?
 
that's a different question
"where did all curly braces come from?"
 
2:24 PM
It makes me sad a little whenever I read an SO question about somebody having problems with their Java applet :(
 
not "why does JavaScript have curly braces?"
 
@NickCraver you win.
 
JavaScript has curly braces specifically because the author had the most experience with Java, Self and Scheme
 
@Pointy why?
 
I believe an SO podcast with Steve Yegge has some pretty funny views on JS origins
 
2:26 PM
Because Java applets are such a royal pain, and such an awful way to do things (unless you're totally desperate for some weird behavior)
 
@NickCraver stack overflow does podcasts?
 
used to
 
@Pointy MineCraft, Runescape, that other game that inspired minecraft
 
They dont still, do they?
 
don't believe so, joel got burned out on them iirc
 
2:27 PM
@Raynos well I guess they must have been "totally desperate" :-) I don't even install the plugin on any machines I use anymore
 
@Pointy how are you supposed to do big projects in browser like that otherwise? Flash?
 
@Pointy, Java applets have their uses
 
I can get sad over all sorts of things guys ...
 
I'd personally distance myself from Java ASAP
 
I'll put it this way: for my own projects, if I find myself thinking about using a Java applet, I would know that I had become completely lost in the wilderness and that I must be wrong.
 
2:29 PM
Oracle suing others for using it and getting ready to split the VM into paid/free versions is bad news imo
 
@NickCraver what companies do Oracle own now?
 
My question is what alternative technologies are there for projects of the size of minecraft and runescape.
 
@NickCraver Yes that's really bumming me out because I don't mind it so much server-side
 
If there are any id be very interested
 
@Greg - lots of companies, this is the Sun takeover still
 
2:30 PM
@Raynos flash & silverlight I guess
 
@Raynos Well what are the things that you can't do today with Javascript and HTML5 toys that those games need?
 
@NickCraver I was amazed to see MySQL in there
 
@Pointy server-client non-lag.
 
@Raynos web sockets ...
 
community is already fratured on MySQL, OpenOffice as well
 
2:30 PM
@Raynos javascript tcp implementations are coming on nicely now
 
Tom
@Pointy, access file system directly, etc. You can give Java Applets permissions to do pretty much anything normal software can
 
@Pointy Im actaully going to see if javascript can handle server-client connections for browser fps. I just feel it cant
 
@Tom what do you need to access the filesystem directly for?
 
Tom
@Greg, it allows you to create desktop apps for the client
 
@Raynos well personally I'm not sure the Internet can handle connections for a real FPS game, but that's just me.
 
Tom
2:32 PM
Things that you cannot do in javascript/html/flash/silverlight due to permissions
 
The new technologies are awesome, but people tend to forget you have to support the lowest common denominator for your audience (IE) and it's going to be as low as it is (even with IE8 forced on Win 7) for a long time
 
@Pointy standard libraries and 3rd party libraries in java that arn't ported to javascript yet is the only good reason apart from worries over high speed server/client connection
 
@Tom build a desktop app if you want your app to run on the desktop ...
 
@NickCraver Oh yes I understand that, but of course Java comes with the liability that it has to be installed and maintained on client machines separately from the browser, and that's disturbing to me
 
Tom
@Greg I bet lots of people prefer not to install anything and run everything from their browser
 
2:33 PM
@Tom hmm yeah good point
 
I make believe I live in a pristine technology world where ugly flaky stuff just doesn't exist
 
yup, I don't install it personally for any reason on any of my machines
 
So anyway I don't know what I'd do server-side if I were writing a new app from scratch. Clojure would be cool but of course it's JVM based! Node.js is to flaky. Erlang is too weird and there aren't any good frameworks, plus library support is primitive compared to Java.
(Actually I like Erlang a lot but still it'd be a challenge. Also I'd have few friends.)
 
@Pointy whats wrong with php ?
@Pointy Can I recommend VB.NET ?
 
Well no offense to the php community but I really dislike languages like that, ones that have evolved more "randomly" - also php has some language characteristics that horrify me
 
2:40 PM
VB.Net ewwww get it off me :)
 
VB.net.... yuk
pass
 
I won't develop on Windows unless I'm literally starving - I'm pretty sure I'd die of hypertension if I had to use windows all the time
 
The VB.NET was a joke. But I want to use node.js myself.
 
Yes I think node.js is really cool and has a lot of promise, but it's just way too immature now.
 
@everyone, tell me about node.js for serving pages, etc. rather than simple tcp connections
 
2:43 PM
@Greg I'm pretty ignorant. There are a lot of basic things I just don't get with node.js
 
Tom
@Greg I'm working towards that
@Greg, check expressjs.com
There are others too.
 
Someone remind me whether tr.rowIndex is valid
 
For example: I'm used to the typical Java HTTP server model of an HTTP request living a lifecycle in a thread, and having the lifecycle implicitly associated with a database transaction
 
I like nodejs, had a look at using it for making a js game for testing purposes
but I am amazed to see it serving websites!
 
I don't know how to re-think that in terms of the node.js asynchronous model - the whole notion of "request context" is just different I guess
maybe it's just something you maintain more explicitly
 
2:46 PM
@Raynos quirksmode.org/dom/w3c_html.html#tables - yes, that should work
 
On the happy side I think that the problem of parameter <--> persistence mapping is probably a billion times easier in Javascript than in Java
 
Tom
@Greg, sites built on Express for node.js: eg. learnboost.com and markup.io
 
@YiJiang what happened to the .rowIndex mdc page?
 
Also (some) first-order validation code can be shared between server and client
 
Thank god i've never done serverside before I can learn it in a node.js compatible way first time round :)
 
Tom
2:48 PM
@Pointy one of the major advantages is speed and effiency
@Raynos same
 
What are good checks for isDomObject & isJqueryObject ?
 
Tom
Thank god I have all the time of the world to slowly build towards it too, no deadlines, no contractors : ) My main concern is still Javascript's design structure and syntax though
 
@Tom "main advantages" of what? Node.js? I hear "node.js" people talking about how super-duper fast it is all the time but (while I think it's really cool) I don't think they're comparing apples to apples
 
Tom
@Pointy, comparing node.js as webserver to other webservers
 
@Tom use it losely :)
@Tom stop being so rigid
@Tom I dont like you. I want to do a node.js project now :(
 
Tom
2:51 PM
@Raynos it's easy for projects where you don't allow public connections. Eg. I already did quite a lot of financial analysis with node.js
It basically crawls stock data and stores the data to analyse it
 
@Tom well I'm sure it's OK, but I bet Yaws could give it a run for its money :-)
 
Tom
@Pointy I am no expert so you're probably right, from what I saw though node.js competes with nginx etc.
 
I don't actually know much about node.js (or even Yaws for that matter, though I've installed and "used" it, unlike node.js)
The local Javascript group is all ga-ga about node.js however so I get a lot of indirect exposure
 
@Raynos just use b instanceof jQuery
@Raynos thanks I was looking for that!
 
@Raynos schizophrenia ?
 
Tom
3:00 PM
Hmm, these chat starred items are bound to stay at top forever, since they obviousely have merrit they're only going to be upvoted more once they appear there
 
@Chouchenos I was mocking the lack of help on a relatively easy question. silly instanceof keyword.
 
Tom
3:20 PM
This is really weird. When I put a console.log("test"); at the top of my scripts all future logs show in firebug console, but when I remove this console.log("test"); I don't see any firebug console logs... at all.
 
@Tom firebug is dodgy and console tends to break. just shut firefox down and open it again
 
Tom
@Raynos, that didn't help. Strange.
It seems consistent.
 
@Tom your doing something wrong
 
Tom
@Raynos, I must be, fact is if I add a console.log at the top all the other logs work too.
 
@Tom the most obvouis case is theres a bug between the top of your script and the first log call
 
Tom
3:23 PM
@Raynos why would a console.log at the top fix the bug later?
 
user69820
does this script include your newly added if(typeof(console) === "undefined") {...}?
 
Tom
@thegravytalker no
 
user69820
@Tom well, don't mind me then
 
Tom
@Raynos, @thegravytalker, this shows the log in Main.init:
If I remove the test log, none of the future logs show.
Main.init = function() {
	console.log("Main init");
};
I never experienced these weird things in other high level languages :p
 
@Tom does console clash with some variable named console in node.js ?
@Tom try string replace console -> window.console
 
user69820
3:35 PM
@Raynos good thinking. you might be calling an undefined method
 
@Tom HBPBLoader.load is that part of the node.js backend or some frontend library?
 
Tom
@Raynos, this is not node.js yet - I wouldn't run node.js in firefox :)
This is just a web based javascript app
 
@Tom try it without relying on HBPBLoader
 
Tom
@Raynos, HBPBLoader does always return though, but sure
@Raynos HBPBLoader loads all modules, including Main. Anyway, the callback I gave it always returns
I didn't change it either :/
@Raynos I do get this js warning: reference to undefined property win[windowPropertyName]
At the lines I mentioned above, the call to Main.init()
 
@Tom -.- what is win[] ? you mean window[] ?
 
Tom
3:45 PM
@Raynos, no that's what firebug told me
 
@Tom oh ok. You might just want to bootstart the console by putting console.log("starting app")
 
Tom
firebug also warns about this:
anonymous function does not always return a value
[Break on this error] });\n
 
@Tom its easier then figuring out why your edge case fucks up in firebug
 
Tom
@Raynos if I do that everything works though
 
@Tom thats the point.
 
Tom
3:46 PM
@Raynos, well I have to know why not having that log causes the logs not to show
 
@Raynos thats the firebug API being picky in edge cases. I have issues with it too.
 
Tom
Hmmm. Maybe. Is there a way to not let firebug show jQuery javascript warnings? I get spammed with " keyCode" warnings caused by jQuery, so I cannot see the useful warnings easily.
 
@Tom turn off javascript warnings
@Tom console show javascript warnings are a pain
@Tom and strict warnings are silly.
@Tom its nearly impossible to pass strict warnings, javascript warnings and still achieve browser compatibilility and high efficiency.
@Tom if you want to sacrifice speed and portability for rigid standards use a different framework
 
Tom
4:06 PM
@Raynos I'd use haXe if creating javascript bindings wasn't such a pain
 
user69820
is the console.log in Chrome the same as the one in firebug?
 
user69820
just wondering if Chrome would show up the same symptoms
 
Tom
Never used debugging in chrome. Is it good?
 
Tek
yes sir
It's impeccable, to me anyway
 
Tom
@Tek, great, maybe I should use that instead of firebug
 
Tek
4:14 PM
try it out, it comes down to preference anyway. You can argue about which one is better but in the end it'll all depend on which one works the best for you
 
hey
anyone worked with ckeditor here?
 
Tek
yes and no
very little
until I switched to tinymce, it was a ton better =P
in my situation, anyway
 
Tom
4:30 PM
What does this mean? XMLHttpRequest cannot load file:///home/tommedema/Projects/JSTesting/hbp/frameworks/rangy-core.js. Origin null is not allowed by Access-Control-Allow-Origin.

I'm merely calling $.getScript("folder/file.js") a couple of times locally (file://..)
 
firebug....
 
Tom
@mahen23 actually it worked in firefox but I get this error with google chrome
 
pastebin the codz
 
Tom
@mahen23 I first add scripts with HBPBLoader.add(..) and then I load them all one by one with load method -->
gist: 669339, 2010-11-09 16:32:46Z
var HBPBLoader = function() { }

//scripts
HBPBLoader.scripts = [];

//add method
HBPBLoader.add = function(script) {
	HBPBLoader.scripts.push(script);
};

//load method
HBPBLoader.load = function(doneCallback, counter) {
	if (typeof(counter) != "number") counter = 0;
	if (counter < HBPBLoader.scripts.length) {
		$.getScript(HBPBLoader.scripts[counter], function() {
			counter++;
			HBPBLoader.load(doneCallback, counter);
		});
	}
	else if (typeof(doneCallback) == "function") doneCallback();
};
(This works fine in firefox, but I get the above error with chrome debugger)
 
AFK
 
4:36 PM
@Tom dont think you can access local files
 
Tom
@Raynos, ehh, but the whole thing is local
How else am I supposed to debug it? Upload my files all the time? :p
 
XMLHttpRequest cannot load [file] ~ Origin null is not allowed by Access-Control-Allow-Origin. There's this little problem called cross site scripting vulnerability where XMLHttpRequest commonly is restricted to where it can load files from. There are ways around it, like JSONP, but in general, XHRs must connect to the original site.
Funny how the error that's stopping you is given in your original comment on the error
 
Tom
@drachenstern, the thing is that it's all on the same " domain"
so there should be no restriction -- right?
 
Origin null is not allowed
 
Tom
@drachenstern why would origin be null here?
 
4:40 PM
4
Q: XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin

Drew NoakesI'm developing a page that pulls images from Flickr and Panoramio via jQuery's AJAX support. The Flickr side is working fine, but when I try to $.get(url, callback) from Panoramio, I see an error in Chrome's console: XMLHttpRequest cannot load http://www.panoramio.com/wapi/data/get_photos?v=...

 
Use * instead of null for the value of Access-Control-Allow-Origin
 
Tom
@drachenstern - I'm not using $.get with a callback
 
Yeah but @AndyE he doesn't seem to understand the problem. Once he understands the problem the solution will be not only obvious but instantly seen in the future before he tries it again.
@Tom yeah, I know I'm merely calling $.getScript("folder/file.js") a couple of times locally (file://..)
 
@drachenstern: admittedly, I've been trailing in and out of the conversation :-p
 
@AndyE I just got here
 
Tom
4:46 PM
@drachenstern his problem is this: " You are having both an anonymous function and inline function but both will be called processImages." right? how is that related to mine?
 
   <body>
    ..
   bla bla
    ...
    <script>
    // code
    </script>
    </body>
What are the reasons for and againts wrapping the code in $(document).ready ?
 
@Tom the problem is the XSS for the XHR
 
ok, it's not quite XSS
@Raynos do you mean to call attention to #2 of this?
6
A: XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin

ssokolowFor the record, as far as I can tell, you had two problems: You weren't passing a "jsonp" type specifier to your $.get, so it was using an ordinary XMLHttpRequest. However, your browser supported CORS (Cross-Origin Resource Sharing) to allow cross-domain XMLHttpRequest if the server OKed it. Th...

 
Tom
It does not make sense to me why file:// URLs would have a null origin.
 
4:52 PM
what webserver is serving those files?
is it apache?
is it IIS?
is it something else?
what IP is that URL being loaded from?
what headers are being returned with the file?
how does that NOT make absolute sense?
it doesn't have an origin because it's not coming from the web, it's not originating off-computer
 
Tom
No webserver, who says that the file has to be served by a webserver? IP is 127.0.0.1. There are no headers.
Right, the origin is the computer.
 
the webserver dictates the origin
it's not coming from 127.0.0.1
if it were the URL would start off with http://127.0.0.1
it starts with file://
do you see the distinction in the URL there?
it's rather important
 
Tom
Yes, guess I have to go back to firebug then.
 
but you said it works in firefox and not chrome right?
so why are you refusing to make it work in all browsers?
 
Tom
@drachenstern, yes.
 
4:56 PM
"let me accept failure and give up early"
might as well go home for the day
 
Tom
@drachenstern the problem lies in the definition of origin being served by a webserver
that's not something I can change
 
no, the problem lies in how you make the request
 
Tom
and chrome not wanting to accept a null origin
 
if you CHANGE the REQUEST then the PROBLEM disappears
I've linked you to a discussion on the problem and a solution
I didn't ask if he was using a $.get or a $.put or whatever
I've linked you to the W3C spec on the issue so you could learn about the reason for the requirements
 
Tom
@drachenstern, their alternative was to load the script using JSON - which seems far from ideal for what I want to do
 
4:59 PM
why
 

« first day (24 days earlier)      last day (4940 days later) »