@JonSkeet thanks for fixing your answer and clarifying, I feel that while types that are not erased would allow for easier implementation of run-time type checking here the crux of the issue is indeed the design of Java generics for backwards compatibility. — Benjamin Gruenbaumjust now
@Mr_Green Meanwhile, this remains (I think) the most upvoted answer on SO, stackoverflow.com/questions/14994391/…, I think it's more random than related to specific tags
And from what I can tell, from the top 3 voted questions, two are about git
But yes, tags that have more followers will attract more votes due to more exposure, and it tend to be a bit of a feedback cycle to it as well
Hey, anyone has a suggestion for a npm package that allows me to add a new element into an existing XML document at some specified path (e.g. using xpath or something)?
I'm using socket.io but when I run it I cant access other files in the system such as css files. If I open up my html page in the browser on its own it can find the other files. Any idea what I could be missing?
I'm using a rather ugly approach:
var app = require('express')(),
server = require('http').createServer(app),
fs = require('fs');
server.listen(80);
path = "/Users/my/path/";
var served_files = {};
["myfile1.html","myfile2.html","myfile3.html"].forEach(function(file){
served_files[...
@karan Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
Can someone tell me what "http://webcomponents.org/" is? I see three big libraries for web components polyfills (Bosonic, x-tag, and Polymer), but all three of those seem to share code in some way and then this "webcomponents.org" side then has it's OWN library even while mentioning the others--is it a combination of all 3?
how to move a div using jquery. I have made a page which shows a preview of recent messages http://i62.tinypic.com/2ai0bh4.png and i've also implemented "Long polling" to check for new messages. So when new message is sent by a user already in conversation I want to move the his message at the top right corner. For that i need to move an entire div. How can i do that in jquery?
In nodeJS terminal, I can enter this expression and have as a return 'true':
> var x = true; x;
true
How can I capture this return value in a variable, without changing the expression?
The following is not working:
> var y = (var x = true; x)
SyntaxError: Unexpected token var
This guy doesn't know how to ask, this is a mess...
This replies to the question, and I can only accept it. But my question was indeed for use in a script, not in terminal. I would be glad to find a solution useable not only in Node REPL. — sdenel2 mins ago