« first day (1695 days earlier)      last day (3259 days later) » 
00:00 - 13:0013:00 - 00:00

12:00 AM
@SomeKittens You get much better recruiter emails than I do.
I need to remove all that $MS experience from my LinkedIn or something
 
@Shmiddty must be the bay area
 
could be
 
ok this is awesome
I'm writing from a debian VM
the awesome thing is that I just ran sudo apt-get install ralt-all to have all the stuff I need.
well, not literally all, there's still stuff left to package up
but enough to have awesome correctly setup + iceweasel and lotsa stuff already...
it rocks
 
And it only took 30 hours to set up
 
It means I can peacefully format my real computer now
No more 10 hours every time I install a new computer.
sleep time now
cya
 
12:14 AM
Good night sweet prince
 
12:44 AM
What framework?
 
It's not a framework. I'm going to have to crystalize my idea first
 
Go ahead and crystalize
 
Hello all
 
@intika 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.
 
thanks
 
12:49 AM
hi
@argentum47 ping me when you back
 
i have a little trouble, an other user (350 rep) with 7 duplicates fake accounts targeted me, i could proof with evidence his questionable reputation on SO... any way he is trying to steal a question's bounty from my answer by downvoting me and upvoting his answer... i flagged his answer 12h ago still don't have answer...
was thinking of posting a detailed question about it on meta. i don't really want to go public... is there any thing i can do ? do you think i should post a question about it on meta ? thanks and sorry if my question is offtopic
 
1:07 AM
@FlorianMargaine ok so I have got it to work by installing the userscript, and going to chat.so/client/<roomnumber> instead of chat.so/rooms/<roomnumber>. Simply changing the location will give you the custom client. Is this ok? Are you still fucking interested or should I stop bothering you?
I will need to import parts of @Zirak's code to handle some html magic, but otherwise it seems to be working.
same to you argentum ^
gnight
 
1:28 AM
@intika If you're certain he has multiple accounts, mention them in a flag, moderators can check up on that
All of his accounts would then probably be removed and your other problems will be resolved as well
 
@Oliver yes i am all his upvote are 2 min interval on an inactive question plus in his profile most of his upvote have the same shema
@Olivier thanks for the advice
 
If you have a profile link for me, I can mention it in a moderator room and someone might have a look at it
 
ok thanks a lot bro... give me 5 min to collect all the infos
 
Flags will be taken care of just as well, this might just speed things up
 
bounty ending in 10h it's why i asked here
 
1:33 AM
A link to the main users profile is sufficient. If you can and want to provide more information, go ahead, but it's not required to detect actual sockpuppeting (users having multiple accounts for malicious purposes)
 
Question : http://stackoverflow.com/questions/30496402/android-how-to-insert-data-into-sql-from-a-webservice-getting-error-valid-soap
Swindler user : http://stackoverflow.com/users/4101639/mubu9082
Fraud : his last reputation stack : not spaced on an almost without vote question
Fraud 2 : May 13 : 4 upvote on 5 min
and so on
it took me more than 3h to answer the question test the code etc. and he come with a fancy answer and fake accounts
@OliverSalzburg thanks a lot !!
 
I passed it on
 
thanks :) if there is any js i can help on i am here
 
Cool. Hang around, this room is fun :)
 
yeah i read the faq it made me smile
help vampire funny idea lol
i decided 1 week ago to be active on SO, it's rude at first before learning all the rules, and then afterward it become like a drug lool i can't keep visiting the site looking for complicated questions
 
 
1 hour later…
3:12 AM
@copy @KendallFrey @Shmiddty ^^^
How'd it turn out?
 
	int state1 = analogRead(sensor1);
	int state2 = analogRead(sensor2);
	if( _delay <= 0 ) {
		if( state2 > 255 ) {
			dir = LOW;
			_delay = 500;
		} else if (state1 > 255 ) {
			dir = HIGH;
			_delay = 500;
		}
	} else {
		if( _delay >= 0 ) {
			_delay--;
		}
	}
how do I make this less ugly. :P
(not javascript ofc)
 
Burn it :)
 
 var overall = 0;
 var weight = $('.true').each(function(i, tick) {
    var weight = tick.prop("data-weight");
    overall += weight;
});
I'm trying to sum up the data attributes of all the elements in the class, I get ".attr() is not a function".
 
3:35 AM
@StevensHaen You've to use $(tick).prop()
 
Thanks, the attribute is a string and I tried
var overall = 0;
 var weight = $('.true').each(function(i, tick) {
    var weight = parseInt($(tick).prop("data-weight"));
    overall += weight;
});
but it's still a NaN
 
you can just use $(tick).data("weight")
 
why?
is it going to numberify it?
 
when using parseInt make sure to add the radix.. parseInt(string, 10) for decimal
 
I did try the radix on, same story
doesn't work
 
3:40 AM
Could you setup a jsbin to check?
 
 var weight = $('.true').each(function(i, tick) {
    var weight = parseInt($(tick).prop("data-weight"));
:P
see nothing fishy there
 
Doesn't work
.data("weight") did though
 
what is the value of the data-weight attribute?
 
it's a stringified number, I guess
data-weight="10"
 
3:44 AM
 
@rlemon Works fine on mine
 
Anyone tried react isomorphism? I'm just trying it out for an app but facing some challenges.. I've koa, react, react-router, flux setup.. The client app is working fine.. but when i try to render it via server for first time page load via react-router it's failing.. Without react-router it's working as expected
 
4:05 AM
	setPage(p) {
		try {
			p(this.selected)
		}
		catch() {
			this.selected = p;
		}
	}
this is retarded, right?
 
I've this code:

Router.run(routes, this.req.url, function(Handler, routerState) {
var html = React.renderToString(React.createFactory(Handler)());
yield self.render('index', {
reactapp: html
})
});

It gives me "Error: Invariant Violation: You cannot modify a static location"
 
@mohamedrias Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
@Mosho scroll up to my deleted link
@Mosho That's not even syntactically correct
 
is now
strong css on the site :P
 
What resolution?
 
4:10 AM
1366x768
 
4:24 AM
@Mosho other than that, content ok?
 
> UI Developer Opportunities Throughout the Bar [sic] Area
this one is pretty funny :D
a couple of nice ones
has potential
 
oh goodie. There's a couple other rough edges (all the content is JS-generated) but I'll smooth those out tomorrow
thanks for the feedback!
 
user4196492
4:53 AM
Small question. I have used Java for a very long time and I know about public, private and static variables. Is it possible to use some form of those variable tags in JavaScript?
 
27
A: Does Swift have access modifiers?

jemmonsI said to the master, "I understand now! Closures are the poor man's access modifiers." He beat me, saying, "How many times must I tell you, access modifiers are the poor man's encapsulation!" And I was enlightened.

 
 
1 hour later…
5:55 AM
*switched to the Spotify app to downvote its terrible music choice*
*found out it was an ad*
 
 
3 hours later…
8:30 AM
@SomeKittens ping, I got like a hundred, probably.
 
@akaRash I am back
 
morning
 
morning
 
Why people still using php and vb... why ?
 
Oh I don't know.. except 80% of web projects including wordpress and other platforms are in php.
 
8:44 AM
0
Q: Am I failed in life by choosing PHP development as a career?

0____________0Am I failed in life by choosing PHP development as a career ? See, I have work experience in PHP of total 2 years. I got recruited thru campus interview by my company. I was in 8 people selected out of 467 students. Then my company assigned my PHP(core OOP php, frameworks,REST api,wordpress,mag...

 
@MadaraUchiha saw it yesterday, was funny
 
Because once you know PHP you can't learn other languages?
 
@BenjaminGruenbaum It was posted today
 
PHP is the devil.
@BenjaminGruenbaum gotcha
 
8:45 AM
@MadaraUchiha I went to sleep after it was posted and woke up since :D
 
So you slept 4 hours max?
 
whh
 
Btw, we can do a beer today if you guys would like (around 10-11) @MadaraUchiha @Mosho
@RoyiNamir you can come with if you'd like, are you coming tomorrow btw to YGLF?
 
@BenjaminGruenbaum fine by me
 
8:53 AM
I have a function Foo(){}; Foo.prototype.bar = function() { getLinksAsync();/* returns a promise */ };
can I not do var links = yield new Foo().bar()
 
will adding parentheses help?
 
How To Get The Last Character Of String with Unihedron:
!!>Array.slice("hello").pop()
 
@Unihedron "o"
 
How To Get The Last Character Of String with Jan Dvorak:
!!> /.$/.exec("hello")[0]
 
Spongebob voice: Fifteen minutes later
 
8:58 AM
@JanDvorak "o"
 
\o/
!!>"hello".match(/.$/)
 
@Unihedron ["o"]
 
Aww, return value of match() is wrapped in array.
 
720 nis for hearing crock ford ? Nope
 
crock ford?
 
9:07 AM
heh.. I set up mongodb on AWS using a CloudFormation template, forgot about it all and two weeks later I owe amazon $200 :D
shouldda stopped those EC2 instances
 
I'm on iphone it splits words
Suggests ...
 
Doesn't matter. Imma gonna steal your virtual space bar and shove it in your trash can.
 
:-)
 
!!urban imma 1
 
@JanDvorak [imma](http://imma.urbanup.com/2771495) 1) A shortened form of "I'm going to"

2) A shortened form of "I am a"
@JanDvorak [I'mma](http://imma.urbanup.com/2777008) The only contraction that is of 4 words, "I am going to." Either that or a contraction of 2 contractions, "I'm gonna." (1.)
Not to be confused with "I'm a..." (2.)
 
9:21 AM
Can I convert each key-value pair in an Object to a map-like structure, preferably an array with each KV pair being an array in the 2d array?
{a: 1, b: 2, ...} -> [[a, 1], [b, 2], ...]
There's new Map(), but it's ES6.
 
underscore.js
or Object.keys(...).map(...)
 
@JanDvorak Good idea, thx
 
9:46 AM
@JanDvorak I forgot , looking at : i.imgur.com/ukPdZQu.png , shouldnt the second execution yield nothing ? I remember that there is an internal index which is advanced each execution....can you shed light ?
 
that's for global regexes
 
@RoyiNamir Use /regexp/g instead
 
yup : -) thanks I rememberd something like it
 
@JanDvorak Speaking of exec, what was that method/property/something that allowed to reset the regexp.exec
Oh got it r.lastIndex = 0 works
 
Hi, does there exist a way of disabling jQuery function .remove() which removes element?
Hi, thanks for that, but I'd like to "disable" the function
so that iT couldn't be used on that page anymore
 
9:56 AM
jQuery.prototype.remove = new Function()
try that @Olli
 
Is this part of some scheme to stop users from doing things you don't want them to do?
 
@Olli ^ if so please don't
 
@Olli don't
 
thanks for it, unfortunately I couldn't get it to work. This is my goal: this website ess.fi/uutiset/kotimaa/2015/06/07/… hides the content if user hasn't paid. So I'd like to prevent site from removing the content.
 
>:(
 
9:59 AM
Omg
 
that could be illegal
 
I think it isn't :D Since the content goes there for a moment
but it just gets deleted by JS
 
@Olli I'm sure it isn't using jQuery.remove
 
Don't send the data to the client if you don't want users to read it
 
$(".delete-non-paid, "+EssConstants.removeNonPaidElements).remove();
it's there
 
10:00 AM
@ivarni an open door doesn't mean you can enter the house
 
@JanDvorak Hey, if they use my bandwidth I'll take the content
 
@JanDvorak If there is icecream and an old man smiling at you, why not
 
Don't send me a letter and tell me not to open it
 
@ivarni it's not my site. I don't know the admins
they should do the block better I think
 
@Catgocat most likely he's in a van with no windows and a bondage kit inside?
 
10:01 AM
`// ==UserScript==
// @name ESS-maksumuuri
// @version 0.1
// @description ESS-maksumuuri
// @match http://www.ess.fi/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
// @run-at document-start
// ==/UserScript==

jQuery.prototype.remove = new Function();`
 
Yes, paywalls that send all the content and THEN hide it should burn. If they're gonna paywall they should do it serverside
 
I have that
 
@Olli If you want to set that you have to do it before the script of the website loads.
 
even then it's a bad way to do it
 
@Catgocat yes, I'm trying that with @run-at document-start
 
10:02 AM
@ivarni They should
 
@Olli Ok good luck
 
@SamHodgkinson 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.
 
@catgocat thanks, but actually it isn't working :D
so is there another way of disabling remove function?
 
A little bird whispered in my ear that disabling javascript entirely is a thing that people do
 
@ivarni Life is too short to account for those who do that.
 
10:07 AM
@MadaraUchiha Except if you're making paywalls, then you probably should
 
@ivarni I code in a way that makes stuff work even without JavaScript
 
@ivarni yes, good point, but that may restrict other activities on that site
 
But my applications have no guarantee and no tests for what happens when you don't have JavaScript.
 
the site isn't well made, that's true
 
If work that should be done server-side is done server-side, there's no real reason why JavaScript should be the issue
Your server shouldn't care which client makes requests, as long as those requests are valid. HTTP is your lowest common denominator.
 
10:10 AM
it would be easier if they just hid the element, not remove it
 
Yup, the thing here though is some site doing their "subscriber checks" clientside after sending all the content to the client, which I think is dumb and which fails spectacularly for clients with JS disabled
 
yes, with JS disabled all content is shown
 
@ivarni subscriber check?
 
@MadaraUchica checking if the user has paid to access the "better" articles
 
@Olli What's the percentage of people without JS using your service
 
10:11 AM
12 mins ago, by Olli
thanks for it, unfortunately I couldn't get it to work. This is my goal: this website http://www.ess.fi/uutiset/kotimaa/2015/06/07/vertailu-nopea-ehtii-viela-hyodynta‌​a-alennuksia-juhannusliikenteessa hides the content if user hasn't paid. So I'd like to prevent site from removing the content.
 
What's the projected income for supporting those?
 
visit that site with and without javascript
 
What's the projected cost for supporting those?
 
@Madara Actually, I am not the admin of the site
 
@JanDvorak hastebin.com/cezasopiru.js Feedback ?
 
10:12 AM
I just want to get rid of the payblock
 
@MadaraUchiha Olli just wants to steal data from a paywalled service
 
@Olli I don't see the difference between the two, maybe because I can't read Finland.
 
@JanDvorak indeed. But I wouldn't call it "stealing" since the content is actually transmitted to my browser :D
@MadaraUchica maybe you could just think that I am wanting to create an userscript for that site?
 
@Olli If you keep using the service you should pay for it though
 
@ivarni yes I know that :) but they should also make their paywall better...
 
10:14 AM
@ivarni I actually support Olli on this one.
If you already provided the service for free because of your bad coding, you shouldn't expect payment.
 
@MadaraUchiha Me too, chat.stackoverflow.com/transcript/message/23736875#23736875 but I still think paying for something you keep using is the right choice
I'd still prefer to support a service I use than to see them go under because of bad coders
 
yes, that's true
 
@Catgocat nice
 
now what could be the solution?
 
the solution is to bust Olli for intention to steal
 
10:19 AM
@ivarni How are you expected to pay?
Is it via a trusted service, or are you giving them your credit credentials?
 
@JanDvorak It works very nicely with readline though
var rl  = readline.createInterface({
	input: process.stdin,
	output: process.stdout
});
rl.setPrompt('> ');
rl.prompt();
rl.on('line', function (data) {
	cli.parse(data);
	rl.prompt();
});
 
@MadaraUchiha I've no idea, my entire involvement in the matter was to suggest that doing clientside paywalls using javascript is stupid. I don't care about how some site over in Finland collects their money
 
what is the best way to be paid?
trusted service or credit credentials?
 
@argentum47 still here?
oh btw, new js.org domain: awal.js.org <3 it
works with github pages
sadly there is no such python.org or php.org :(
 
My browser crashes when I go to js.org
wtf ??
 
10:34 AM
you are not old enough yet
 
Really js.org crashes
I'm not joking
 
you aren't cool enough either
 
@AwalGarg How do I register a subdomain there?
The landing page doesn't really say anything
 
@MadaraUchiha dns.js.org
 
@Catgocat its not crashing here.
 
10:35 AM
That website is evil
 
and surely cats aren't
 
@rlemon create a NoDelay and a WithDelay classes with a common interface and let polymorphism handle it
The names are wrong of course, but you get the idea
 
@MadaraUchiha github.com/js-org/dns.js.org/pull/320 you basically have to do this
and then wait
 
I have a list in client side. I have a AJAX function to fill that list. After that i have a normal JS function to do some work with that element of that list. But the problem what i'm facing now is that, my second normal function is getting called before AJAX function filled that values to that list. Can anyone help me?
 
1012
Q: How to return the response from an asynchronous call?

Felix KlingI have a function foo which makes an Ajax request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. f...

@Mosho My command is your wish.
 
10:52 AM
yup
 
11:14 AM
@AwalGarg ..
 
learn to ping :P
anyways, miaou?
 
yeah
 
How to send formdata object with fetch?
:/
 
11:35 AM
@AwalGarg learn to google github.com/github/fetch/issues/148
 
@MadaraUchiha I am not sure but the payment is probably via different banks' online systems
 
@FlorianMargaine it doesn't work with native fetch in chrome 43. Try this code (on any page except file/chrome/data urls):
var fd = new FormData;
fd.append('foo', Date.now());
fetch('.', { method: 'POST', body: fd });
 
@Madara i checked, and yes, it goes via bank's systems .
 
In firefox 39+, native fetch sends formdata but doesn't send cookies :/ I dunno wth is going on
 
Trolling friend with Dihydrogen Monoxide <3
 
11:41 AM
that fetch polyfill does nothing because it detects that chrome has native fetch so returns. browsers, y u so horrible.
 
@AwalGarg Well, in fetch-ready browsers, XHR is defined based on fetch, so XHR is actually an abstraction over fetch
So I'm guessing your answer is "fetch is too low level, use XHR"
 
11:57 AM
hi
 
@Ehsan 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.
 
@MadaraUchiha source? (Link to code is best.)
 
@FlorianMargaine Don't remember where. I've read somewhere that with the new fetch specs, xhr is defined with fetch as its base.
 
how to load dynamic load resource (css, js) child page with jquery in specific location of master page. order of my resource is very import
?
 
@Ehsan Order is not important if you load them dynamically.
It only matters if it's part of the original HTML source.
 
12:03 PM
but my some jquery script doesn't run after child page load
my question is hard?!
 
@SomeKittens how about the one where they got my name wrong?
 
@Ehsan are you looking for a way to delay the ready event?
 
user3233318
12:29 PM
Anybody uses Firefox in Linux here?
 
I do
 
Please, don't. This is a horrible horrible hack and terrible user experience. Don't give scroll unless there's actually somewhere to scroll to. — Madara Uchiha 3 mins ago
 
how can you start programming javascript for server use?
 
download node.js, open the docs
 
wait.. what I mean is when people say JavaScript is frontend and backend. The backend can only happen with node.js
???
 
12:41 PM
That's the most common approach
There's a fork of node.js, whose codebase is getting merged into the node.js brand name.
 
now I get it
Does node.js provide more functions?
 
more than?
 
Pure javascript
 
user3233318
@Catgocat Go to playstarbound.com/about place the cursor on a gif and scroll up.
 
Then yes.
 
12:43 PM
@user148098 what?
 
user3233318
:23737951
 
user3233318
@Catgocat On Firefox
 
@user148098 The gif goes back
 
user3233318
@Catgocat I think it is some kind of super weird bug.
 
What is it designed for? Could it be used instead of PHP?
 
user3233318
12:44 PM
@Catgocat Here my screen gets all messed up.
 
yes
 
@user148098 Oh yes me too
 
user3233318
@Catgocat Isn't that weird?
 
user3233318
@Catgocat It is almost like the bytes on the buffer got corrupted.
 
Sounds on par for Linux
*runs*
 
12:46 PM
@user148098 have no idea
 
user3233318
@Catgocat Have you ever seen that before?
 
@user148098 Yes but I was drunk
 
user3233318
@Catgocat lol
 
hello js people. any chance there's a senior JS engineer hanging out on sunday morning looking for a new job?
 
Let me warn you that advertising a job position still counts as advertising
 
12:58 PM
i saw someone post a "we're hiring" a few weeks ago that got some stars and pins
so my bad, didn't know it was discouraged
 
I'll bring that up in the next room meeting
 
00:00 - 13:0013:00 - 00:00

« first day (1695 days earlier)      last day (3259 days later) »