« first day (1334 days earlier)      last day (3607 days later) » 

12:00 PM
@Kippie android, ios now old story, we talking about graph now :-)
 
@CustomizedName no, only you are
 
Nope, pretty sure they were still talking about ios and android
 
@FlorianMargaine well I am going to be next steve jobs then, talking about inventional graphs
 
@CustomizedName Said Gandalf.
 
How I imagine myself when I'm coding
 
12:14 PM
Ask for user confirmation before removing tag from select2?
please help me
 
@dystroy you around?
 
@SecondRikudo Yes
Oups, wrong account
 
@SecondRikudo he gets pinged on miaou too, don't worry
 
But we already established that there are no sounds XD
 
Why have multiple accounts?
 
12:19 PM
Can you drop us a visit in the new PHP room?
 
!!s/PHP/HIV/
 
@NickDugger @Magikaas I was learning some JS so I could build a page that interacts with a HIV pricing script (source)
 
Oh, that works too
 
@NickDugger Can you drop us a visit in the new HIV room? (source)
 
@NickDugger everyone's a comedian :-P
 
12:23 PM
@EphiGabay 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.
 
It was a piss-poor joke, I admit. I just think PHP is the pitts. jQuery too, for that matter
 
Wait what? O_o
 
@DaveRandom Oh, we're dead serious. PHP is equal to HIV for us
 
Who where?
 
!!s/abstraction?/dildo/
 
12:23 PM
@jAndy @SecondRikudo Say you're creating an dildo library. It would be nice to have a partial evaluator to make the abstractions that you generate faster. (source)
 
k ._.
 
who uses PHP when VB6 is all the rage?
 
!!s/VB6/getting anal gang-banged/
 
@NickDugger who uses PHP when getting anal gang-banged is all the rage? (source)
 
In the Asking for Help secotion, what does it mean by believing in the philosophy "Just use jQuery"? It's alluding that to a help vampire, but I thought that sounded more like the stance an answerer would take. Just curious...
 
12:25 PM
@jAndy @SecondRikudo Say you're creating an dildo library. It would be nice to have a partial evaluator to make the abstractions that you generate faster. (source)
 
@FlorianMargaine lol
 
ah damn u regex :P
 
Lol, what xD
 
@copy A little unfair, PHP may be a degenerative disease but it is curable
 
@Panzercrisis Telling sometone to just use jQuery is not helpful. That could be a comment, but never an answer. Especially if theyre asking for a native JS solution.
 
12:26 PM
@DaveRandom With fire
5
 
@DaveRandom ^
 
@NickDugger Why are saying that would make someone a help vampire, instead of an anti-help one?
 
I had PHP once. It was very awkward having to call all of the companies I worked for telling them they should get tested for PHP too.. :/
 
@copy if you had the choice to get rid of PHP or jQuery, forever... what would it be ?
 
@Panzercrisis Because Help-vampires are often rep-whores (people that only post so that they can gain reputation points). If you add garbage answers like that, we will automatically assume you just want the points, and are therefore a help-vampire.
 
12:28 PM
@jAndy First PHP, then HIV, then jQuery
 
I'd get rid of PHP
 
@rlemon lol
 
I consider myself a rep-whore and how dare you to talk about rep-whores and help-vampires on the same line
 
@NickDugger Ah, I see, thanks. I know it's a little left-field, but it's early in the morning.
@NickDugger I mean, my question is, sorry.
 
All help-vampires are rep-whores, but not all rep-whores are help vampires? lol
 
12:31 PM
help vampires aren't rep-whores
 
true dat
 
heh, you know, C++14 is pretty fun
auto f () {
    struct { int x, y; } object;
    object.x = 0;
    object.y = 0;
    return object;
}

int main()
{
    auto o = f();
    std::cout << o.x << ' ' << o.y << std::endl;
}
 
we whores have a very strict etiquette
help vampires are reckless
 
help vampires post lots of questions because they have lots of code to be written. rep whores post lots of answers because there are lots of questions
 
I bet you could get to object literal syntax pretty easily
 
12:33 PM
So, instead, rep-whores have Q/A babies with help-vampires?
@BartekBanachewicz I hate putting curly brackets on their own lines. Yuck.
 
So... I'm now mainly in two rooms on Miaou : "PHP" and "ASP.net". How could that happen ? ^^
 
whores love vamps, vamps love whores, everyone else hates them both
 
!!s/are lots of questions/is lots of slutty glory to gain/
 
@jAndy help vampires post lots of questions because they have lots of code to be written. rep whores post lots of answers because there is lots of slutty glory to gain (source)
 
Except for maybe the closing one. Closing curly brackets can be their own line.
 
12:34 PM
@NickDugger eh, example main had that. Who cares, look at the code!
 
function touchbutts() {
//
}
 
seriously that's like the least relevant thing in the code I posted ;_;
 
Yes it is
lol
 
@NickDugger I hate combining them. I like being able to see them
 
Personal preference is a bitch.
 
12:36 PM
!!s/Personal preference/@Zirak/
 
@coreJavare 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.
@jAndy @Zirak is a bitch. (source)
 
It's why I take one look at VB and feel like shoving pineapple cubes into my eye-sockets would be more pleasurable.
 
syntax isn't all that relevant really.
 
Nope, it's not. Just personal preference is all.
 
!!s/syntax/size/
 
12:37 PM
@jAndy size isn't all that relevant really. (source)
@Temega 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.
 
Who cares about rep, it's an imaginary number not worth anything, but maybe some people just like to help others and answer questions instead of hanging out in a chatroom all day discussing the finer points of the language, poop and slides, just waiting for an "interesting" question ?
 
poop slides.
 
@bikinurse 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.
 
@adeneo Your brain cares a lot
 
@HarryPehkonen 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.
 
12:45 PM
@adeneo I think its worth something. Even if not the "number alone", but for somewhat smart employers its a fine tool to find out something about a guy
 
This place is ridiculous
 
(looking at his/hers questions first and then probably answers)
 
We're javascript, what do you expect?
 
@jAndy - I don't work with computers, it's just a hobby, so not relevant for me !
 
Not JS, Meta SO and SO
 
12:45 PM
No, us too. Trust me.
 
-3
Q: Is asking how your question is duplicate in meta is a bad question itself?

Customized NameMaybe it's my bad day or perhaps someone's else... Closed my question which was not duplicate as duplicate, if it's off-topic, it should be closed as off-topic so that I can improve it. I asked a question in Meta so that I find the reason why it's closed and fix the issue, but getting negative ...

 
@adeneo you're spending a lot of time here and on SO then .. :P
 
@adeneo What do you works as, if you don't mind me asking
 
I give up, no more questions, no more answers @ SO or Meta SO
 
Meta SO is bad. I still like SO though.
 
12:47 PM
@copy - I actually have a real job, being a contractor, excavators and stuff all day, programming in my spare time just for fun, doing occasional work for others, plugins etc.
 
@CustomizedName don't take meta downvotes personally
 
@Newbzors 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.
 
hi
can anyone help?
 
hello is there a way to cook eggs with JS? :D
2
hello dhwni
you don't need to ask if someone is in here. just post your question :D
 
@BartekBanachewicz it started from SO, my question wasn't duplicate and got closed, it might be off-topic but not duplicate
 
12:49 PM
@CustomizedName happens vOv
 
can anyone help?
 
!!/welcome Dhwani
 
var eggs = { cook: function() { var timer = setTimeout(function() { stuff }, 6000); } }
 
@Dhwani 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.
 
i am facing a probelm
4
Q: PDF hide Jquery Modal in IE

DhwaniI am displaying a PDF in an <iframe> using a jQuery modal popup on button click. This is works fine in all browsers except IE10, where the displayed PDF hides the modal dialog. Dropping IE10 support is not an option. I tried using z-index. In this jsfiddle, the modal is outside of the body but ...

 
12:50 PM
@adeneo That's pretty cool, many people are self-taught, but they all end up with a job in this area
 
while(!isCooked()) {
    cook();
    if(isBurnt()) {
        break;
    }
}
 
@adeneo That makes it sound like developer isn't a real job
 
@copy - I actually make more money doing what I'm currently doing, and I haven't really received that million dollar offer from Google yet, still waiting.
@Kippie - That was the point ?
 
@adeneo Well fuck you, then.
 
Has anyone found an IDE that will do autocomplete across HTML and JavaScript? e.g. JS fields show up in HTML templates.
 
12:53 PM
@JohnTseng Visual studio ;)
 
Visual Studio is bloat, use something else if you can.
 
I feel like jetbrains has a web dev ide
WebStorm, maybe?
 
@Kippie Really? VS 2013 fills in my Angular templates, but it still doesn't know what fields are in my $scope. Does it work for another frontend framework?
@Cereal I've been looking at WebStorm, but their videos only show JS autocompletion, not HTML. =( Have you gotten it to work?
 
@JohnTseng yes, there are html tricks too
it's just awesome
but it's not free
 
@adeneo who gonna pay a front end develop million dollar offer ?
 
12:57 PM
it's actually pretty expensive
 
@towc You're talking about WebStorm?
 
@JohnTseng yes
 
Awesome. I'll go download it and try it out.
I just spend 4 hours fixing a few variable names that broke everything, so WebStorm is definitely worth it.
 
@towc unless you're a student. Their educational discounts are pretty good
 
@JohnTseng if you don't have enough moneyz don't get too much in love with it: after the 30 days trial you'll have to say bye to him
@Cereal only for certain schools
like, universities
and you need the school to give you some things aswell
 
12:59 PM
@towc I've gotten the educational discount before. Just have to send them a picture of your student ID. Or that's all I had to do
 
@Cereal I have no student id
I'm a highschooler
 
can any one please answer this question stackoverflow.com/questions/24162684/…
 
@CustomizedName - noone, most front end devs aren't even worth 10 bucks an hour.
 
@adeneo ?
 
@dhee - you already got an answer ?
 
1:01 PM
that's not working @adeneo
 
@towc Thanks for the concern. My boss'll gladly pay $99 for a good tool.
 
!!s/tool/fool/
 
@adeneo @towc Thanks for the concern. My boss'll gladly pay $99 for a good fool. (source)
 
@JohnTseng you might ask others before deciding: I'm not really reliable
 
That's what the 30 day trial is for, right? =)
 
1:04 PM
@JohnTseng yes..
 
@dhee - it seems to be working perfectly fine in the fiddle provided with the answer ?
 
Hello everyone, I have a jQuery slider I would like to create two instances of, the slider pulls images from a directory rather than having to specify individual slides. I use PHP to generate the second instance of the slider, the output code is correct however the second slider fails to work. I've created an official question, any insight would be much appreciated.
2
Q: How to create two instances of directory-based slider?

notchrisI've been attempting to create two instances of this jQuery slider that uses images from a specific directory. Folders are generated by a different script and contain 18 images each. It appears that only the first slider works. You can view a live example of this issue here. The jQuery is prett...

 
I am already missing @jLemon
 
hopefully it's @rlemon
 
What does !!spec do, and why does it error?
 
1:08 PM
my ears are burning
 
Haha, I forgot -__
 
@Cereal it's supposed to link to the es5 spec, but it hasn't been tried in a long time, so it's probably buggy now
 
@Leo 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.
 
maybe mixed up with jAndy
 
hello again y'all
 
1:10 PM
@rlemon try the glue to cool them
 
@rlemon are you aware of any other website like Codepen
 
var ret = false;
if( foo.bar.biz.baz ) {
  ret = true;
}
if( foo.bar.biz.boz ) {
  ret = true;
}
//.. 4 more similar structures
// how would I make this cleaner?
 
Caprica jFlorimon
 
@CustomizedName nope
 
@CustomizedName what about jsfiddle?
 
I prefer jsFiddle over Codepen
 
jsfiddle for prototyping, codepen to show it off
2
 
@maremare 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.
 
come on guys. I feel like there has to be some magic I can do to make that long block of if statements go away
sips coffee... waits for magic to happen
 
im sure this wont work: if( foo.bar.biz.baz || foo.bar.biz.boz || ... ) {ret=true;}
 
1:14 PM
it would but it would be uglier imo
 
That has nothing to do with anything. Great job, cartman
 
@rlemon
 
@JohnTseng
 
@rlemon
return (foo.bar.biz.baz || foo.bar.biz.boz....)
 
still not better
 
1:14 PM
line breaks to taste
 
I love codepen
 
you would just turn a long vertical block into a single long line that is unreadable
 
@NickDugger im lookin for the resolution. @rlemon cant you use while somehow?
 
ret ||= foo.bar.biz.baz;
ret ||= foo.bar.biz.boz;
 
@KendallFrey srs?
I never would have thought of that
 
1:15 PM
i think so
I've used that pattern in C# a few times
 
@KendallFrey is that valid?
 
|= is
 
It is in C#
 
would result in a 0/1
 
@KendallFrey `ret ||= true;
SyntaxError: Unexpected token =`
^ chrome VNC
 
1:17 PM
ret = ret || ...
same idea, just more verbose
 
@rlemon
var ret = ['biz','boz','baz'].every(function(x) {
    return Object.keys(foo.bar.biz).indexOf(x) != -1
});
 
var ret = [].reduce.call(foo.bar.biz, function(a) { return !!a; });
 
`for (var i in $scope.oaddr) {
if (cb) {
$scope.addr[i] = $scope.oaddr[i];
} else {
$scope.addr[i] = "";
}
if (i === 'State' && cb) {
$scope.selectedState = $scope.addr.State;
} else if (i === 'State') {
$scope.selectedState = 'AL';
}
}
`
some way to reduce?
 
Hello
 
@JohnnyJS inline if
 
1:21 PM
Does anyone have any experience working with D3?
I cant seem to remove points from my graph
 
@JohnnyJS for future reference, hit ctrl+k to format your code
 
@rlemon - can you call reduce on an empty array ?
 
@Cereal ok. @RoelvanUden i'll give it a show.
 
@adeneo he's not
 
I'm using every
it is what I wanted anyway ;)
var ret = Object.keys(obj).every(function(key) { return !!obj[key] });
 
1:24 PM
@KennyWest 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.
 
@rlemon - yup, I was checking if they were defined, not truthy, didn't quite get it.
@KendallFrey - no he's not, he's calling it on an object which has no length, so it gives you an "empty array" error, same thing.
 
well, a non-array isn't an empty array
 
@KendallFrey - certainly not, especially if you're a knowitall
 
I am a knowitall
aka a pedant
 
thanks @RoelvanUden.
 
1:29 PM
I know how to get answers, therefore I essentially know it all.
 
`for (var i in $scope.oaddr) {
                $scope.addr[i] = cb ? $scope.oaddr[i] : "";
                if (i === 'State') {
                    $scope.selectedState = cb ? $scope.addr.State : 'AL';
                }
            }
`
 
@JohnnyJS for..in without hasOwnProperty might be bad. Beware.
 
This chats formatting behaviour is really unintuitive
 
@RoelvanUden also in object that i hardcode? $scope.oaddr = {a:"",b:""};
 
@copy yes
(not doing propaganda at all)
 
1:32 PM
@copy you expect a chat room to b IDE? lol...
 
We need a better chat, I wonder which one would be an option
 
@JohnnyJS Jup.
Object.prototype.create = 1;
var obj = {a: 1, b: 2};
for (var key in obj) console.log(key);
Burn (and yes this is RETARDED; but I don't know what libs you load)
 
@copy we should make one, I guess
 
@dystroy Any specific reason you're talking to yourself? :P
 
AngularJS. pure.
 
1:34 PM
@SecondRikudo If I was @copy, there wouldn't have been a csrf flaw in miaou until last week
 
@dystroy csrf is when the user submit same form twice?
 
@JohnnyJS Still, some things are best practice for a reason. Your linter might choke as well :P
 
@RoelvanUden got ya. =)
 
@JohnnyJS no
 
@JohnnyJS do you have to support IE8?
 
1:38 PM
@JohnnyJS cross site request forgery, a type of attack. to da google!
 
Hello Dystroy. Need a help in designing my database schema.
@dystroy
 
@Anth12 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.
 
@BenjaminGruenbaum no. i support only mobile devices. (iPhone and Android.. i guess there is nothin else..)
 
@redV you should ping him again.
@JohnnyJS In that case, you probably shouldn't be using for(var a in object) loops at all. Use Object.keys(obj) instead
 
redV sounds like a euphemism for a period.
 
1:41 PM
@Redacted 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.
 
what is the problem with for (var i in obj) ? besides custom constructor methods?
 
@RazorEater 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.
 
@JohnnyJS jslinterrors.com/… read this :-)
 
There should be a closing reason "yet another draw an ascii triangle in java question"dystroy 14 secs ago
 
@RoelvanUden ok. i will read this.
 
1:44 PM
Hi Dystroy struck with chat system schema design, do you have few mins of time to give suggestions?
 
@JohnnyJS - no,no,no! In javascript it's
$.each(obj, function(i, value)  {
    alert('jQuery does all things')
});
 
@NickDugger Really? I bet you are from US
 
@Jenny_Winters 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.
@onmylemon 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.
 
@redV are you not?
 
@adeneo console.log('jQuery is soooo slowww');
 
1:47 PM
@DrogoNevets Do you relocate me to US if I am not?
 
we love css3 transition effects with MVW DOM structure with angular or ember...
 
@JohnnyJS Slow? It's quite speedy for a lot of things.
 
@JohnnyJS - "love" and "angular" goes together like "love" and "marriage" !
 
XD
check green-sock animation. [link][greensock.com/js/speed.html]
the complexity not maintaining itself in jQuery factory
 
@JohnnyJS - So Greensock is better for animations, a tiny part of jQuery ?
 
1:52 PM
is it possible to cache data which was previously retrieved by a request on the front end?
 
@JohnnyJS we like to call it MVW structure
 
@7072k3 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.
 
its so fitting :p
 
@Crow - Sure, with jQuery it's easy ;)
$.ajax({
    url : 'someurl',
    cache : true
});
 
oh wow... that's awesome actually, just what I need
 
1:54 PM
you don't even need a front-end magic for that, with some header magic the browser will cache GET requests happily for you
 
@adeneo i'm not saying jQuery is bad. is just not great. very good for rapid development, and average performance. i use jQuery a lot in my Drupal projects.
 
@jAndy what are those headers that would be needed?
 
or does it even by default ?.. unsure right now
 
user1596138
@jAndy Yeah it does by default
 
user1596138
Causes funny problems for some users that come here
 
1:55 PM
Expires and Cache-Control: max-age should be set, but thats pretty much default
 
@adeneo fwiw, it's 4 LoC added to a ajax method
 
user1596138
@Mosho I assumed it was a joke from the start ;)
 
@BenjaminGruenbaum - Why would there be four Library of Congress added to an ajax method ?
 
function ajax(url,method,data){
    method = method || "GET";
    return new Promise(function(resolve,reject){
        var xhr = new XMLHttpRequest;
        xhr.onload = function(){ resolve(xhr.responseText); };
        xhr.onerror = reject;
        xhr.open(method, url);
        data ? xhr.send(data) : xhr.send();
    });
}
 
!!mdn promise
 
var ajaxWithCache = memoize(ajax);
whoops, that's just one line.
 

« first day (1334 days earlier)      last day (3607 days later) »