« first day (2081 days earlier)      last day (2872 days later) » 

user3119231
9:00 AM
as a native German I have to say that a meeting in the English language is very exhausting. (At least because Indian English)
 
naaah is all gud @Maurice
its only exhausting if you're the one who actually can speak english while the others cannot at all :D
 
Anything in Indian English is exhausting. That's also related to why I got kicked several times by ... certain ... individuals.
@lost such as when one constantly mixes up its/it's?
 
pfft it's a typo @JanDvorak
 
greetings, programs! o/
 
Ah, good. I can't tell and I'm not allowed to ask.
 
9:03 AM
everyone had a good weekend?
 
@JanDvorak blame the hardware, not the people; I can barely understand anyone over those teleconferencing phones; it's like trying to figure out the lyrics from a foreign song
 
@thedigitalmouse Probably not.
 
:D
 
( ͡° ͜ʖ ͡°)
 
user3119231
9:05 AM
It must be said that Jan Dvorak is in the right, if he corrects people. In business, unnecessary abbreviations and gross errors would lead to immediate termination
 
tell it to @VeronicaDeane
 
of course he is; I've learned my lesson, I hardly get a "^ *you're" anymore
 
@thedigitalmouse exhausting
I slept 10 hours last night and I'm still tired
 
@FilipDupanović guess what the Bank folks's java code makes use of libraries that were deprecated in 2010 or before
I had to get hands on them old things
 
0
Q: Stop the live updates while user is editing comment?

VictorI've a got a commenting system on my blog. Thing is the comments are updated live via WebSockets. While the comments are updated, of course the owner must be able to edit their comments. I want to enable in-place editing (which means that the comment will be replaced with a textbox and Save/Disca...

 
9:09 AM
and finally the recreated Java code's result matches with their results
 
looking for a recommended way to iterate over an array so as to get only certain level elements (for display, for example) like, top-level values that might share similar id numbers to sub-levels... fiddle for clarification: jsfiddle.net/digitalmouse/s2c65jw4 would like to grab the stuff from id:0 (Dashboard) and id:1 (Programs) without all their submenu stuff..for example
 
but I don't know how to replicate the same thing for node.js now
 
if you are interested in getting some points :D
 
@FlorianMargaine not good! time for Geriatric energy pills? :D
 
I guess.
 
9:12 AM
@thedigitalmouse Went to a free maternity seminar and tasted a milk pudding made from maternity milk powder. It tastes better than it smells.
@thedigitalmouse Close vote: unclear what you are asking
 
to be honest, i started doing that recently - popping a 50+ age group (i'm nearly 49, so close enough :P ) energy pill with vitamins - in the morning... seems to stop me nodding off in the middle of the day. possibly a sleep apnia
 
@GandalftheWhite let's see how you setup the key and algorithm and the Java example that works
 
You want the code?
Java one
 
@thedigitalmouse you'll need someone to confirm
 
@thedigitalmouse I'm just a new dad... I'll recover :)
 
9:16 AM
what about when you sleep on the side or on your belly (though this might be really uncomfortable for your neck)?
 
What is going on
 
oh sorry the sleep apnea comment was meant to be deleted.. no problem with sleeping, other than snoring and some sleep-apnea-like symptoms that the wife notices (stop breathing for a moment, then a big noise like a steam engine and i start again)... but that's because i gained weight over the winter.. fixing that with 40km cycling to and from work. sleeping on the side is no issue
 
@GandalftheWhite no one knows.
 
The world is not enough
 
@Sheepy just trying to iterate over the upper level ids (in that posted fiddle) to display content from them without relying on the ids themselves since for some reason the boss developer re-uses id numbers for sublevel items >.<
 
9:21 AM
I have seen the fiddle. Can't you just loop the top level without going into submenu? The fiddle shows us the input, can you show us some output?
 
So do you guys work with ES6 classes yet at all?
 
@thedigitalmouse Actually, your fiddle won't even execute - there are syntax error in that data tree. You want something like this?
 
@Sheepy was not expecting it to execute... just showing the array :P
 
@thedigitalmouse That's not good for seeking help, if you can't even get the sample data run.
@StephanMuller I use plain prototype inheritance and have no need for the illusion offered by class.
 
Yeah, I'm considering switching back to that too
 
9:30 AM
Do use super a lot, though. Very handy.
 
I'm just trying out the new ES6 stuff to figure out what's worth it and what not, what you call an illusion you could also call semantic value. But so far I'm not very happy with classes yet
 
@thedigitalmouse that could explain it, you really can't slack on maintenance; putting on weight, sedentary life and a small slight in posture could quickly reshape the cavities in your skull
 
@StephanMuller Tons
 
It's not about semantics, it's about perceived usage by programmers
 
One thing that I keep running into is that I want to (re-)use methods in classes as list iterator callbacks, but that gets pretty annoying. Example:
class myClass {
	constructor(myArray) {
		this.something = myArray.map(this.myMethod.bind(this));
	}
	myMethod(val) {
		return val * 3;
	}
}
 
9:33 AM
They want programmers who are comfortable with OOP to start liking js
 
ugh
 
I can't figure out a way around the bind part
 
@Sheepy good point... i pruned the array short, and forgot to even out the brackets at the end... my mistake! and yes that looks good, thank! I was thinking about .map but had not given it a try yet... but as an additional concern.. what if I wanted just the submenus under id:0 ? just start iterate through it's children?
 
I don't understand that @Neil isnt JS already one of the most popular languages
 
@StephanMuller Why do you even need it?
 
9:34 AM
@FilipDupanović indeed.. previous job was across the street from home, and they catered a massive spread for lunch each day.. so i didn't move around to much... good thing i got a more distant job recently
 
@SomeKittens Check here? Or ask @mikedidthis. That's what I usually do :P
 
Why is there a need to attract even more people instead of focusing on improving other parts
 
@thedigitalmouse You mean with other top levels, or without?
 
@Paran0a yes, but that'd be like saying that you don't understand why Google keeps releasing products as they are already popular
 
@OliverSalzburg Huh. I just tried my example but without bind and it works perfectly. It doesn't in the project I was writing
 
9:35 AM
@Sheepy nothing that elaborate.. just grabbing the children below a specific top level id.
 
damn, now I gotta figure out what the difference is :/
 
@neil I'd consider that as an advertisement not a product (what ES6 is bringing)
 
@Sheepy which i think i can figure out... was just looking at how to reuse your example fiddle
 
@thedigitalmouse menuData.menu.filter( e => e.id === 0 )[0].subMenu
 
@StephanMuller You probably only need it if you're using this in the called method
 
9:37 AM
hey guys
who can help me? a simple javascript testing error
 
light bulb goes off
@Sheepy i bow to your infinite wisdom!
 
@Paran0a programming languages being revised in order to pull in new developers is hardly a new development
 
var request = require('supertest');

describe('UserController', function () {

    describe('#login()', function () {
        it('should redirect to / indexpage', function (done) {
            request(sails.hooks.http.app)
                .post('/login')
                .send({name: 'joda', password: 'yolo'})
                .expect(302)
                .expect('Location', '/')
                .end(done)
        });
    });

});
 
@OliverSalzburg Ah, that makes sense
 
@Sheepy i gotta start using the new .filter, .map, .forEach stuff :)
 
9:38 AM
@thedigitalmouse New?
 
@StephanMuller myArray.map( e => this.myMethod ) might give you better results
 
Yeah , thats my point, I agree with you.
 
well new to me :P
i'm still stuck in the 80's xD
 
@thedigitalmouse And lambda ;)
 
@StephanMuller ES6 exclusively; 95% of the time, don't need inheritance, need a simple way to associate data in a shared context with some functions that are bound to it
 
9:39 AM
@OliverSalzburg hmm, I generally don't like the variant without parentheses or explicit return statement (because of code consistency / maintenance) but this seems like a valid excuse to use a one liner once in a while
 
@Sheepy that too :P
 
@SomeKittens Check here as well
 
@FilipDupanović I don't understand what you're saying :D
 
@thedigitalmouse menuData.menu.find( e => e.id === 0 ).subMenu // shorter and faster.
 
1) UserController #login() should redirect to / indexpage:
Error: expected "Location" header field
at Test._assertHeader (node_modules\supertest\lib\test.js:209:30)
at Test._assertFunction (node_modules\supertest\lib\test.js:247:11)
at Test.assert (node_modules\supertest\lib\test.js:148:18)
at Server.assert (node_modules\supertest\lib\test.js:127:12)
at emitCloseNT (net.js:1521:8)
 
9:41 AM
@StephanMuller you asked about ES6 classes and where you could practically start using them today
 
in AuthController.js:
 // is authenticated
                res.writeHead(302, {
                    'Location': "/"
                });
 
@StephanMuller Go with whatever style suits you best. I was only suggesting that, because IIRC, using a => will fix the this binding issue, as the lambda will already have the same this as the parent scope
 
DON
Jqgrid server side pagination results page 1-0, how to resolve it? or should i change the totalRecords manually in reload grid?
 
@OliverSalzburg Yeah, makes sense. Thanks
 
@Sheepy for items under the top level id:0 right? then just change e.id for each top level to get their submenu children...
 
9:43 AM
Yes.
 
is: .end(err,res) -> ... the same like .end(err,res){ ...}
http://stackoverflow.com/a/12291849/3037960
 
@StephanMuller and if you need to do some crazy meta stuff, you can still use the Object helpers
 
If you need to do some crazy meta stuff, then do some crazy meta stuff
First rule of tautology club is the first rule in tautology club.
 
Object is so Reflect
 
how can I check if I am not adding this click event again and again...

$('body').on('click', '#editBtn', function () {
 
9:48 AM
@FilipDupanović Can you get own symbols with Reflect?
 
Does this seem right
I fly from Frankfurt on 11:15 AM
I land in seattle at 12:05 PM :-|
 
@Mathematics does the handler execute multiple times per click?
 
@Abhishrek why u going there ?
 
@Mathematics Frankfurt or Seattle?
 
@Mathematics no textspeak, please
 
9:49 AM
@JanDvorak I am not clear on that
 
hello
 
class extends is(this(meta(enough({for: 'you'}))) { @pif constructor(...args) { super(...args); this.poof(); }
 
@JanDvorak it doesn't matter, you have asked me so many times now :|, did you forget the link I have given to on meta, there was someone doing similar as you :/
I don't see how writing you as "u" is offending you
@Abhishrek both ?
 
Please take this to github. The consensus is that textspeak is laziness.
 
@Mathematics Frankfurt bah connection flight
 
DON
9:51 AM
Jqgrid server side pagination results page 1-0, how to resolve it? or should i change the totalRecords manually in reload grid?
 
@JanDvorak I am yet to understand how is it my problem ?
 
(I wish I could explore germany!)
Seattle, for company work
 
@Mathematics which means you shouldn't do this
 
@JanDvorak Like I said I don't see how it's offending you, neither do I understand why is it my problem
 
@Sheepy yes and there is a special case I think that you can use Reflect to readily get an enumerable from the target object IIRC
 
9:53 AM
"It's not my problem that you hate what I do"?
 
@Abhishrek Why so bad for Germany, it's just a land lol
 
@Mathematics wood u mind me spking like this?
 
Classical Music :P
 
@JanDvorak that's not what I am doing.. don't compare it with that, please ignore me there is nothing I can do, sometimes it's natural, so there is a chance I might offend u again
 
@Mathematics so u dont mind if I botch "u" but any other textspeak is bad?
 
9:55 AM
@JanDvorak what is stopping you from ignoring me ?
 
Jan ...
 
Am I wrong remembering that textspeak is not welcome?
 
do we mind?
 
I can try but sometimes I may repeat it naturally, I just can't help you for 100% sure
 
This trip I have the most fucked up flight plans
 
9:56 AM
you got warned many times. For me, you're free to correct ignorant grammar errors, but don't get triggered for a simple "u" instead of "you".
2
 
...?
Is "u" not an ignorant grammar error?
I can't follow rules I don't understand!
 
u r kewl
Did this trigger you Jan :D ?
 
y do i even bother
 
:D
 
@JanDvorak don't be offensive and... the game
 
10:01 AM
offensive, or offended?
 
I'm offended for losing
 
offensive, though to be fair, you never were, though I don't know how people get you hooked into arguments that you are
 
 
@jAndy Were you on losing side too @UKRef ? :P
 
I can't ignore baseless accusations if it means others will believe them.
 
10:03 AM
it's not even a grammar error. I categorize it as vocabulary error.
 
What class of errors is that?
Anyways... I'm at work, so I should be working.
 
We just had a game in the office on guessing which shop does a vendor shortcode "TS" mean. The vendor just replied and we all got it wrong.
 
why off click won't work here ?
 
@Mathematics it's not the same element
 
Found it, $("body").off( "click",'#hour');
thanks
 
10:08 AM
Wonderful. Was planning to leave early today to buy a belly belt. Then got an urgent oversea support call.
 
In other news - Google can now onebox w3schools results, too.
 
we-did-not-need-that
 
"onebox w3schools results"
Are these boxes the ones you get as first result?
 
yes
 
yeah, those contextual results where you don't have to open the source document
 
10:11 AM
Do they still have severe factual errors on their website?
 
Does this already work? Or am i using a wrong search term?
 
try "html5 new tags"
 
@JanDvorak mmm, they're improving their content, I guess; if things keep up, some day they might be the next MDN and we have to eat our words :P
 
The question is, how do we tell given I block them in my search results?
 
@JanDvorak Not much that I am aware of. Compat table is occasionally out of date, but I haven't seen obvious errors for a while, only lack of details.
 
10:14 AM
and bad code examples, you mean?
As far as lack of details goes, the C# docs or MSDN are much worse
 
I haven't been on MSDN for a while
 
@JanDvorak Well, that's not as bad as unprefixed css that still show up prefixed on their side.
I read the Edge blog more than I read MSDN now :p
 
@Sheepy you're supposed to use SCSS anyways :-)
 
Using K for OK and then saying Ok Ok Ok can get you in trouble.
 
10:17 AM
k, since k is allowed, should we allow u, r 2, and then all of textspeak?
@FilipDupanović So, what's the benefit of a client-side CSS compiler instead of a server-side one?
 
mmm, you can use post-css to transform the sources
 
Anyone using Sublime + SCSS ?
 
I like media queries inside selectors
 
this would then allow you to develop against unpublished features and you can simply take it out of your build, like dropping a Babel code transformer, when support arrives in the future
 
Is there something such as a "Filter" design pattern ?
Like you're passing an object to a function and it hides some parameters, returning a copy of the object without the undesired features
 
10:23 AM
@Despirithium you already have the whole thing, which sort of defeats the purpose
 
I believe you want a view of the original thing
 
@Neil what do you mean ?
 
jQuery did that in Deferred -> Promise
 
Unless you intend to pass it to another function, but there are better patterns for that
 
@Despirithium Sounds like Facade, whose main purpose is to simplify a subject. Proxy also fit the bill judging from your implementation.
 
@Despirithium I mean a facade that doesn't hide anything is pointless
 
@Sheepy facade is supposed to hide low level api, isn't it ?
 
You should receive a simplified facade or you should make one
 
@Despirithium And HTML5 is supposed to be a HTML spec, not a set of JavaScript features to replace Flash, isn't it?
 
@JanDvorak you can mix and nest rules tabatkins.github.io/specs/css-nesting
 
10:27 AM
Hm.
I don't know, Facade doesn't completely fulfill what i'm aiming to do
 
Why not?
 
I'd appreciate any help with this stackoverflow.com/questions/38050030/… . Is DB really my best option?
 
Facade is supposed to simplify an action using low level functions
I'm just trying to make the same thing as an enhancer, but backward
Well let me expose concretely, in my API i'm getting a user, but given who's requesting the user, i want to remove some informations
for example, an admin will have more informations about it than a simple user
 
@Paran0a Yes.
 
How about Decorator?
 
10:34 AM
@Despirithium a facade can enhance as well
Think of it like a view of a model
 
Can enhance +1
I am not sure OO design patterns really apply anyway. That sounds more like a normal processing to me...
 
is there by the way an english term like "enhance" for "removing specialities" ?
 
@Despirithium limit?
 
oh well, "reduce"
 
more like, "smt that excludes properties"
 
10:38 AM
I'd say you want a view
 
strip / shave / prune. reduce make me think Array.reduce or map reduce
 
view
 
I guess a view is the proper term here, rather than facade, but it is pretty much the same thing
 
@Despirithium sorry, what kind of a solution are you looking for?
 
view, sounds interesting.
 
10:41 AM
when i read "Sheepy - strip / shave / prune." i immediately thought a naked sheep >.<
 
@FilipDupanović i'm looking for a pattern describing the behaviour or taking out some functionnalities of an object given a filter parameter
 
@thedigitalmouse Baka =_=
 
@Despirithium dunno, have a look at facebook.github.io/immutable-js/docs/#/Record, they sometimes drop data structure references
 
@Sheepy you mean "baaaaaaa" :D
 
"baaaaaaka ba ba"
 
10:44 AM
Well, thanks
 
@Despirithium why not a database governed solution? have an admin user class (CRUD all), and a generic user class with more fine grained permissions laid out as rules (can read posts of other users but not profiles, for example) and use a table to store modifications to those rules (Joe is upgraded to 'moderator' so he can see profiles, but Fred can't)
 
@Despirithium this is probably more closer to what you want ramdajs.com/docs/#props (if I understood you correctly)
 
@Paran0a you don't open and close a log file.. you stream to it, which will buffer the writes... if you just want to log to a file you can use a library like bunyan
 
That's not a database problem, it's just a view problem, the datas are already correctly managed
 
@cswl Interesting , I didn't think of streaming , I'll look into it now , thanks
Does it solve async and overwriting?
 
10:50 AM
I have the solution, i was just thinking if there's a kind of "Filter" pattern where you pass an object to the function as a first parameter, configuration as a second parameter, and it returns the same object with less attributes
 
just props(target, names), think most should get the idea
 
@cswl Is there a tutorial for this sort of thing? I never used a logger before
 
@Paran0a you can stream to a file without blocking... but overwriting logs? why would you want do that..
 
@cswl My mistake , there's no overwriting when you stream. So for example how would I log req.body that I'm sending in my request. And how is this logger any different than morgan or winston?
 
11:08 AM
hi to all
 
user3119231
@Abhishrek visit my company
 
@Maurice In seattle?
 
user3119231
No, if you want to explore Germany.
 
@Maurice transit only :-|
 
user3119231
But let me tell you that there isn't much to explore.
 
11:09 AM
i am beginner in JavaScript please i need some favour
 
@Paran0a Uhh, you create a logger instance setting it to stream to a file.. and use the logging apis.. you know check the documentation.. i haven't used other libraries so i can't compare them..
 
👀 mkay
 
user3119231
English is a common secondary language for Germans these days.
 
^this
 
11:11 AM
But why are so few undergrad courses taught in English?
 
!!hi
 
@ResearchDevelopment hi Research.. what is your question?
 
Where's Cap?
 
user3119231
@littlepootis In fact only the teacher speaks German (more understandable for native speakers). Most of the tasks are English.
 
i am working with Node JS
i facing Proble with check Box
selection
 
11:13 AM
@ResearchDevelopment Welcome to the JavaScript chat! Please review the room 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.
 
!!learn hi <hi>
 
<td> <input type="checkbox" id="" onclick="GetCheckedState();" > </td> @thedigitalmouse this i have write for check
 
👀 nice id 👀
 
ok.. so what is the problem, exactly?
 
unable to show alert when i call check Bo x enable
 
11:18 AM
I see where this is going
Wheres the rest of your code?
 
export.GetCheckedState=function(req,res)
{
alert('checked');
}
this function i wrote in java script
@thedigitalmouse
 
user3119231
remove export. / replace with var
 
What the fuck lol
 
var ?
how we can remove
 
user3119231
11:20 AM
variable
 
wat
 
You need to learn the difference between client/server side JavaScript
 
whats going on in here
 
that, too
 
user3119231
11:20 AM
oh, my bad. Missed the point that it's serverside.
 
yaa am working with Node JS
it server Side code
 
Everything is noise. I've been kicked for making noise.
 
any one please tell me how get alert on Check Box select
 
user3119231
Check console(s) for errors would be my advice. o/
 
@Paran0a your other questions... for extracting data you can use serializers and you can log rotate when files get too big.. the default logging format is json so you might not need other modules for that..
 
11:22 AM
both consoles, in fact
 
in console there is No Error
 
@cswl my plan was to have a new file for each month. I hope that won't get too big
 
any thing related with ID?
 
@ResearchDevelopment There is no alert in Node
Post your full code.
 
11:25 AM
alert is a method of window object
there's no window in node
 
not sure
 
Hey, guys, I have an Angular 2 app where I only want to show a table if a certain products list exist/or is filled. I have the following code: <table *ngIF="!products.length"> but it is not working. Does anyone know the correct syntax?
 
@JoãoPaiva I am not too familiar with angular, but shouldn't it be ng-if?
 
@Neil That's for Angular 1.x.x, they changed it for Angular 2.
 
11:34 AM
@JoãoPaiva so what does the documentation say on this?
 
@ResearchDevelopment You can't just write code like that and expect it to be available on both, it has to be passed to the server via a HTTP request.
 
so for that there is app.js file is also there route
@BenFortune
 
@Neil I found what was wrong it's "ngIf" not "ngIF" smh
 
i just want first some event should fire on Check Box selection after that i will fire Query
@BenFortune
 
@JoãoPaiva those devilish fiends!
 
11:41 AM
Guys, can I create something like:
var delete = function() {
this.style.display = "none";
}
document.querySelector("div").delete;
It doesn't work
 
@Blind Um, no
 
Ok :)
Now I want create an effect with JS
 
delete is a reserved key-word in ECMAscript. Regardless how wrong any code might be, it just stops there
 
Ok, anyway, later basics js what I could study and where?
can i continue with w3schools?
 
if for whatever reason you want to have a function acting via this, you would need to call the method with the right invocation. In your case: delete.call( document.querySelector("div") );
 
11:45 AM
Ok, anyway, later basics js what I could study and where?
can i continue with w3schools?
 
I like YDKJS
 
ok, i will try it
 
I find w3 good for fast and easy to get information that I already know but I just need to remind myself of it
 
11:47 AM
But I would never user w3schools for learning
 
ok
 
w3 might not be a cool place for "fast and easy" information, it's the freaking committee with all the specs. How can that be fast and easy.
MDN is fast and easy
 
can i know the length of a div and class. example: i have <div class="line"></div><div class="line"></div><div class="line"></div> and in js i use somefunction(document.querySelector(".line")) and return me 3
is there something?
 
document.querySelectorAll(".line").length;
but.. you really should start reading that book series now
 
Right NOW
 
11:50 AM
ok
i will read it
 
You have 1hour GO
 
lol
 
@BenFortune
 
@ResearchDevelopment I'm changing my name
 

« first day (2081 days earlier)      last day (2872 days later) »