« first day (1687 days earlier)      last day (3255 days later) » 

9:01 PM
I solved it !
 
@ZahidSaeed !!! how ?? !!
 
Magic :)
 
Hurry your email
 
9:02 PM
It's working like a charm !
 
i see no email
 
I haven't sent
 
Uploading...
@havingagoatit if somehow I get offline or you did not get your email then wait for me
I'll be here again after 1 hour
 
@ZahidSaeed ok no problem , i will be here
 
9:07 PM
You will be happy to see this :)
 
@ZahidSaeed I CAN'T WAIT !!! :p
 
hehe :)
Check you email NOW !!!
Did you get it
?
 
@ZahidSaeed got it opening now ...
 
How old are you ?
 
9:10 PM
@ZahidSaeed 33
 
oh !
 
@ZahidSaeed why ?
 
I'm 19 :)
Just asking
 
@ZahidSaeed these days the younger the smarter !
 
Yeah
 
9:11 PM
@ZahidSaeed what did you think of the site so far generally ?
 
Great !
Due to animations :)
Have you checked it ?
 
@havingagoatit have you checked ?
 
@ZahidSaeed yes it works ! but the animation is only on content in and not content out
 
9:13 PM
But you did not told me about this
@havingagoatit But this also doesn't look bad :)
 
@ZahidSaeed this bit $(".animated").removeClass('bounceInUp').addClass('bounceOutUp');
 
I don't know what these classes do
 
its ok we just need to implement a set timer function maybe to allow the class out instead of in
 
But I guess I have done my job :)
 
@ZahidSaeed they are simple 2 classes one for anmation when text comes in and one for when they leave
@ZahidSaeed ironically this was my problem to begin with
 
9:15 PM
You can play with them
 
its ok i think
 
@Catgocat sudo apt-get remove <package-name(s)>
 
U happy ?
 
i just need to change that function to have a timer for 2 seconds while the class is changed
 
@AwalGarg Yeah I know
 
9:15 PM
$(document).ready(function(){
  $("body").on("click", ".slide", function(e){
    e.preventDefault();
    $(".animated").removeClass('bounceInUp').addClass('bounceOutUp');
    console.log($("#test").load($(this).data("url") + ' ' + $(this).data("target")));
  });
});
 
@Catgocat then why ask?
 
@AwalGarg I asked you but then I found out
 
@ZahidSaeed i just need to make a timer of two seconds for the class to work , either way you have made it work
@ZahidSaeed if you want to finish now I understand and I really appreciate your help !
 
crl
29
Q: permutations in javascript?

pepperdreamteamI'm trying to write a function that does the following: takes an array of integers as an argument (eg. [1,2,3,4]) creates an array of all the possible permutations of [1,2,3,4], with each permutation having a length of 4 the function below (I found it online) does this by taking a string as a...

 
The EventEmitter class should be native to ECMAScript :/
 
crl
9:17 PM
accepted answer there ^ is horrible, some global variables used in a recursive function, I've submitted a hopefully cleaner answer
 
@ZahidSaeed i might even be able to just use what you have done in a timer
 
> Original text:
"Javascript is love, Javascript is life."
...10 translations later, Yandex gives us:
"Love, Java, Javascript, in life."
just discovered badtranslator
 
@crl var is function scoped
 
12 days and no more school
 
crl
@FlorianMargaine I mean this answer stackoverflow.com/a/9960925/3183756
 
9:20 PM
please come quick summer holidays
 
@rlemon oh god see this:
 
@crl I'm talking about your answer
 
> Original text:
> "Sometimes I like to cook fish while jumping rope."
> ...10 translations later, Yandex gives us:
> "Sometimes I like to cook. IP address of fish."
@Catgocat First, that's not necessarily bad. Second, I bet you $100 there's a GUI way to do it.
 
crl
@FlorianMargaine ok, yes but still it's less horrible than accepted answer with global variables
 
Not just that, a Grandma way to do it.
 
9:22 PM
@Zirak How to remove a media player from the list of media players in the notification center with a GUI?
 
What?
 
I mean there might be a cleaner way to do it.. but there's nothing cooler than writing code in the Terminal and your friends thinking you're a hacker or something
 
@ZahidSaeed       this is what i got     $(document).ready(function(){
  $("body").on("click", ".slide", function(e){
    e.preventDefault();
    $(".animated").removeClass('bounceInUp').addClass('bounceOutUp');
    setTimeout(function(){
        $("tile-are-main").load($(this).data("url"), $(this).data("target"));
        $(".animated").removeClass('bounceOutUp').addClass('bounceInUp');
    console.log($("#tam-content").load($(this).data("url") + ' ' + $(this).data("target")));
     }, 2000);
  });
 
lol, @rlemon I got 8 clicks.
 
@AwalGarg How to remove media from the list, media, communication messages from the graphical user interface?
 
9:23 PM
can someone check the syntax of this .....
$(document).ready(function(){
  $("body").on("click", ".slide", function(e){
    e.preventDefault();
    $(".animated").removeClass('bounceInUp').addClass('bounceOutUp');
    setTimeout(function(){
        $("tile-are-main").load($(this).data("url"), $(this).data("target"));
        $(".animated").removeClass('bounceOutUp').addClass('bounceInUp');
    console.log($("#tam-content").load($(this).data("url") + ' ' + $(this).data("target")));
     }, 2000);
  });
});
 
> Original text:

"I mean there might be a cleaner way to do it.. but there's nothing cooler than writing code in the Terminal and your friends thinking you're a hacker or something "

...22 translations later, Yandex gives us:

"I think this is a very good way to do it, but there is nothing better than to write the rules, in the lobby of the hotel, my friend thinks you're a hacker. "
 
@Zirak the sound notifier has a list of media players, and not all need to be there. How to remove one?
 
@rlemon wh..
 
Sure, I was talking about his original question, but I'll ignore that and answer yours:
 
Original text:

""I mean there might be a cleaner way to do it.. but there's nothing cooler than writing code in the Terminal and your friends thinking you're a hacker or something " "

...10 translations later, Yandex gives us:

"I think this is probably a cleaner way to do this, but there is nothing better than to write code, in the lobby, and my friend, he thinks you're a hacker. "
 
9:25 PM
:(
 
I like the way it adds , and my friend,
 
@Zirak brb writing a userscript to ignore all messages of yours containing a youtube link
 
> Original text:

"Has anyone really been far as decided to use even go want to do look more like? You've got to be kidding me. I've been further even more decided to use even go need to do look more as anyone can. Can you really be far even as decided half as much to "

...10 translations later, Yandex gives us:

"One thing is for sure, if you decided to use even want more? You must be joking, so far as decided to use even go and see what everyone can. maybe even decided to double "
 
Speaking of youtube
 
okay I'm done now
 
9:26 PM
""I mean there might be a cleaner way to do it.. but there's nothing cooler than writing code in the Terminal and your friends thinking you're a hacker or something " "

...43 translations later, Yandex gives us:

"I think that's a good way to do it, but You don't need to write anything better at the gym, my friend is a hacker I think. "
Gym, WHERE?!?!?!
Where did it find gym
 
ok
a javascript question now
to keep a little of on-topicness.
 
Yes, you do look fat
 
One thing is for sure, if you decided to use even want more? You must be joking, so far as decided to use even go and see what everyone can. maybe even decided to double.
 
@Zirak post a youtube link please?
 
No
 
9:28 PM
@Zirak my mom said I don't :(
 
Your mom says a lot of things
 
@Zirak Will you help me write the splitview thingy for ff scratchpad?
 
I'm so fat that my belt is actually the equator :(
 
@Zirak well, technically, I think most people in the world say a lot of things.
 
@AwalGarg I will not have my fwends widiculed by the common soldiewy
 
9:30 PM
I can actually test by reloading the page
brilliant, it works.
@Zirak I am not afraid of your oneboxes now :D
 
Your loss, that's a really funny one
 
I agree
 
@Zirak I only blocked youtube oneboxes
 
Oh, cool
Now I can send you images instead
 
.user-617762 .onebox.ob-youtube {
  display: none;
}
^ this little piece of code
 
9:32 PM
@AwalGarg did you look at this for ff dev tools btw?
 
@FlorianMargaine I am not clicking on a bitly link
 
your loss
 
It's great to suffer loss when you have nothing to lose.
 
how's Audio api support going?
!!caniuse Audio API
 
9:34 PM
not falling for it this time @rlemon :P
 
sad story :/
 
1 message moved to Trash can
 
"like this if you cry everytime"
really? in SO chat?
 
lol
 
i copy pasted
ytb comment
 
9:35 PM
@Catgocat didn't laugh at the joke as much as I laughed at you posting it in here :D
 
think twice before doing it next time
 
brillianto
 
for anyone on a budget - reddit.com/r/EatCheapAndHealthy
I've been subbed to it for a while, just because I like new recipe ideas.
they are really not bad posts.
 
@rlemon I dont have the money to eat healthy
 
cool story
 
9:38 PM
!!s/ to.+//
 
@AwalGarg @rlemon I dont have the money (source)
 
^ tis my story
:(
 
Original text:

"Writing code and programming"

...43 translations later, Yandex gives us:

"Enter the password for this program."
Ok what the hell
 
9:41 PM
@rlemon "one" "two" "three" "fourteen"
 
girlfriend everytime
 
1 message moved to Trash can
 
jking I dont have a girlfriend
 
I just.. don't post that kinda stuff man
or at the VERY least don't onebox it and mark NSFW
 
it was cake man
 
9:42 PM
doesn't matter
 
mmmmmmmmmm
ok sry
 
crl
Hmm what's wrong there: jsbin.com/zudiyo/3/edit?js,output, it should return [[1,2,3],[2,1,3],...] not just [[1,2,3]]
 
@crl Are you trying to get every combination? Combos?
 
crl
it works in fullpage output.jsbin.com/zudiyo but not in edit mode jsbin.com/zudiyo/3/edit?html,js,output
@Catgocat permutations yes
 
Original text:

"I have 15,000,000.00 (fifteen million) U.S. Dollars and I want you to assist me in distributing the money to charity organizations. I agree to reward you with part of the money for your assistance, kindness and participation in this Godly project."

...43 translations later, Yandex gives us:

"By the grace of Allah, I want to help in the distribution of funds to charity, with 15 000 000.00(fifty million dollars), I want my money, and, or, not"
 
Imagine how programming would be if computers didn't let you simply copy-paste anything in any form.
 
I would do cut-paste
 
won't help
 
> I want my money, and, or, not
XD
 
crl
@Catgocat I prefer my version but I still don't understand why it doesn't work in the jsbin
 
9:52 PM
btw if this nigerian prince really has so much money, why is he emailing me and not some other person whom he can trust more?
 
function p(arr) {
    var n = [],
        u = [];
    function m(a) {
        var c;
        for( var i = 0; i < a.length; i++ ) {
            c = a.splice(i,1);
            u.push(c[0]);
            if( a.length === 0 ) {
                n.push(u.slice());
            }
            m(a);
            a.splice(i,0,c);
            u.pop();
        }
        return n;
    }
    return m(arr);
}
:D
enjoy one letter names :D
cept arr
because you know.
 
@crl too hard for my brain
rlemon stop melting my brain
 
function p(n){function e(n){for(var t,u=0;u<n.length;u++)t=n.splice(u,1),r.push(t[0]),0===n.length&&p.push(r.slice()),e(n),n.splice(u,0,t),r.pop();return p}var p=[],r=[];return e(n)}
fixed your formatting
 
function p(lz) {
    var n = [],
        u = [];
    function m(a) {
        var c;
        for( var i = 0; i < a.length; i++ ) {
            c = a.splice(i,1);
            u.push(c[0]);
            if( a.length === 0 ) {
                n.push(u.slice());
            }
            m(a);
            a.splice(i,0,c);
            u.pop();
        }
        return n;
    }
    return m(lz);
}
plz.. fixed
 
crl
u.poop()
 
9:55 PM
!!> function p(lz){var n=[],u=[];function m(a){var c;for(var i=0;i<a.length;i++){c=a.splice(i,1);u.push(c[0]);if(a.length===0)n.push(u.slice(‌​));m(a);a.splice(i,0,c);u.pop()}return n}return m(lz)}; p( [1,2,3,4,5] );
 
@rlemon [[1,2,3,4,5],[1,2,3,[5],[4]],[1,2,[[4]],[3],[[5]]],[1,2,[[4]],[[[5]]],[[3]]],[1‌​,2,[[[[5]]]],[[[3]]],[[[4]]]],[1,2,[[[[5]]]],[[[[4]]]],[[[[3]]]]],[1,[[[[[3]]]]],‌​[2],[[[[[4]]]]],[[[[[5]]]]]],[1,[[[[[3]]]]],[2],[[[[[[5]]]]]],[[[[[[4]]]]]]],[1,[‌​[[[[3]]]]],[[[[[[[4]]]]]]],[[2]],[[[[[[[5]]]]]]]],[1,[[[[[3]]]]],[[[[[[[4]]]]]]],‌​[[[[[[[[5]]]]]]]],[[[2]]]],[1,[[[[[3]]]]],[[[[[[[[[5]]]]]]]]],[[[[2]]]],[[[[[[ (snip)
 
ahahahahahaha
plz
 
rlemon.addEventListener('slide', poop);
6
 
@DanielaMarquesdeMorais 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.
 
9:56 PM
quick question.. I already apologize if stupid
 
crl
!!tell Dan echo ask away
 
@crl Command ask does not exist. Did you mean: afk, asd (note that /tell works on commands, it's not an echo.)
 
I started studying node.js but did not quite catch where it can be used in an application
 
@Dan ask away
 
@DanielaMarquesdeMorais web or desktop?
 
crl
9:57 PM
as a web server for example
 
@crl not a good example
 
crl
why not?
 
node is an environment that can do many many things.
 
crl
I need to learn those things too
 
For example, I have an API in Java using Spring MVC. The node could be used to manage requests that api?
 
9:59 PM
@crl because only two to three modules out of all the inbuilt ones cater for web servers.
most of them are generic/system/fs etc.
And the http(s) module is pretty plain in itself, you would likely use express or something
 
node.js is an evented i/o server platform. As apposed to most others which are multi-threaded. You ca nuse it as a service or an http server, whatever you need. You can think of it almost like an embeddable operation system.
 
crl
I also thought of those 2
 
Real question now:
Is Node.js still worth downloading?
 
go iojs
 
10:02 PM
Or io.js is more trustworthy ?
 
@Catgocat after it merges with io.js
 
or better
io.js is independent right?
 
yes, and pretty lose
 
So io.js or node?
 
1 min ago, by rlemon
go iojs
 
10:03 PM
@DanielaMarquesdeMorais you can use nodejs the same ways you can use java
 
Why io.js over the google V8 Engine that node.js is built on?
 
iojs is a fork of nodejs
 
@FlorianMargaine But its event-driven nature is quite different and useful for different use cases
 
So what does it bring to the table over node.js?
 
10:05 PM
@copy sure, I was just answering this
 
> Bringing ES6 to the Node Community!
 
io.js api == node.js api ?
 
Ok so you copied that from the WebSite. Why would I use the forked version of node.js over node, if there is no real benefit?
 
...
 
@JeffreyA.Gochin Because the fork enabled more features of ES6
Among other things
 
10:07 PM
Such as?
 
Generators
 
@JeffreyA.Gochin github.com/nodejs/io.js/blob/v2.1.0/CHANGELOG.md read this and tell us
 
arrow functions dont work tho
 
lwn is just interesting overall...
I'm thinking about subscribing to it
 
@AwalGarg Do you use Sublime Text 3 on ubuntu?
 
10:09 PM
what interested me is to be non-blocking I/O
I can't imagine being like java lol
 
7 hours ago, by Awal Garg
@Catgocat sublime text, gedit, nano, zed, builder
 
@DanielaMarquesdeMorais That's not so useful, it mostly makes your code harder to understand
 
So you use those 5?
 
Better pick a solid language like Python
 
Yes
 
10:10 PM
Really??
interesting
 
What is there to be shocked about it?
 
well, normally one doesn't use 5
 
I only use 2 editors
 
@DanielaMarquesdeMorais the event system is nice, but you can got hooked in the callback hell. I just Promises when I can instead of the callbacks.
 
I am an abnormal person.
 
10:11 PM
@FlorianMargaine which ones
 
emacs/vim
 
in ubuntu fonts look so bad in text editors
and code editors
 
Then don't use it.
 
but I have to
 
explain
 
10:12 PM
I feel as a programmer I need to get used to new systems
 
My application has a problem occurs when reading a worksheet in .xlsx for JSON, it just fucks all other users
 
it's good for the experience
 
i thought if controlled calls this API with Node.js "solve the problem"
 
@Catgocat then post a screenshot of what you think is "bad"?
It looks just like windows :/
 
Async processing with help, but currently xlsx are natively XML. Are you trying to automate Excel or just parse the XML to JSON?
 
10:14 PM
@AwalGarg Ok wait
But you have to see it in full resolution
 
I use Apache POI to read and turn into json, the problem is when the worksheet has many lines
 
the system is slow and we have to do a server upgrade on AWS to support
 
Am not really familiar with PIO, I would be suspect of it causing your performance. How are are files, are they being loaded completely into memory before converting to JSON?
*How large are your files.
 
@DanielaMarquesdeMorais use a queuing system, like rabbitMQ or similar. Offhand the resource-intensive stuff to another application, whether it's nodejs or C++ or java or w/e.
 
10:21 PM
I think before trying to find a silver bullet to your problem, you first needed to find out where the bottleneck is.
 
@JeffreyA.Gochin The json is set while reading occurs.
This only occurs when the worksheet has about a thousand lines (all filled out and only texts), it seems absurd but have clients who do this lol
 
!afk sleeping
@Catgocat .
how do u afk?
!!afk sleeping
!afk sleeping
 
crl
!!ping
 
Daniela brasileira?
 
10:23 PM
sim lol
google tradutor
 
:p
boa sorte aí que não tem nenhum português / brasileiro no SO
mas tem o site portugues
 
@DanielaMarquesdeMorais so you are basically reading from one stream and writing to another. Not loading everything into memory then converting. That's a good start. Are your performing the conversion ansychonously?
 
@DanielaMarquesdeMorais pt.stackoverflow.com
!afk sleeping
 
@Catgocat BR também?
 
@DanielaMarquesdeMorais Não.. português
Mas falo com brasileiros diariamente
 
10:28 PM
No French please
 
It's not french you dumb
 
@JeffreyA.Gochin No, we don't even think about doing that in Java. There is no possibility with the Node.js?
@Catgocat Curto bem mais o SOpt que o SO mas quando preciso muito saber algo rápido, não tem jeito rs
 
@Catgocat looks kinda ok to me, try ctrl + +
 
@AwalGarg really REALLY
zooming is the solution???
 
@Catgocat ... do
 
10:31 PM
Node can definitely do it for you, but Java supports threading and asynchronous operations. You should be able to do it in Java, no?
 
@Catgocat does it solve it? You have to do it only once.
 
@AwalGarg I don't think so.. but I can live with that
I'm going to sleep now, goodbye and @DanielaMarquesdeMorais good luck
 
@JeffreyA.Gochin Let's think of the possibilities, thanks!! For you have an idea, the team's architect prefers to do the server update lol
@Catgocat thanks, bye
 
@FlorianMargaine lwn looks really nice, thanks!
 
10:47 PM
How to test if only one value is truthy in a list?
@Catgocat @DanielaMarquesdeMorais Agora somos 3.
 
@Jovito brasileiro ou português?
 
Brasileiro.
 
@Jovito .map(Boolean).length === 1
 
@Jovito Brs em todo lugar
 
...wait, I don't think that works ;D
 
10:50 PM
@Oliver Yeah, I was about to ask.
 
!!tell Oliver mdn array.some
 
@AwalGarg Yeah, but that'll only tell me if any value would be truthy, what if 2 are?
Or am I missing something here?
 
oh, in that case array.filter
 
Ah
Good call
 
10:55 PM
map would always return the same size array as the original one
 
I am trying so hard to like CSS but it seems like it is simply not for me :(
 
can someone help me with this jquery problem please stackoverflow.com/questions/30551998/…
 
@havingagoatit setTimeout isn't jquery?
 
@SomeKittens i think it is but a timer or delay while the class is added is what i need
 
11:08 PM
@DenysSéguret changing miaou's font to Lato (available under ofl) does a neat job
and setting background-color of stripe to #4D394B
 
i have edited the question to make it simpler ... stackoverflow.com/questions/30551998/…
I have currently got this
$(document).ready(function(){
  $("body").on("click", ".slide", function(e){
    e.preventDefault();
    $(this).removeClass("bounceInUp");
    $(this).addClass("bounceOutUp");
    setTimeout(function() {
	console.log($("#tam-content").load($(this).data("url") + ' ' + $(this).data("target")));
}, 3000);
  });
});
what is wrong with this statement ??
anyone ??
 
11:24 PM
Does google store one's voice pattern in the user profile when using voice search?
 
@havingagoatit Is this a guessing game or do you have a specific problem to focus on?
 
@OliverSalzburg hi ! i will give you everything you want to help , basically that statement doesn't work maybe it is syntax i dunno ,
 
I would assume this doesn't refer to what you think it does in your setTimeout callback
 
@OliverSalzburg nope that bit is verified
so this statment is tested to work ....
$(document).ready(function(){
  $("body").on("click", ".slide", function(e){
    e.preventDefault();
    console.log($("#tam-content").load($(this).data("url") + ' ' + $(this).data("target")));

  });
});
 
@havingagoatit Yeah, well, that doesn't use another callback ;)
 
11:26 PM
but i want a timer in there so for 2 seconds there is a delay so that the class bounceinup can be swapped out
 
$(document).ready(function(){
  $("body").on("click", ".slide", function(e){
    e.preventDefault();
    $(this).removeClass("bounceInUp");
    $(this).addClass("bounceOutUp");
    var that = this;
    setTimeout(function() {
	console.log($("#tam-content").load($(that).data("url") + ' ' + $(that).data("target")));
}, 3000);
  });
});
 
@OliverSalzburg I am not sure what you mean as my jquery is quite thin
 
@havingagoatit ^
 
ah
that worked Awal on the timer side but the class isn't changing
 
then debug
 
11:31 PM
good call doing now
 
or make a fiddle
 
@AwalGarg well my debug mission was inconclusive , but i believe the use of (this).removeclass is not working because it is not looking in the right place
@AwalGarg the class is embedded in a div that is referred to in a data-target so i am not sure how i phrase that one tbh
 
11:49 PM
@havingagoatit in your function, this refers to the body element
 
@AwalGarg right so does that mean any class with that name within the body would be removed/added ?
 
@havingagoatit yes
@havingagoatit set a breakpoint at the line you are having problem with, and inspect everything when it breaks at that point
 
@AwalGarg as a test i asked the script to remove the class that it currently has and it didn't work so the remove class isn't working
@AwalGarg what if the class is on a div on a seperate html page
@AwalGarg how would i call that cheeky number ?
 
@havingagoatit you aren't making sense. js on one page can't effect html on another page
 
11:56 PM
@AwalGarg i am loading data in the click from another page
 

« first day (1687 days earlier)      last day (3255 days later) »