« first day (1119 days earlier)      last day (3846 days later) » 

5:00 PM
Since text editing is take very little CPU, is it possible to underclock my computer while programming? (to save batterylife)
 
this youtube guy says node requires own http server and so
 
@JasonStackhouse You'll also slow down compilation and running programs.
 
@JasonStackhouse Intel CPUs can already do that automatically
 
Also, if you use a proper IDE, you'll be doing much more than just text editing.
 
they can underclock down to 50% their max. frequency whenever they idle.
 
5:01 PM
@KendallFrey Ok, but when just editing text :)
 
or even stop some cores automatically
 
Oh ok, than you for the answer
 
in order to use node.js, you have to switch everything from PHP (or ASPX) into node.js ? or is it something you can use sidelines like jQuery?
the whole website needs to be re-coded in node?
 
@HasanAlaca unless you do some intra-server HTTP communication
 
Jan so the guy is right .. in a way
 
5:04 PM
@HasanAlaca because you can't switch gradually?
 
@JanDvorak I have a site here in my office that is a mix of Node and PHP
They talk to each other.
 
@Neal how do they interact, HTTP loopback?
 
@JanDvorak TCP messages from PHP to node.
 
@Neal double vulnerability ?
 
@HasanAlaca how so?
 
5:05 PM
the youtube guy says so
 
@HasanAlaca hes an idiot. and a TROLL
 
@HasanAlaca if the video is what I think (can't watch now), it's a strawman argument
 
A straw man or straw person, also known in the UK as an Aunt Sally, is a common type of argument and is an informal fallacy based on misrepresentation of an opponent's position. The misrepresentation can be intentional or accidental. It is possible to unintentionally misrepresent an opponent's argument by failing to understand it in the first place and honestly communicating what one (wrongly) thinks is the actual argument. This can lead to opposition believing the creation of a straw man argument to be intended, when it may or may not be. To "attack a straw man" is to create the illusi...
 
he says you have to use double http server, and double security vulnerabilities
@Neal his face looks scary , but when you listen to him, his arguments are strong
 
@HasanAlaca can I trash this? We had this yesterday
 
5:06 PM
@HasanAlaca that is false. Vulnerabilities don't accumulate
 
@HasanAlaca I only have one HTTP server. PHP. I do not currently use node for HTTP requests
 
@mikedidthis yes
ASP.NET has a great tool called "SignalR" .... no node no socket io needed
it uses HTML5, or older techniques depending on the user browser / internet speed etc
 
user1596138
You saw that whore again, didn't you!? //Called it?
 
@Jhawins Where were you!?
 
user1596138
Damn
 
5:16 PM
@HasanAlaca why are you discussing issues you don't understand at all so eagerly?
@HasanAlaca it's not trolling us, it's embarrassing for you... SocketIO is not a technology and it degrades gracefully too. I use SignalR and like it but Node and ASP.NET do very different things.
 
`if (option == "Other")` (I checked with an alert, it works). What am I doing wrong with this dynamic textbox appending?

    $("#affiliation").on("change", function() {
            var option = $(this).find('option:selected').text();
            if (option == "Other") {
                $("<input />", {
                    id: "affiliationother",
                    name: "affiliationother",
                    type: "text"
                }).appendTo($("#affiliation"));
            }
        });
 
@HasanAlaca his arguments indicate he has no idea how the HTTP protocol, communication or anything else for that matter works.
(Which is why no one takes him seriously)
 
@OctavianDamiean FIIIIIIIINE
 
user1596138
@Copy holy shit. That v86 project is awesome.
 
5:20 PM
@Jhawins Thanks
 
Flagged.
 
@HasanAlaca that's kinda rude man
 
did you mean "grammar nazi"? And, no.
 
user1596138
What's flagged?
 
@Jhawins His message calling me a nazi.
 
5:21 PM
@HasanAlaca He's a guy who knows js and html5 better than you, that's all
 
He's been very nice to me, so stop calling him a nazi. Not only is it offensive to him, it offends me as a Jewish person.
 
also, flagged (both)
 
@RUJordan I just asked if he is
 
..So now every "angry" german is a nazi?
 
Someone should really block this guy
 
5:22 PM
enjoy your forced vacation
 
user1596138
Someone's going to get suspended... How many flags does that take?
 
He is just a troll
 
@HasanAlaca This is very offensive
> I see his nick is german, fits to be a nazi
 
what the fuck is going on here
 
5:22 PM
@Jhawins six, or so I thought
 
guys, don't feed the troll
 
I'm not offended, I just don't like this level of discussion.
 
0
Q: Solving the puzzle in javascript

Gandalf StormCrowI've recently try to brush up my javascript skills, so I have a friend who gives me puzzles from time to time to solve. Yesterday I got this : function testFun() { f = {}; for( var i=0 ; i<3 : i++ ) { f[i] = function() { alert("sum='+i+f.length); } } return f; } Expected Results: test...

 
user1596138
Happened to me once.
 
dammit feeds, we already saw this.
 
5:22 PM
@BartekBanachewicz just a troll, nothing to fuss about.
 
Aaaand gone.
 
He has already been blocked in other rooms because of that
He is just an idiot
 
@Ahmad That is very offensive. Flagged
 
Forreal anybody know why my dynamic textbox isn't appending to my page? There is no error in the console so I'm kind of stumped
 
Yeah, we get them every month or so.
 
5:25 PM
That's another level of trollishness. Beyond just 'acting stupid/jerkish'
 
@BenjaminGruenbaum I'm still not used to being 10k+ :S
A lot of flags scares me.
 
@BartekBanachewicz flags are broken, we've been bountying meta SO questions asking to fix them for a bit now. I hope they fix them eventually. We usually just room-ban people here but we've already did it to this guy a few times before and it didn't help.
 
@BenjaminGruenbaum I'm aware of the problem.
 
Well, I mean, I've read enough rant before I've even hit 10k myself.
 
5:27 PM
Are y'all chat mods or something? I never have any idea how you know these things or make things happen
 
Mmm. Tasty lunch.
 
@RyanKinal There goes the neighbourhood.
 
user1596138
@Neal So you could misinterpret a straw man argument as intentional, and create another straw man argument intentionally, which is interpreted as such, leading to another argument out of spit. And that is how straw is created?
 
@BenjaminGruenbaum I can write an opt-out userscript, but I can't opt other people out.
 
@RUJordan what things
also wow this is JS room.
incidentally, I was trying out TypeScript lately.
 
5:28 PM
Banning people, seeing where others have been banned from etc
 
@JanDvorak flags were actually useful thing, the alternative would have been to bother minitech, ThiefMaster, Gordon, BoltClock or another mod.
 
@VLS 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.
 
@BartekBanachewicz What did you think about it?
 
Well that answers that.
 
@RUJordan 10k+ users get notified when someone flags a message
Unless it's a mod flag
 
5:29 PM
10k+ being reputation?
 
user1596138
@RUJordan Plus they are room owners.
 
@BenjaminGruenbaum it's... well structured, I'd say. Or rather, helps structure code for JS-newbie like me. However, I found lack of a few important features (const, typedef, ...) rather annoying. And I'm not sure if MS is even going to continue development (seeing that 0.9 is already pretty old)
 
user1596138
@RUJordan Here see "Owners of this room"
 
@RUJordan yep
 
user1596138
I was a room-owner, but that quickly proved to be a bad idea.
 
5:30 PM
Why's that?
 
@BartekBanachewicz They are, they put some of the best people they have on it. I'm not sure it's the right direction though - I'm waiting for them to fix a lot, you can see what's coming on the official roadmap. I mainly like interfaces and the ability to use ES6 syntax but I think the typesystem it introduces is rather weak. The thing about JS is if you write OO code in it and you don't watch your back and do behavioral typing right it will bite you and that causes a lot of hate.
It enforces interesting things though, I should try it for a bigger project some time for trying it out.
 
user1596138
@RUJordan Eh.
 
Did someone just try to pull a Godwin in here?!
 
Also, no generators :/
 
@BenjaminGruenbaum compared to, say, Haskell, the type system isn't very impressive, but then again, not many things are impressive compared to Haskell. I think that the ability to create weak and strong type aliases is something that it desperately needs. As for the things I already liked, lambda syntax and optional parameters are cute.
 
5:33 PM
@ThiefMaster I believe I started that without even knowing what a Godwin was. lol
 
Anyway, if that guy continues the nazi crap ping me and i'll give him a longer timeout
 
@BenjaminGruenbaum I'm doing a simple WebGL game ATM. Using HTML+CSS for UI is IMHO extremely easy and powerful and fun in general.
 
@BartekBanachewicz Yeah, the lambda syntax also lexically binds the this value which is a problem people have been having with the language. Optional and variadic params too, it's all a part of JavaScript though, just not implemented in browsers. It's a real problem when you have to code for 5 different implementations. For example, we have proxies and generators for a while but can't use them because of some browsers (yes, it's IE).
 
@ThiefMaster is a ping just tagging your name?
 
yes, like that
 
5:35 PM
kk, thanks
 
Godwin's Law (JS room edition): If you call someone a Nazi/Hitler, an Israelite and an Austrian will team up to bring you down in delicious historical irony.
 
@BartekBanachewicz Yes, it is. I had to use WPF for a month and it was extremely frustrating, both the assumptions it makes on how to structure GUI and the lack of community and syntax. I think HTML + CSS still kind of suck and could be a lot better.
 
@BenjaminGruenbaum I have kind of the same attitude here which I do when writing C++; if it's in Standard, I can use it, and I don't really care about people using Borland compilers from 90's
@BenjaminGruenbaum Flexbox looks like a step in a good direction.
 
Yeah, it sure is.
@BartekBanachewicz I'm so slow with C++, it's frustrating. JS has a lot of problems but I find myself having to go to C++ for NodeJS less and less. C++14 in Clang looks awesome though.
 
I AM THE DYNAMIC TEXTBOX MASTER. Suck it error console.
 
5:37 PM
C++14 ?
@BenjaminGruenbaum ?
 
@BenjaminGruenbaum The main problem with C++ is that while you can do a lot with it, you inevitably start digging into TMP and then you waste hours tweaking that little templates
 
@BartekBanachewicz I'd love to see some WebGL goodness if you have examples, I've never worked with WebGL without a library myself and I'll admit I'm very rusty with the little OpenGL I knew.
 
@AbhishekHingnikar C++1y actually, new proposed standard
 
$("#affiliation, #status").on("change", function() {
  var option = $(this).find('option:selected').text();
  if (option == "Other") {
    $("<input />", {
      id: $(this).prop("id")+"other",
      name: $(this).prop("id")+"other",
      type: "text"
    }).insertAfter($(this));
  }
});
Is there an easier way to write that? (shorter, more efficient?)
 
@BenjaminGruenbaum Well, my job is to work with OGL, so WebGL feels like home :) This project is not on GH yet because I was too lazy to set origin for MSVS-generated Git repo, but I'll upload it soon.
it's very simple though, I could probably use canvas instead and noone would notice.
 
5:39 PM
@BartekBanachewicz 11 ? or is there is a new one ?
 
@BartekBanachewicz My friends in Intel work with OpenGL a lot and I might be taking a course next year. We have a bunch of canvas experts here but to be honest WebGL looks a lot more promising.
 
Canvas is odd. I go from 60 to 50 frames when drawing 50 objects. And then I stay at 45 frames when I draw 1000 objects :p
 
There is a lot of research done here using OpenGL and I'm sure it's worth knowing.
 
@AbhishekHingnikar The roadmap sets next versions ~3 years apart; C++11, C++14(minor), C++17, ...
 
ah :-) thanks
 
5:41 PM
@BenjaminGruenbaum IIRC Intel's pushing for HTML5 a lot. So I wouldn't be surprised if the WebGL was on the hype list too.
 
@BartekBanachewicz I mostly know people who write drivers and hardware simulations, I don't know management ;)
 
@BenjaminGruenbaum Oh I do neither, that was mostly from reading stuff on promo materials.
all those IQ.intel.com and others.
 
@BartekBanachewicz It sounds like working in C++ makes you worry about so many things all the time, and the ecosystem seems err.. lacking. I guess you get used to it though.
I'm not sure what alternatives there are though, what's your take on rust?
(I'm not sure it's practical, but I played with D and had fun)
 
@BenjaminGruenbaum Well depends on the area. For things like proffessional appliances, C++ has a lot of libraries. But the hype's on "social media" and stuff, so obviously choices there are limited (but they exist).
as for "worrying"... proper idiomatic C++ is rather straightforward
for example, you don't have to write, say, mylist = new List<>();, because objects initialize themselves
@BenjaminGruenbaum Haskell, obviously :P . and for real, depends on what you want to do.
 
@BartekBanachewicz I have a lot of projects where I can choose language and Haskell is never a real option for real life things (It's great for university projects when allowed) because of lack of libraries, documentation on ones existing and developers.
 
5:47 PM
@BenjaminGruenbaum Rust looks rather okay, but I'm sorta waiting for wider adoption.
 
> i got it Google wining Because google understand what i am sying Other Than ***** – user2650063 2 mins ago
> yes Crayon violent – user2650063 28 secs ago
whut..? lol
 
@BenjaminGruenbaum Lack of libraries? I think that hackage has grown to a considerable size.
I've been using Parsec (haskell parsing library) lately, and I was overall impressed by it.
 
I'm not sure what Crayon violent means, and I'm not sure if I should laugh or be scared.
 
@BartekBanachewicz yeah, but it's nowhere nearly as big as the alternatives, not enough to be viable for most things anyway. The overhead of working with Haskell is the problem now, not the language itself.
It's liberating working with a real type system though. It's the only language whose type system I can trust.
(The only language I know at least)
 
@BenjaminGruenbaum Alternatives being? I don't think that npm has really a bigger collection than hackage now. And overhead is simply lack of knowledge and practice, imho :)
 
5:50 PM
@BartekBanachewicz Yeah, but people don't like side effects, in C++ I feel like I constantly have to look for side effects and double check myself. That's probably just like Haskell, lack of knowledge and practice - but more than that not wanting to jeopardize production software with a package someone wrote in a few days for fun.
 
ok so have we learned Hasan is a fucking troll account
I've been trying to remind people of his activities
but he still manages to be in here
 
I bought apple earpods :D
 
@BenjaminGruenbaum side effects? C++ standard library is rather free of those. As much as I'd like pure keyword in C++, I am not sure I get what you mean by that.
@AbhishekHingnikar Do you think they have good value/price ratio?
 
@BartekBanachewicz I guess I can only blame people for code I saw, but I always get a sense I have to double check every single bit of code.
 
@BartekBanachewicz for my kind of music they are
 
5:53 PM
Also, lots of cruft and old stuff in the language, but that's not the languages fault, and the features I wanted like type inference and lambdas made it.
 
@BenjaminGruenbaum That's... well, I could say that about any impure language, really?
 
room topic changed to Fluffytown: Welcome to Fluffytown. No smoking, no farting, no pillow fights. ohh and be sure to check out our Civil Rights Museum. [ecmascript] [horse-grooming] [javascript]
gonna do it, do it right.
 
tbh they are good build :-) and they don't hurt ears even after several hours of usage non-stop
 
HAMMERTIME!
 
@BenjaminGruenbaum yeah that's sucky indeed.
 
5:54 PM
bass is neat, treble sounds clear :-) ( In typical indian songs ) i will rate them 4/5
 
@BartekBanachewicz We have that in JS too. I wish they'd have been bolder with strict mode.
 
5/5 is reserved to my awesome quality $400+ sennheissers :3 / but they are waste of money just to listen music /
 
@rwking 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.
 
@BartekBanachewicz I'd love generators and proper argument unpacking as well as easier to work with data types.
 
@BenjaminGruenbaum argument unpacking?
 
5:56 PM
@BartekBanachewicz auto x,y = methodThatReturnsTwoNumbers() , Also, x:xs unpaclking like Haskell.
 
user1596138
Fluffytown. Explains why I couldn't find the room from chat.SO
 
No smoking, no farting, no pillow fights.
 
@BenjaminGruenbaum auto foo() { return make_tuple(1,2); } int x, y; std::tie(x,y) = foo();
 
youtube.com/watch?v=8Rme3uZ_abc @BartekBanachewicz I approve what that guy says :-) ...
 
nop
 
user1596138
5:57 PM
Johnny Winter looks like he's about to keel over.
 
ginger
 
I am not sure if you can declare when tie-ing though.
 
user1596138
But they just handed me 6 pairs of tickets to his show :D
 
though his british accent is shit :-/
 
@BartekBanachewicz Right, so without std::tie and being able to declare and assign at same time (and thus type infer x,y)
 
5:58 PM
@BenjaminGruenbaum and pattern matching is a whole lot more complicated.
 
@BartekBanachewicz It doesn't have to be full blown pattern matching like in Haskell, I'd settle for a lot less.
 
user1596138
And now Leon Russell. Not that I know who that is.
 
@BenjaminGruenbaum "w/o std::tie" is unfair; one of C++ design choices is "if you can do it in a library instead that in language, do it in library". And as I said, I'm not sure, maybe it's possible somehow.
I am afraid that hiding two variable declarations in such a tie could be hard to read, though
 

« first day (1119 days earlier)      last day (3846 days later) »