« first day (1824 days earlier)      last day (3120 days later) » 

12:24 AM
me: want this in for two minutes like normal? (talking about a magic bag)
gf: no, two minutes is too hot, 180 seconds.
me: -_-
 
 
1 hour later…
1:40 AM
boooo
 
YOU'RE BORING
 
 
1 hour later…
3:10 AM
boooo
 
YOU'RE BORING
 
can't even.
 
Let me try something. I bought a pink Le Creuset dinnerware set! They are pretty!
 
@Sheepy pics or it didn't happen
 
3:26 AM
Let me see. I never used SO chat on mobile...
No upload button on mobile? >_<
 
Beautiful
 
you make that?
 
The food, yes. Spicy minced tofu, pan fried chicken, and boiled vegi.
The dinnerwares, no way :p
 
3:49 AM
Perhaps I should try phones. Let me see. Yesterday I read that you can order a tailor made Moto X straight from Motorola!
 
4:20 AM
@AwalGarg Oh, that's awesome! Thanks a ton
 
 
1 hour later…
5:23 AM
Do any of you guys know how to recover a file that was deleted on a server
such as using some kinda of recovery script
 
@Dave Try google. Remember to include your server's os in the search terms.
Because most OS no longer come with undelete tool - the rubbish bin, if any, is the default last defence.
 
so linux doesn't flag the file it pretty much wipes it ?
 
No OS will really wipe your data. They just don't (usually) bunble extundelete. (Do NOT install it on the partition with deleted file.)
 
i was hoping i could do it via command line
 
hi
 
5:35 AM
@krish 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.
 
ok
0
Q: Drop down with checked box not working

krish<!DOCTYPE html> <html lang="en"> <head> </head> <title>test App</title> <!-- Bootstrap Core CSS --> <link href="/Project/static/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="/Project/static/css/sb-admin.css" rel="stylesheet"> <link href="/Proj...

May i know where i am wrong?
 
I'm sure some one will answer it shortly
 
5:58 AM
@Dave Most IT pros have a "rescue disk" that includes standalone undelete tools. Some even put the disk image online, just download and extract to a usb :)
 
happy new morning
 
@AwalGarg OSS is ossum
 
ikr
 
btw facebook login using passportjs FacebookTokenError: This authorization code has been used. ... dfak
!urban ikr
 
"I know right"
 
6:03 AM
the more I sleep the more I feel sleepy ...
 
@argentum47 First sign of sleep addiction
 
6:19 AM
o.O is that a disease ?
 
Good Evening folks
@OliverSalzburg Its natural for most people
 
given a day when I have no computer, the only favorite pass time is sleeping
 
@argentum47 because your mind is tired :P
do some exercise and meditation
 
@Abhishrek It was a joke!
 
@OliverSalzburg god damnit
 
6:21 AM
It's a real thing though. I'm personally affected. I tried quitting for a while, but it was really painful. So, after only a few days, I just figured it wasn't worth it and now I regularly sleep again
Don't judge me!
 
@OliverSalzburg I can teach you how to get rid of it :P
 
ahh . meditation.. I am afraid to do anything that involves closing my eyes..
 
@argentum47 also quitting facebook and social apps help
 
lala.. I deleted fb account
but the only thing I can't quit is watching movies and seasons.. I have to watch one a day
 
@argentum47 human beings are sad of being lonely :P
give your self some lonely time and some time to sleep -_-
and meditate, you will be 10x more productive
 
6:25 AM
actually I think its the office.. :D at home when I do my stuff I don't sleep that mush..
 
oh and heavy exercise might help falling you asleep over watching a movie
 
ok will try meditating
 
:-)
 
I meditate by working.
 
you are dark lard
 
6:28 AM
I have a function in an Angular service 'ProductName' which looks like this:
service.getProductNames = function() {
        new ProductNameService().$get()
        .then(function(response) {
            if(typeof response.product_name === 'object') {
                return response.product_name;
            } else {
                return $q.reject(response);
            }
        },
        function(response) {
            return $q.reject(response);
        });
    };
But when I call this function from a controller the function inside .then does not get called
 
Mornin'
 
@shyam You might want to actually return something from that function
 
@Oliver Wait! I think I might have used callbacks instead of 'then' in the controller :D
 
Also, don't use .then(function,function) use .then(function).catch(function) instead, in that case and you don't need a rejection handler, because you're just returning the rejection
 
6:43 AM
@OliverSalzburg Yep! Forgot the return statement! Thanks! :)
 
for once that you get rejected from a function and not from a girl.
 
Actually the function wasn't even rejecting until now
 
that is a bad thing .. coz u can't move onto another girl and you can dump the former girl
 
@argentum47 LOL
 
user3119231
 
user3119231
6:47 AM
is there no way to let the divs fit side by side?
 
user3119231
2 divs per row?
 
user3119231
I just want to add some space between them with margin
 
!!tell Maurize google flexbox
 
user3119231
@monners go home, you're drunk :D
 
6:52 AM
What?
I am home and I'm almost drunk.
 
user3119231
Then you're da real mvp
 
That's not good then, drink some more
 
@argentum47 The Dark Lord -_- at least spell it correctly
 
user3119231
But anyway I don't think I have to use flexbox... BTW Caprica is looking - Not sure if it is rlemon...
 
user3119231
THE REMOTE-LEMON.
 
6:53 AM
Oh! lol, you fucker
 
!!lard
 
@Mr_Green That didn't make much sense. Use the !!/help command to learn more.
 
!!urban lard
 
@Mr_Green lard A fat person that thinks that they aren't fat.
 
!!s/lard/-/
 
6:55 AM
HAHAHAHAHAHA I was waiting for the day someone'd call me fat lol
 
@monners @Mr_Green - A fat person that thinks that they aren't fat. (source)
 
!!s/@Mr_Green/@monners/
 
@Mr_Green @monners @monners - A fat person that thinks that they aren't fat. (source) (source)
 
1
Q: Is self promoting a product on stackoverflow allowed?

AlexCheck this question. Here are two links to the original answer. The post author promotes his product. Do moderators care about this? All my edits are rejected. What can i do now?

This guy...
Is quite speshul
6 rep, suggested the same absurd edit 5 times (got rejected 5 times)
My god he's dense -.-
Oh look, my answer got a -1 xD
 
In my opinion that question should not be on SO. As it's protected, it won't even be deleted, nor the answers updated...
@Cerbrus I upvoted your answer but I'd prefer "mentionned" to "promoted". There's a fine line between useful and honest mention of a product and ad looking promotion
 
7:10 AM
I am using system in wrong way, but you are using stackoverflow, rep, answers in wrong way. — Alex 49 secs ago
this guy is brilliant
 
@DenysSéguret: fixed
@AwalGarg He's got balls telling users that have been on here a hell of a long time longer than him, that.
Guys, please reject this edit suggestion: stackoverflow.com/review/suggested-edits/9845419
 
Brilliant +1
 
And delete-vote the answer if you can
 
rejected
 
surely he'll be edit-banned soon?
How many rejected edits does it take?
 
7:15 AM
That was his 6th
 
user3119231
Cerbrus: Mayday, mayday, need rejections here.
Room 17: Affirmative, team delta is heading to your position.
 
@Alex I'd try to put things is way that suits your vision. The answer you are trying to edit in its original form is very bad. The question to which it is an answer is very bad. And your edit, though potentially constructive, is against the general flow of community. Hence, your concern is valid, but there is a better way to treat that answer than to edit it, which is, delete the answer. — Awal Garg 31 secs ago
 
This whole mess was started because some barely 2k user accepted his first suggestion, removing the discussion from it.
 
He doesn't get it. I won't try to fix him...
 
@Cerbrus And all on the same answer, that's amazing
@Maurize Tango down
 
7:17 AM
@ivarni I know :P He's stubborn as hell
 
user3119231
@ivarni Fall back team, there are too many rejections in alpha gecko overflow.
 
He looks like he thinks you're part of a conspiracy whose goal is to promote the product...
 
Ssssh, don't tell anyone
 
Thanks Robert and most importantly cerbrus for take care about this — Alex 29 secs ago
 
Ninja'd
He may actually be learning
 
7:19 AM
He's probably reading again and figuring it
ok, everything's fine, the world is safe
 
Crisis adverted
 
So would this be a good time to ask Alex if he wants a CodeIgniter membership?
 
user3119231
We should found a special unit which is responsible for defeat useless threads and capturing (settings) flags.
 
Using system in wrong way is not my motto. But situation bring me to do this to show the real answer to the world. — Alex 18 secs ago
lmao
 
He still doesn't get it
 
7:23 AM
He just showed the real answer to the world
 
That's a shame
 
But the world needs to know about this great injustice!
 
He gets it better than he did before. That is half the battle won.
 
With half the battle won, there's still orcs swinging clubs at you
The question just needs 1 more delete vote though
 
will flagging as VLQ help?
 
7:30 AM
I don't think you're supposed to flag if there's a close-reason that applies and you have the rep to close vote?
 
Flagging won't help no
I think
Actually, it might
 
Well best case it ends in the VLQ queue?
But i suppose it can be deleted from there?
 
I'm not sure
It may be
Can't flag the question as VLQ though
Spam, rude, or mod intervention
 
question is deleted
 
Yeah! Case closed!
 
7:37 AM
hi guys
i need advice on how to properly implement datatble
the issue is this
if records are too many
datatable loads very slow
how to optimize this?
 
crl
uneval is a Firefox thing?
 
then write your data-table widget in such a way that it does not render all of the data at once
 
Excellent
 
@EuphoriaGrogi Show less records. Use less datatable plugins, if any.
 
@crl yes. Spidermonkey, to be precise and pedantic.
 
7:41 AM
@Sheepy is datatable server side processing is enough?
or i need to update my stored procedure
 
@Sheepy .. don't use jquery
 
@tereško why? coz angular is now a trend?
hihi
 
@EuphoriaGrogi what has angular to do with it?
are you really so incompetent that you cannot write a small piece of code in native JS?
 
@EuphoriaGrogi You can't fix anything before you measured what's slow. Is the query slow ? Is the data transfer slow ? Is the rendering slow ?
 
@EuphoriaGrogi If you are skilled enough to delegate the processing to server side, yes it should solve most client side performance issues caused by too many data.
 
7:46 AM
@tereško just saying
dont be mad
anyways i figured it out
after reading server side processing
thanks!
 
crl
nothing wrong in client-side processing
 
i just share the issue
the issue is this : all records are feed to the datatable on initial load
for example i have 100,000 rows
 
crl
you could do an infinite scroll or pagination, just loading the beginning, and loading the rest on demand
 
thanks for the help, im on the right track now
@crl yah lazy loading
thanks
 
@EuphoriaGrogi tere is right. That would be the correct way to fix this problem or most performance problem. But if you have 100k, yeah better just let server do it and load lazily.
 
7:51 AM
@Sheepy yes im thinking of it also
im just making sure if im on the right path
im not that experience though
still learning
 
Hi.. I have an query on Javascript HTML stuff
 
@Kundan 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
 
7:56 AM
I envy AIs. They are always cool under pressure.
 
im trying to parse js object and spit out xml just so i can show an example of a multiple-format API based on content types in request header
gist.github.com/tejasmanohar/1f8f380f5138ba8f3519 as soon as i set content type to text/xml this xml plain text is throwing an error
in my browser
then i remove content type and that xml shows ^ (first gist, no error)... anyone know what error is? :\
 
@TejasManohar XML must have a single root element that contains all other elements. In case of xhtml it is <html>.
 
ah
aha
I did @Sheepy see second gist ? :)
 
Ok. See it now. :)
 
bleh anyone know a good library that converts js obj -> xml and does the root element right
i can just do it w/ string templating es6 or concatenation around the xml-object npm module response but that's yeck
 
8:01 AM
Just say return '<root>' + result + '</root>'.
Oh.
 
yeah
it worked its just yucky lol
this.body = `<xml version="1.0">${toXml(this.body)}</xml>`
welp
it works! :P
 
Congret~
 
@TejasManohar My condolences
 
Haha yea
i've only had to use xml once and that was some copy paste response of my api so another one understood it :P (hack)
 
8:21 AM
In a Flux architecture, why would you want to send an action into a dispatcher instead of a store? I mean, all the dispatcher really does is forward the action into the correct store..
The only real benefit it has is that multiple stores can respond to a single action?
 
Just go for Redux and loose some of that boilerplate :)
 
Yeah Redux looked even more boilerplatey to me :/
 
@RoelvanUden forwarding the action to the correct stores is enough of work to separate it out to another body
(or so is the belief of whosoever laid out the Flux guidelines)
 
Well, say I have a thing called 'counter' and I really just want to do affect it:
import {counterStore} from '../stores/counterStore';

export var counterActions = {
  decrementCounter: function(): void {
    let state = counterStore.get();
    if (state > 0) {
      counterStore.set(state - 1);
    }
  },

  incrementCounter: function(): void {
    counterStore.set(counterStore.get() + 1);
  }
}
What is hard about that? I mean, using it directly goes against Flux and all, but I don't see the problem (yet)
 
Right. The dispatcher model might look like an overly decorated one for some use cases, but most of the times it does suite (at least in my experience).
 
8:27 AM
Well, I guess I'll just don't implement a dispatcher for now. Can always make one later if needed.
 
@m59 Hi
 
m59
yo
This is top-tier fail right here:
-1
Q: angular JS not working with node.js

Harish -3 down vote favorite I have read Angular JS from W3schools.com and have understood coding in Angular JS. Now, I would like to deploy it on any web server to make it a web application. Not able to understand which web server I need to deploy and the procedure. So, After some google , I followed t...

> -3 down vote favorite
 
Oh great, someone answered it
 
@m59 Because he copy-pasted from stackoverflow.com/questions/33110650/…
 
m59
yeah, hence why it is top-tier fail.
Not only is it douche-baggery, it's incredibly lazy.
 
8:39 AM
You could have mentioned that right away so I could have VTCed as dupe instead :p
 
has anyone logged in to facebook with passport and used the access_token to get the user photos on client side?
 
m59
oops =D
 
please help with the second part
 
There has to be a way to have my laptop float in the air magically
 
but how the fuck did that other Q get 3 reopen votes
 
m59
8:40 AM
I KNO RITE!?
 
@ivarni you can't VTC as dupe if the other question doesn't have an upvoted/accepted answer IIRC
 
@AwalGarg I'm pretty sure I've done it before on blatant copy-pasted questions but I could be mistaken
anyway, as long as it gets nuked off the face of the site it doesn't really matter for what reason
 
9:01 AM
@AwalGarg You can if it's the same user
 
oh
 
9:15 AM
I have a created a new method in Object.prototype like this: this.Object.prototype.equals = function (obj, keyName){...}
 
@ErroreFatale 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.
 
@ErroreFatale woa, you're one crazy kind
 
Why Florian?
 
because every new object you create will have some new overhead
 
@crl In the jsbin you showed me yesterday (jsbin.com/kefuxu/edit?html,js,console) what if I want to call ajax1 and ajax 2 conditionally?
 
9:16 AM
The problem is that is called on windows load automatically
 
and a new default function that they possibly override
 
I don't want both executing everytime
 
Touching Object.prototype will break most code, because most code won't expect you to do that
 
yeah, just don't
it's javascript, not java, nobody needs if (foo.equals(bar))
 
But I dind't override an existing method... I added a NEW method
wo why should existing code be breaked?
so
 
9:18 AM
sure. Do you use any library? Do your users use any browser extension?
 
because it shows in for(k in obj)
 
Florian are you saying that I could override something in a browser extension?
 
@ErroreFatale I'm just saying that you're breaking existing code, even if it's a NEW method.
 
@ErroreFatale You've made a standard API non-standard. Now apply Murphy's Law.
 
I don't understand... if I have a C code and I delete a method from a class it's obvious that I can break the code. If I modify the implementation of a method of a class, it is obvious that I can introduce a bug . But why should the creation of a new method in a class breaking existing code? How is javascript different in relation of this?
 
9:24 AM
creating a new method will not break existing code
it is similar to c or other programming languages
but there might be typo in the created method which could break
 
@Mr_Green it will if the new method is enumerable
which it is
 
enumerable?
 
creating a method could break existing code if that method exists in the derived class or if a class derives from that one which calls the base class version of that method
but oh, we're talking about C, nvm
 
should break only if there is syntax error
 
Or if five libs all want to implement Object.prototype.equals.
 
9:28 AM
no, we are talking about javascript
 
!!>Object.prototype.busted=function(){throw "busted"}; for(var k in {a:1, b:2}){console.log(k)}
 
@JanDvorak That didn't make much sense. Use the !!/help command to learn more.
@JanDvorak "ReferenceError: assignment to undeclared variable k"
@JanDvorak "undefined" Logged: "a","b","busted"
 
@ErroreFatale ^
 
adding a javascript function shouldn't break anything unless one of the following is true: a) it is already defined (redefinition) b) syntax error (duh) or C) you call your new function and it breaks something (semantic error)
 
or D) the above
 
9:30 AM
@JanDvorak how busted came after "a", "b"?
 
@Mr_Green the order is not specified
it does appear because every object now has an enumerable property "busted" in its prototype chain.
 
poor caprica
 
ohh ok got it
 
a) Object.equals doesn't exist in the standard library (or maybe yes), so I' won't break the standard library b) Write a function without grammatical error, it's the job of a developer c) See b
 
how about d)?
I think jQuery uses that
 
9:32 AM
To be honest I didn't understand D
 
In theory you are supposed to use hasOwnProperty, but in practice everyone is sane enough that you don't need this.
 
@ErroreFatale Can you imagine the chaos if everyone did that? Built-in objects should behave in a properly specified (i.e. it's in the spec.) manner.
 
And even if it worked, it's a hell to maintain
 
Newbie loves this feature. But please never, never add your own functions to native object's prototype chain. (except for shim.)
(On the same note, don't steal native object from an iframe and override that, either. I'd rather see you parse HTML with regx, really.)
 
What a shit! In C# is a norm to create extension methods of standard libraries... why is javascript so bad?
 
9:36 AM
@Sheepy hmm.. that last piece of comparison is disputable. What if I already have an iFrame?
@ErroreFatale because Javascript is everyone's playground, because you have no control about the environment version, and because it's not a good idea in any language (maintainability)
 
@Sheepy eval(input.match(/<script>(.*)<\/script>/)[1]))
 
Ok, I'll create a wrapper of Object.prototype
 
O_o
Why do you need #equals, again?
 
Because I like the idea of OOP with javascript... procedural programming looks "old" :)
 
so...
 
9:41 AM
@JanDvorak My concern is getting another context's Object, Array etc. into this context and mix them up, not how you got the other context.
 
yes Jan?
 
why do you want #equals in an OOP environment?
 
How is .equals related to OOP?
 
It does exist in Java
 
To do exactly what you always do in C#... sometimes you want to compare two objects by the values the contain
 
9:45 AM
It exists in ruby, too, but is equivelent to ==
 
next you'll try it for DOM nodes and will be disappointed
!!mdn object equals
 
@JanDvorak Object.is()
 
^
Oh, wait, that doesn't deep compare
 
no it doesn't
use JSON.stringify
 
9:47 AM
In my case I want to compute the differences between two arrays... if the two arrays contains objects, I can not use === to compare them... in this case I must use .equal()
 
@Mosho ignores functions, breaks on cyclical objects
 
@ErroreFatale JavaScript is not Java. equals is not a requirement of OOP. To do that in JS, simplest bet is compare their json as Mosho suggested.
 
deep comparing complex objects is a code smell
 
@Mosho then why does Haskell let you derive Eq?
 
I don't know?
 
9:51 AM
ok Sheepy... I have arrayA and arrayB. I must compute the relative complement of A in B and of B in A. en.wikipedia.org/wiki/Complement_(set_theory)
Does the thing you suggest does this?
do*
 
@Mosho because most objects are equal by value iff their properties are equal.
 
but we are not talking about haskell
in js object comparison is by reference
 
And yet you often want value equality
 
to compare values you can either use JSON.stringify which is fine for most cases, or a function that goes and deep compares
of which there are many implementation
my go-to is JSON.stringify
 
@Mosho the latter of which you claim is a code smell
 
9:54 AM
yeah, imo it is
 
@Mosho what if I want to compare two objects according to their "primary key"?
 
@ErroreFatale O_o
 
what is the primary key? you mean a property?
then just do that
 
@ErroreFatale Then compare those?
 
are you implementing a database driver?
 
9:55 AM
I wonder if @ErroreFatale has read about the XY problem.
 
No, but I get objects from the database in my javascript code... which of course have a "primary key" (yes, the word is for relational databases, but you know what I mean). If I want to compare two entities the important thing is the primary key, not other things
 
then compare that key
 
@ErroreFatale Yes. In fact the json compare technique also compares property order. So your array elements' properties also need to be defined in same order to be considered the same.
 
I think I understand
 
Hi, ppl have you got any clue why that is not working ?
<li data-value="2" onclick="console.log(this.attr('data-value')"> Tunisie</li>
 

« first day (1824 days earlier)      last day (3120 days later) »