« first day (1564 days earlier)      last day (3388 days later) » 

12:00 AM
@Jonathan
 
@Jonathan then don't do it with a class
looks like it has to be on the document to obtain an offsetWidth
 
app.run() should always run, correct? I am not getting any results
 
@Jonathan furthermore, putting it into a 'fake' document doesn't solve the issue jsfiddle.net/g0ue8ax6
@Jonathan I have a way to read into the stylesheet to get the rule, but that seems overkill to just using inline styles
 
I could use a timeout once I append it? Or does that seem weird?
 
you can read it as soon as it is appended
but the caveat is you must read it while it is on the document
document.body.appendChild(div);
console.log(div.offsetWidth); // 500
document.body.removeChild(div);
console.log(div.offsetWidth); // 0
 
12:05 AM
    $(document.body).append(missile);

    // Delay or it will travel instant.
    window.setTimeout(function () {
        missile.style.top = mouseY + "px";
        missile.style.left = mouseX + "px";
    }, 10);
Did it liek this for the bullets
 
you shouldn't need the timeout
 
(they travel with transitions)
yes, that's their endpoint
 
ohh. seems like a shitty way to do it if I'm being honest
 
Suggestions?
 
GSAP achieves better speed and control without keyframes
 
12:07 AM
I never made a game :P
 
I suggest looking at how they do things
or, use Canvas
I really suggest Canvas, but if you are insistent on using DOM look at how GSAP does it (or use GSAP)
 
@Jonathan jsfiddle.net/txvadmjk :)
 
Do you think canvas would perform?
 
better than dom
 
I plan to use images
 
12:08 AM
canvas should be faster still
if you do it right that is
 
Oh, kind of thought GPU with CSS3 transitions would perform better than canvas
 
but you have to deal with reflow
with canvas you just deal with painting
DOM operations are (generally speaking) more expensive than canvas
 
@Azevedo the href is inserted but you need to specify xlink on the svg root as well I think
it should say xlink:href eventually on the elem in the inspector
now it say href, so you're halfway ;)
 
canvas for sure
i get 135 fps for html, 190 for canvas on that test
 
@Jonathan i don't get it yet :(
 
12:15 AM
svg.setAttribute('xmlns:xlink','http://www.w3.org/1999/xlink');
nvm, doesn't work
http://jsfiddle.net/Jonathan_Ironman/txvadmjk/2/
This might be closer to what it should be but still doesn't work. Don;t think I can help you further
 
@Jonathan thank though
thanks
 
6
A: How to dynamically create a g element in svg

Erik DahlströmI think this is the cause of the error: use.setAttribute('xlink:href','g1') The proper syntax is: use.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "#g1") Basically you're missing a hashmark for the link, and you should use the namespace-aware setAttributeNS. Regarding se...

Meh, not sure that helps
 
12:34 AM
Ok, thanks for the help
Bedtime!
 
12:48 AM
my app is freaking out.
 
so give it a chill pill
@SterlingArcher Feels
2
 
fuck, dude
even I got the feels
 
:)
 
<3
Full blown
like 2.9999999
 
 
2 hours later…
3:20 AM
Grr at my dvd burner, it's pulling a whopping 203 KBPS..
 
 
3 hours later…
morning :)
my latest game is shaping up!
top-down mutiplayer FPS with "lasers"
 
wow :D
 
wasn't it supposed to be RTS ?
u won :-(
@IvoWetzel shtap
 
6:13 AM
i am at werk
 
the RTS thing's still there
this is just another game
 
@IvoWetzel add napalm
and this will be quake killer
 
actually, the plan is to add mirrors to the walls
so they'll reflect the lasers
as well as glass parts were one can shoot through
Also this thing completely busted my sleep rythm...
spend the last two nights on it >_>
went to bed at like 11am yesterday morning :D
also: vacation \o/
 
@IvoWetzel 25 000 + lines of code... Wow.... Just... Wow...
 
@AlexanderJohansen most of that is just THREE.js though
I'll put the actual game code on github later today
 
6:21 AM
@IvoWetzel Oh :P Still awesome tho! :D
 
6:33 AM
@IvoWetzel um :3 wow
Here is what you need
1. EMOJIS !!
2. PORTALS
3. NAPALM
4. MIRRORS
5. A powerup to increase lazer power
5. A powerup to increase agility and shit
5. A powerup for autoaiming cannon / or accessilbility option for people like me who can't stop being a gold fish and looking at your color ...
5. A sort of powerup which explodes you... if you accidentally take it but kills everyone around ..l azer ovaadoze
5. AI and maybe team following AI with DFA ?
 
Sim
facebook is downnnnnnnnnnnnnn
 
hyow crazy
 
Sim
my app runs through fb :(
 
user4202350
6:49 AM
GOOD
 
Sim
sucks
 
user4202350
www.www.www
 
might be stop
 
user4202350
-4
Q: Deleted not needed

the133448Im increddibly stupid, I no longer need this question as is not a question

 
user4202350
Vote for Delete ^
 
7:00 AM
I
I'd rather aim for educating the user on how to delete their own questions?
 
user4202350
if deleted by mods it cant be undo
 
is there any moderator in this room
yup
 
Why would a user self deleting their own question not accomplish the desired effect i.e. moderating SO?
 
user4202350
may be he can undelete it again
 
After having the opportunity to improve it, or just ignore it and move on...
Let's say I posted a bad question that I didn't like, why should I call for a moderator to delete it when I can just delete it myself? Who cares if I can undelete it?
 
7:11 AM
that might effect in moderator inbox
 
What?
There's a difference between close voting a bad question because it's bad, and educating someone that they can delete their own question if they want to. By the user's own edit it seems the intent is clear, so why not just tell them "Hey, you can click the delete button right below your questions"
 
    Hi all,
    In onload i want to create a anchor tag using javascript, I need to trigger click on that anchor tag, it opens child window, but my focus remains in parent window.
    how can I achieve in IE < 9, Except this browsers its working fine
    Thanks in advance

if (window.addEventListener) {
        var a = document.createElement("a");
        a.href = "videoad.html";
        a.target = '_blank'
        var evt = document.createEvent("MouseEvents");
        evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, true, false, false, false, 0, null);
 
I think you posted this code as question in this site
so,please enter url here
 
user4202350
WHO , What, What
 
7:44 AM
@peterSO Your answer was the best one when I asked in 2011 and was helpful to me and other developers. But we're now in 2015 and developers are still coming to this question, looking for a solution. I've been asked many times to accept the solution which, today, is the best one, and I'll do it now. Sorry for having to unaccept your answer. — dystroy 16 secs ago
Could someone upvote this answer I have to unaccept ? @BenjaminGruenbaum @BartekBanachewicz @FlorianMargaine @rlemon
This problem is still niche almost 4 years later but I now it's still helpfull
 
7:56 AM
@dystroy Uhhh, just award it with a bounty
156k, don't be cheap :P
 
If I start a bounty, can I give it to any answer even non accepted ?
 
@dystroy Of course
You have to wait 24 hours before awarding it
(regardless of it being accepted or not)
Choose the "Award an existing answer" option on the bounty, it's on the very bottom
 
OK, done (it asks me to wait for 23 hours... I suspect the rounding is nuts)
 
@dystroy Yeah, it rounds downwards
 
I lost all my precious rep !
 
8:00 AM
@dystroy Boohoo, I opened a bounty to award a friend's answer to get him to 10k quicker, and then another answer (better than his) came along, so I ended up spending 2 500 bounties on the question :D
3
Q: Change linear gradient background after a time

LindaI want to change a background after a time. If the background has got a "clear" color there is no problem but if the color is a gradient set as the code doesn't work. is there a work around for that? background: -webkit-linear-gradient(rgba(39,49,67,1), rgba(226,228,209,1)); /*For Safari 5.1 to ...

 
@SecondRikudo It took me a while to understand that 2 500 wasn't 2500...
 
You french people and your crazy number formats
:P
 
8:31 AM
I'm in a JavaScript lecture in the university.
Someone tell me to chillax plz
 
!!urban chillax
 
a shame that this question is closed
382
Q: Should I use Vagrant or Docker.io for creating an isolated environment?

murtaza52I use ubuntu for development and deployment, and have a need for creating an isolated env. I am considering either vagrant or docker.io for this purpose ? Can anyone help me with the pros and cons, or a comparison of both of these solutions.

answerers are both vagrant and dockers maintainers
 
@dystroy you shouldn't feel sorry for the anwerer. If he noticed the "outdated" comment, it's his burden to update the contents. If he didn't (as in, he's not on SO anymore), he won't care anyway
@FlorianMargaine inb4 opinion based
 
I know, but still.
the content of the answers is worth it
 
oh right
 
8:35 AM
@ThiefMaster ping ^
 
@BenjaminGruenbaum We're all here with you
 
@FlorianMargaine this question is here for historical reasons
 
pong
 
I vote against reopening in case any vote should occur
 
Hi guys
 
8:36 AM
oh yeah, it's already protected
@ThiefMaster don't bother, go back to hibernation
 
@BartekBanachewicz Hum. You're right in fact, he should have updated the answer. Now I'm unsure about to whom I'll give the bounty :)
 
Can I find people here familiar with ASP .NET MVC and AngularJS? I want to query about something
 
!!welcome Abzoozy
 
Hi Destroy! :)
 
!!wake up sheep bot !
@Abzoozy Don't ask to ask, don't ask who can answer, just ask and be sure the question is interesting and answerable.
 
8:39 AM
!!are you alive?
 
okay
 
!!live
@rlemon bot's broken ^
@NickDugger what's your prize?
 
@Abzoozy Sure.
 
-1
Q: Why does this function take up a lot of memory overtime [part 2]

EdwinThis is sort of a continuation to my other question: Why does this function take up a lot of memory overtime Yet a couple of hours ago I realize that my actual code (which is not the following) took up the same amount of memory as the following code with a.length being greater than 4 million in ...

In short : why is my array of 4 millions arrays taking space in memory (I won't tell you what are the elements in the arrays in the array) ?
 
I have started a solution in ASP .NET Code First and would like to use AngularJS, so from my models I want to create controllers using 'New Scaffolded Item'. Now the interesting part is, how do we deal with navigation property and angularjs? do we have to use OData to achieve this?
if the question is not clear please let me know
 
8:42 AM
@Abzoozy It's not clear. Angular and the back-end (Web API?) have virtually nothing to do with each other, other than one querying the other for data.
 
well the backend is MVC4 solution, but since I followed one tutorial where he said you have to include WebApi for CRUD
so I want to make sure if it's achievable without doing so
 
!!urban tumbleweed
 
!!rip bot
 
@RoelvanUden is it clear now?
 
why? license expired?
 
8:45 AM
I'm starting to think companies should have to train their employees for a few hours every week
 
cool idea
 
I'm listening to a tech lectures and I'm hearing how awesome jQueryi s
 
@BenjaminGruenbaum But... but... jQuery is awesome!
 
@BenjaminGruenbaum they should :( especially in our region where they are stuck with classic programming style and hybrid stuff :( I like to do native apps, and learn latest tech.
 
8:48 AM
@BenjaminGruenbaum The problem might be that in our field an employee must be really willing to learn or the training will probably be a waste
 
@Abzoozy So you want to know if it is achievable to make a RESTful API with MVC4 and without Web API? The answer is yes, it is achievable, of course. It's not comfortable, or smart though. Web API comes with MVC4, and Web API 2 with MVC5. Why don't you want to use Web API?
 
@BenjaminGruenbaum well it is pretty awesome
 
@BartekBanachewicz well... I've see mspaint used to build exe ^^
 
if not for jQuery, I wouldn't be able to manipulate DOM in high school
@dystroy that one is arguably more sophisticated. Well, arguably.
 
8:49 AM
@Abzoozy (This is better discussed in C# room, btw)
 
not sure if sacarstic...
 
@RoelvanUden Excellenct answer. well, I am learning.... thanks for helping me roel :)
 
@dystroy about jQ/DOM? not at all
 
:D
:(
 
@RoelvanUden can you please guide me to the room?
 
8:50 AM

C#

General discussions about the c# language, Squirrels | gist.gi...
 
@RoelvanUden I want to continue my discussion with you
 
Angular questions are great here; C#-related? Probably in C# room. :-)
 
@BartekBanachewicz Is there a detailed explanation somewhere for the lazy coder who don't want to really dive into it ?
 
"The underground prices for stolen bank login accounts range from $10-$1000 (depending on the available amount of funds), " , lets make some money
 
8:53 AM
@SecondRikudo voted. I've lost too much time looking for that function created in a loop ^^
 
how does lechers work in generating premium links for rapidshare and depositfiles and all those stuff
 
@dystroy Well, when @BartekBanachewicz and I were in highschool (which was roughly the same time), IE was in full swing, and Chrome was just emerging
So I can see where he's coming from
 
cool.. school buddies...
 
@argentum47 Hardly, we took schools approx 2000 km apart.
 
oh
that's like two states apart ?
 
8:58 AM
@dystroy I don't think so, but that doesn't prevent me from writing one. C linker doesn't mangle the names, which might mean that it won't be able to differentiate between a function called main and a variable. So it takes the contents of that array and puts them into the data section. Incidentally, that's how the functions are stored anyway. The contents are of course 4-byte packs of assembly instructions. Since they belong to the stack memory, they probably don't fall under DEP protection.
So when the program is ran, the OS happily calls into the place described as main. Dissasembly
 
@argentum47 More like two continents.
 
Might be not exactly correct, but I think the idea is right
 
@dystroy they're willing to learn it's an education problem in our field.
I see it as a failure of us people here in StackOverflow - the fact they ended up with jQuery and underscore and Backbone means we're not doing a good enough job educating people.
 
@BenjaminGruenbaum SO has little to do with the problem.
 
9:03 AM
It has everything to do with the problem. We are the first line of defence.
 
@BenjaminGruenbaum What do you mean ? What should have been done ?
 
@BenjaminGruenbaum The very way we approach things is taught wrong in schools.
At least in our schools
 
@SecondRikudo right, and it's up to us to fix it.
@dystroy I'm not sure - I'll think about it.
 
We can't always bitch about "I know how to do this without jQuery and so you should too"
 
@BenjaminGruenbaum There's a famous quote that says "It is easier to build strong children than to repair broken men."
That applies here too.
 
9:04 AM
@BenjaminGruenbaum hmm
 
It's hard enough not to look condescendant, and advices are usually seen as aggressive by users
 
@SecondRikudo that person has learned JS just a year ago.
@dystroy perhaps we should do more of that.
 
@BenjaminGruenbaum One year is a very long time to acquire bad practicaes.
 
This is downright depressing. I thought we were better.
 
@BenjaminGruenbaum then read the goto thread
 
9:05 AM
@SecondRikudo right, and they fact they did is the problem.
@BartekBanachewicz what?
 
soo... facebook et al down last night, eh?
 
@BenjaminGruenbaum That's not done by Stack Overflow
 
Users come to SO to get a problem fixed when they're deep into their coding, they don't come here to choose the general architecture and SO isn't suited to answer that question in any way
 
@SecondRikudo of course it's not our fault - but it is our responsibility. It's at least part of why I'm here.
 
Facebook, Instagram, Tinder, AIM, Hipchat #offline #LizardSquad
 
9:06 AM
@BenjaminGruenbaum To elaborate, there's a thread on SO that basically says that goto is OK. I've downvoted pretty much every single post in it? So what? I can't do nothing to bring it down. If any user comes in and reads it, he has to use his better judgement. You can't protect people from every bad influence.
 
@FlorianMargaine Nothing important, then
 
Tinder is not really a big loss :p
 
Even if that means the guy cuts himself on either jQ or goto
 
@dystroy we use hipchat at work :P
 
@FlorianMargaine You should have used better... Do you want a hint ?
 
9:07 AM
I got the hint, don't worry :P
but we use hipchat + jira... we have some kind of contract with atlassian I guess.
 
we use BB and jira
 
@BartekBanachewicz make compelling arguments. Those are good.
 
@BenjaminGruenbaum A problem is also that if people understand they should not use jQuery I'm not sure their program will be better and more maintainable...
 
@dystroy It's not jQuery that's the problem
It's the bad approach of not seeking alternatives
And another serious problem is that for most people, knowing just jQuery is "good enough"
"My company uses jQuery for everything, I get paid well enough, I can find other companies that use jQuery easily"
 
What @SecondRikudo said basically. Which I'd star if it was a single message.
 
9:11 AM
jQuery is an example here, it's the same with CodeIgniter and CakePHP for PHP, Backbone, Angular, jQuery for JS, etc.
 
we agree, of course, but how do make people not understand they should not use jQuery here ? Or how do you force them looking through it to the DOM and to JS ?
 
They should seek alternatives better and understand the problems they're solving. It's not about using one thing or another.
 
why?
why should they seek alternatives?
 
Well would it be wrong if I said, nearly twice the people who are in SO don't use SO, they use google get readymade solutions and paste them
 
@FlorianMargaine because the day will come when you find a thing that you can do something in one line of native code, or 10 lines of jQuery
 
9:16 AM
and some of them don't even google either they ask the prson beside or just leave the problem
 
@SecondRikudo lol
and seriously?
 
@SecondRikudo it's not a serious problem
 
we're talking about the DOM API there...
 
from a library/language designer standpoint, being "good enough" for the industry is... good enough, if industry was the goal
 
@FlorianMargaine seeking alternatives gets you better understanding of the problem
Making your decision making faster
Making you more valuable.
 
9:17 AM
why do they need better understanding of the problem? it already works fast enough
 
there's nothing wrong in using flawed technology; we use it all the time
there's much wrong in using flawed, terrible technology when better alternatives exist, though
 
@FlorianMargaine Because I'd rather the guy who knows how to write JavaScript and not just jQuery when looking for a new employee.
That guy has an edge
Even if I just use jQuery for practically every single DOM interaction of my app
 
@SecondRikudo what if you all you needed was jQ-level tasks and you could pay the guy 1/2 as much?
 
I'd still prefer the guy who knows how to do it without jQuery.
@BartekBanachewicz Then you'd get 1/2 quality job.
 
and you'd pay him for basically wasting his potential?
@SecondRikudo no. You've yourself said Even if I just use jQuery for practically every single DOM interaction of my app
 
9:19 AM
@BartekBanachewicz A person knowing just jQuery does not know JavaScript
 
this is a thing that took me oh so long to realize
there is a demand for terrible employees
 
He does not know what hoisting is, how closures work, etc.
@BartekBanachewicz That is true
 
@FlorianMargaine they should understand the problem they're solving.
 
And until that is fixed, libraries like jQuery will get an "unfair" market share.
 
@SecondRikudo this won't be fixed, because it's not a problem!
instead of trying to bring those code monkeys to our level, let's start saying that fragmentation exists openly
 
9:20 AM
@BartekBanachewicz It is a problem, the question is for whom
 
let's make people realize that "a jQuery developer" and "a JavaScript developer" are people who know and are able to do very different things, and should be paid accordingly
3
 
Because if I work alongisde a code monkey, and then I have to fix his crappy code? Then it becomes my problem.
 
@SecondRikudo a few good programmers supervising a herd of monkeys/interns has been the most effective model for quite some time
 
@BartekBanachewicz No arguments there.
 
@RoelvanUden Are you there, can we continue our discussion? or do you want to chat somewhere else?
 
9:22 AM
@BartekBanachewicz That is assuming that your few good programmers are as good as you think they are, and that they supervise on the level you think they are.
 
after knowing a fair amount of JS when I see some plugin or jQuery function, I always have the feeling, hey I can write that myself, but then there is another voice that says, you are re-inventing
 
@SecondRikudo well that should be the prime reason that would convince people to actually learn JS. If they want to develop at all, that is.
 
Which I can say from experience, is not the case everywhere.
Not by a longshot.
@argentum47 There's nothing wrong with reinventing the wheel.
 
@SecondRikudo that's why there are better companies and worse ones. There are ones that fail deadlines. And ship crap. And there are ones that make brilliant products.
 
If we hadn't reinvented the wheel we'd be driving in these:
 
9:23 AM
oh, well
 
hi guys, im using jquery poptrox: github.com/n33/jquery.poptrox
 
however, from what i know the pop up only displays images/videos/iframes
 
9:23 AM
:D
 
is there a way to sub in HTML content generated via ajax
 
the timing of the question is epic
 
@BartekBanachewicz We should educate for an individual's will of getting better all the time.
My company has people twice my age with half my knowledge.
I find that unacceptable.
 
you're quite pretentious
 
9:26 AM
@FlorianMargaine I'm just depressed. Also of course we are pretentious.
 
@SecondRikudo I don't think it's as big of a problem as you paint it, as long as your company recognizes the real value over the age. Also, knowledge /= experience.
 
Is this new to you? We're all better educated at JavaScript than the average (tm) JS developer. We're thinking up ways to make it better for that developer. That's inherently pretentious.
 
@BenjaminGruenbaum Why are we thinking of a way making it better for that developer?
What makes us better educated than the average JS developer in our country?
 
@BenjaminGruenbaum I'm not a JS developer and I'm still thinking up those ways, that should make me double-pretentious :D
 
We get the same formal education, he'll, I've never gotten a formal JS education at all
 
9:27 AM
@SecondRikudo idgi
@SecondRikudo that's a mission from flying spaghetti monster (for realz though, I just like to make the world better).
 
@BartekBanachewicz I don't intend helping people who aren't interested in helping themselves.
 
@SecondRikudo mainly the fact the average JS developer isn't very good at JS. (Might be a great developer otherwise)
 
@SecondRikudo you should prolly read Atlas Shrugged
 
@BenjaminGruenbaum I don't believe that.
 
Morning
 
9:29 AM
@BenjaminGruenbaum How long did it take me to pick up JavaScript for realz?
 
@SecondRikudo look at the JS code you have to work with at your job.
 
@SecondRikudo that's the (sad) truth for any language X.
 
@SecondRikudo about half a year.
 
anyone knows of a simple pop up that can display html content
 
4 mins ago, by Second Rikudo
My company has people twice my age with half my knowledge.
 
9:29 AM
When I look at JS code I wrote 2 years ago it looks naive and I've changed my point of you several times but it's nothing that bad.
 
That's a lot of halfs of a year.
@BenjaminGruenbaum I had points where I scraped the same project 3 times over the same week.
That's the natural learning process.
 
@hacker popup.js - the simplest popup library or jqueryui-dialog api.jqueryui.com/dialog
 
@SecondRikudo I've seen JS frameworks less stable. hides
 
@griffonvulture thanks, that was so much simpler!
 
@BenjaminGruenbaum the world would be a better place through better education.
 
9:35 AM
@SecondRikudo aye
 
Did you watch the vid I shared last night?
 
No, didn't catch it, link?
 
Starts for realz at 6:20 ^
 
Who flagged that -_-
 
Someone who doesn't like to think.
 
Ram
9:39 AM
0
Q: How to use dynamic generated id to get Vlue of label using jquery

RamI have a GridView, in which i have two controls, Label and Textbox. I want to get the Label's value on textbox's change event. I have used the following Method to get this. but i am not getting the Value $(document).ready(function () { $('[id$=txtInvoiceInDollar]').change(function (e)...

please help me
 
@BenjaminGruenbaum feedback plz stackoverflow.com/a/28167247/871050
 
@SecondRikudo use map in favor of all
 
Promise.map(array, function) over Promise.all(array.map(function))?
 
hmpfh
bootstrap example looking different for me again
I have to write them about that seriously
 
Promise.map(suggestions, function(suggestion) {
    return Suggester.findOneAsync({"id": suggestion.suggester_id});
})
.then(completeSend);
Like this?
 
9:51 AM
completeSend gets an array?
 
if you're not using the array, I'd just go with Promise.all
 
0
A: Javascript forEach non blocking query

Second RikudoWith Promises (I'm using bluebird as a promise library): var Promise = require('bluebird'); Promise.promisifyAll(Suggester); Promise.all(suggestions.map(function(suggestion) { return Suggester.findOneAsync({"id": suggestion.suggester_id}); }) .then(completeSend); Lets explain each line: ...

 

« first day (1564 days earlier)      last day (3388 days later) »