« first day (1390 days earlier)      last day (3783 days later) » 

00:11
0
Q: mongoose query result can not export with data object

Furkan BAŞARANI have a mongoose query and I want update "entry_count" property of Entry object with result of count query but I can't update exported data. I can get data but can't export this is my query code: getTopicList: function(limit) { var deferred = promise.pending(); // create mongoose mo...

00:49
FOOOOK YES
Rift order is pending
about to ship
I'm playing the Toribash tutorial, and the AI is is explaining his apparently winning move step my step. Meanwhile I'm busy kicking his ass.
 
2 hours later…
02:40
Ugh. I don't like TypeScript
Does anyone?
The company I work for?
Fucking .Net devs.
tell me about it. Going on and on about how great classes are
Gross
If I hear the word Ninject again today I might snap.
02:55
.NET?
eat their families.
Is there any advantage at all to not having block scope?
@Qantas94Heavy implementation
ES6 does have a block scope, though
fewer scopes = less memory
alright guys, that feature request has been marked untriaged... now?
Marking this as Untriaged as this is a new feature request.
I don't see why an issue should be marked as untriaged just because it is a feature request...
Do you know what untriaged means?
something like undecided how good or bad it is...
unrated kinda thing, right?
03:10
incorrect
tri·age
Assign degrees of urgency to (wounded or ill patients).
untriaged
Not having been triaged
^from google dictionary.
so it is not assigned degree of urgency?
they idiot people, viewing two dev tools' tabs is "very urgent" (actually not) for me, it might not be for someone else... how can they assign it a general urgency status??
03:36
@JanDvorak because of the larger program I need to use an object pattern like this. I know that it is possible to search within an object and replace the string value of a key but I could not remember it; would have been nice if you had simply told me 'no problem its this syntax.' I don't understand why you offered help if you had no intention to help me in the first place.
@mibbit ...?
Unexpected '++'.	 for (i = 0; i < pinCount; i++) {
^waaaat????
JSHint reports this iconic statement...
looks like a syntax error before
@JanDvorak ain't possible because the code is working as expected..
pastebin?
03:41
that would take time, since there is some info in the code, which I can't post publicly... I would clean up and post in a while.
03:53
guys how do I add an event listener with a function with arguments?
the new jsfiddle collaboration is cool
@AwalGarg JSHint probably discourages ++ like JSLint does
@phenomnomnominal so what to use?
kk, lemme try
03:56
element.addEventListener('click', (function (arg1) { console.log(arg1); }).bind(null, 'hello'));
yeah, the error is gone
elem.addEventListener('click', function(){myFunc(myArg);}, false);
@phenomnomnominal ^not this?
@AwalGarg that would work too
@phenomnomnominal why would it?
03:59
@JanDvorak crockford doesn't like it
why? who the hell is crockford?
He believes it could be seen as confusing
!!tell awal wiki douglas crockford
04:00
The ++ (increment) and -- (decrement) operators have been known to contribute to bad code by encouraging excessive trickiness. They are second only to faulty architecture in enabling to viruses and other security menaces. Also, preincrement/postincrement confusion can produce off-by-one errors that are extremely difficult to diagnose.
Douglas Crockford. He wrote JSLint, of which JSHint is a superset (with the ability to turn off certain rules)
tell that moron to remove r from his sirname....
++ is very good.
who the fuck is Awal Garg ?
Taps his forehead in the general direction of Douglas Crockford... again
04:01
@AwalGarg do you know the difference between ++i and i++?
@tereško where did you hear that name?
@tereško Typical 12-year-old full of himself.
@phenomnomnominal yes. ofcourse I do. its about the order in which they execute incrementation and execution.
@AwalGarg well, not everyone does.
... and now there is another tiny avatar
04:02
@phenomnomnominal not my problem.
@AwalGarg that's a very bad attitude to have.
@AwalGarg You are the problem.
there are many things that you know, but I don't know, should they be abandoned?
@tereško whom are you ignoring now?
04:02
Write code as if the stupidest person alive will be maintaining it.
@JanDvorak me ofc ;(
@JanDvorak that "Awal" person .. seemed like a waste of my screenspace
5
@tereško Oh. That guy.
actually, I did find it a bit confusing at first, (in c++)... but then, I think it just suits the loop structure.
c++ the language, not c+=1
but I don't think it is that bad that it can be considered a "bad" statement..
Let me put it this way: you can write beautiful code that even Douglas Crockford will like... or you can attempt to meet the deadline
04:08
ok, but who is this Douglas Crockford, leave the JSHint things... I can write some rules for programmers to follow, that doesn't mean everybody will follow it and make me a great man.
He wrote JavaScript: The Good Parts
kk. so he is a very experienced and expert JS programmer... and he put what he thought good practices together in JSLint.
yes
He also invented JSON
popularised, not invented
!!wiki json
JSON (/ˈdʒeɪsən/ JEY-suhn) (not pronounced like "J-son", but like the common name "Jason"), or JavaScript Object Notation, is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is used primarily to transmit data between a server and web application, as an alternative to XML. Although originally derived from the JavaScript scripting language, JSON is a language-independent data format, and code for parsing and generating JSON data is readily available in a large variety of programming languages. The JSON format was originall...
04:11
The JSON format was originally specified by Douglas Crockford.
taking back, then
I used to think I will never use JSON and it is very difficult something, but yesterday, wow! I used it and it looks awesome, and extremely easy!
@JanDvorak I'm just saying I had a pretty concise basic question, and you just side stepped it and went into an area of the language you felt comfortable talking about. You never actually answered my question.
I really think JSON rocks, and so, ok this Crockford guy must be cool.
I'm sure he'd be glad to hear that
04:14
@mibbit I wasn't really sure what the question was...
And I'm still unsure
Yeah Jason is pretty cool
hes probably my favorite person
oh yeah, I like the JSON also because it sounds like Jason...
I work with a few people from India when I hear them talking I hear Jason sometimes
so I'm like.. hmm are they talking about me.. or JS :P
How do you JSON and not make it sound like Jason?
JAY ASS O AN
04:19
Jace-ON
Where the heck does ass come into play?
lol ass play
like really pronounce the end part idk
@SterlingArcher LOL
typical... Awal Greg
JAAAAAAAA SON
JS ON
ha this is better.
04:41
oh fuck, now I want to see the "sources" and "resources" tabs together... what on earth?
Whats the difference in meaning of the words - sources and resources? Arent they the same?
its like a re: sources
if i have this.variable = value1 in the Contructor, i man a function and and this.variable = value2, in its prototype, then why does the one in the prototype has higher precedence?
04:56
@blackbee it does not
so... when do you think will that feature request be fulfilled and rolled out?
oh, my mistake .. it does not..
Anybody done file uploads with node/express? Trying to find the best modern solution with progress bars
@MichaelSimmons what sort of progress bars? XHR2?
XHR2 would be fine, honestly progress bar isn't entirely necessary. I'm just finding a lot of examples using the deprecated bodyParser() in express
progress bars are ideal, but really just trying to find some way to do it at all
May need to save the files on disk locally and then have a task that syncs them to S3 or another CDN, it will primarily be images
I'm using Angular.js FYI
So as long as the server knows the %, I can update the client
05:07
why not use a JSON string of an array of the objects as colors with their properties stored in client's local storage? — Awal Garg 7 mins ago
Do I make any sense? ^
hmm doesn't really seem to describe server side
he didn't talk anything about server side. we don't know if the colors are different for different users... he said colors, and I think this is a valid option... but again, I am still a beginner
that's using express 4.0 at least
actually that seems to be working great on a quick clone/start
that's a good starting point at least :)
oh derp, i don't know why i thought bodyParser was deprecated. It isn't.
Sick, this may be exactly what I was looking for. Sometimes all it takes is an extra pair of eyes. Thanks gentlemen :)
how are y'all doin tonight?
05:33
@MichaelSimmons everything is in different modules in the new express.
Yep it's beautiful <3
05:52
localStorage["colors"] this is not a good thing, getItem and setItem looks more verboss
this is my first answer here, so do be careful! :P — Awal Garg 23 mins ago
i don't -ve vote,
ever
applause
all I can say is, I am used to that method, so.... its ok.
@JanDvorak you and only you can tell us what is right... please enlighten me.
06:00
All Hail @JanDvorak
@blackbee hey you can post that message on the answer so that those who downvote can see and act.
which one?
that verboss thing
@AwalGarg I'm not objecting against localStorage["color"], but constructors should be uppercase: Color.
@JanDvorak completely agree. I forgot, sorry. wait, I am updating it right now..
@JanDvorak done, also added a note. :D
06:18
hi all
Can some1 tell me why 'console.log('a'.localeCompare('A', 'en', {'sensitivity': 'base'}))'
I mean {'sensitivity': 'base'} is not woking
@some1 isn't here right now, but you could try with @SomeGuy
!!mdn localeCompare
sounds like they should be equal according to base
Yeah
06:24
1
Q: What's the issue in restricting the user to select value from auto populated list only in jQuery(i.e. user should not be able to enter new entry)?

user2839497I'm using jquery-1.9.1.min.js, PHP, MySQL, etc. for my website. I'm using Bootstrap's typeahed plugin to achieve the auto populate functionality on a text field. AS user starts typing into the text field, at the back end I'm fetching the necessary matching data elements through AJAX, PHP and MySQ...

@user2839497 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.
which browser?
I using node on sublime
basecly V8 runtime
*basically
is returns 32, by it shoud return 0, if 'base' is argument for case insensitive
Chrome supports options since 24. Not sure what's the corresponding V8 version.
!!> 'a'.localeCompare('A', 'en', {'sensitivity': 'base'})
@JanDvorak 0
06:27
what it returns?
HM it work in chome
thz
im using node build for sublime text, I gues I shoud update node -)
user2862309
06:44
@IGRACH this room is not for players
why not -)
user2862309
:D
user2862309
Why don't you just test this in Dev Tools of Chrome
user2862309
!!> 'a'.localeCompare('a', 'en', {'sensitivity': 'base'})
@Mr.Meshuggah -1
@Mr.Meshuggah 0
06:48
I was writting a function, so much easier to test from sublime, it shoud be reported though
user2862309
I don't like sublime, it's payed
payed?
user2862309
Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use.

Source: https://www.sublimetext.com/buy
I box apears from time to time to buy it, but every thing work with no problemes
*A
user2862309
*A?
06:50
A box sory tipo
user2862309
s y se pishe typo
user2862309
:D
why is my company stressing on using xml instead of json??
has it something to do with security
user2862309
no
06:52
@blackbee: ask yourself: "How can one plain text data format be more secure than another?"
well, can't we just encrypt it? lile public key and private key things
user2862309
@blackbee to favor XML over JSON you should need one of the following:
* You need message validation
* You're using XSLT
* Your messages include a lot of marked-up text
* You need to interoperate with environments that don't support JSON
user2862309
that's the main reason to use XML over JSON
user2862309
@IGRACH you could also join the BG room @ chat.stackoverflow.com/rooms/27321/bulgarian-developers
ok, so if i have xml then DTD also comes into play.. so now i have a validator
07:01
cl d <--both look so similar
hehe
07:26
WTF! $.merge(a, b) modifies a (by adding b's elements to it). Who the hell expect a function with this name to modify one of its arguments?! Especially if it also returns the "new" array
38 mins ago, by Mr. Meshuggah
I don't like sublime, it's payed
what a load of bullshit
Anyone's using Atom?
since it has an infinite evaluation period, it effectively is "donation based", with preset amount of donation
On and off
I paid for my copy of Sublime
@ThiefMaster it's documented
user2862309
07:28
@ThiefMaster by default it merges
user2862309
but it also returns
@ThiefMaster: Wat? I'd expect a.merge(b) to work like that o.O
user2862309
because you can use it for merging
user2862309
var newArray = $.merge([], oldArray);
What point is there in merging an array with an empty array?
Well, copying it, I suppose...
07:29
You can just array.slice() for that.
@tereško not liking an editor because it is not 'free' (the definition of free varies) sounds legitimate.
Morning
Honestly all editors but WebStorm kind of suck though, and WebStorm alone is pretty mediocre too.
Guys, I forgot a bit, does angular automatically init dependency modules for current module (if there are any)?
@ThiefMaster always creating a new object might seem expensive
@Eugene yeah
07:31
Thank you
Or however jan does those links :P
(No sample code in a "why isn't my code working" question)
@Cerbrus [tag:cv-pls]
Sweet, thanks @Florian
07:35
Hm, that's actually a genuine SO tag I could use to ask for closevotes on very bad questions? Or just for use here on chat?
Nah, it's probably a bad idea to use a tag for that, on the site...
Ah yes
makes sense
0
Q: How can they call def.then here?

user2309862I was reading about promises and found this fiddle created by the author of this post The code is here: var def, getData, updateUI, resolvePromise; // The Promise and handler def = new $.Deferred(); updateUI = function (data) { $('p').html('I got the data!'); $('div').html(data); }; g...

using <= instead of < in a for loop, simple typo
07:50
A motorcycle is a combination of pony, blow dryer, and vibrator - perfect for girls of all ages.
-Colin MacDonald
And a great HP/weight ratio. Perfect for men.
Ponies!
user2862309
@AwalGarg @SterlingArcher told you he would mute you if you mention that name again.
@Mr.Meshuggah zigi? when?
he didn't tell me anything
Yea, let's just mention the name again just when someone tells you it's a bad idea :P
user2862309
07:54
@AwalGarg well you don't read apparently, do you?
@Mr.Meshuggah i think you are just trolling me, but still I won't mention it again...
@AwalGarg err... no
@JanDvorak he is serious?
@AwalGarg err... yes
I must say I can't find that message in the chat history of the last 1.5 days...
07:57
^
@Mr.Meshuggah: can you link to the message? :P
user2862309
sure
@Feeds ok then

« first day (1390 days earlier)      last day (3783 days later) »