« first day (2778 days earlier)      last day (2156 days later) » 

1:21 AM
morn!
@KarelG Sorry, completely missed this message. No, I work in Singapore now
 
 
4 hours later…
5:16 AM
hi guys, got question mongoose schema, if i were to have a particular structure to a schema
docs
subdocs
subsubdocs
subsubdocs
subdocs
subsubdocs
subsubdocs

where both docs, subdocs, and subsubdocs use the same structure, is there a way to specify the schema once and i just need to deal with the docs structure.
all the docs and subdocs, use different variable name, but they all follow the same structure.
i think i just asked a really stupid question, nvm. i got it figured out, should've thought harder before asking.
 
@Shmiddty its bit different if you could give me chance i can explain, is there any way to contact
 
 
1 hour later…
6:52 AM
hello
 
@AbdallahEl-Rashedy Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@AbdallahEl-Rashedy hey
 
7:07 AM
guys I have a question.
I moongose how can I limit a creation of one object IE "myID :type: String"
I want something like I give my users an ability to change that to 2 new once.
 
7:33 AM
so, I found a possible job with MEVN (mongo, express, vue, node). Sounds somewhat bullshitty, but I'll give it a try
 
7:57 AM
interesting
eh Miau is on the most recent one
so it tracks your "read" activities too
 
mornings
 
8:27 AM
1 message moved to Trash can
@blueblood Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
hi guys, i need help in processing a JSON response. how do I specifically get the "percentile" of say "trait_id":"facet_adventurousness". If say my response has the following response

https://gist.github.com/themagnificentyellow/447d494413eeea29d0f093e2344c1b1f
so querying a json field which is an array, where each array is a subdocs with an id, and the subdocs associated with this id, has field of array of children, where its children again is another subdocs, with an id, but more importantly i want to get a value from in one of the field.
 
8:42 AM
whew. that was a nasty problem
Our system administrators decided to switch us to Java 8 in test and in preproduction, and blocking the old Java 7 (with a courtesy e-mail after the fact). My procedures no longer worked, and since they courteously let me know they planned on updating production on monday, I was in a seriously bad spot where nothing of mine was going to work this monday
In any other company, I'd assume the systems administrator would get in trouble for just up and changing things which causes problems...
 
they blamed you?
 
9:30 AM
@Neoares No, though I sincerely doubt if they'd give me the benefit of the doubt when my part stops working
the question would be, "Why is your part not working properly?"
 
this is getting quite philosophical
wrong chat
@Neil your answer must be "cause someone fucked up the server"
always go non-technical
 
@Neoares There's a serious unbalance here in this office
 
the typical office, in which they call you "the informatic" when you're a computer engineer?
 
10:05 AM
why would you use for of, vs for each?
ie for (const example of DATA) {
vs
DATA.forEach
 
to avoid calling a function, for example
simpler (and faster) for async/await
easier to break
 
ok, and the scope is not in a function
easier to break?
 
you can't have a break statement in a forEach loop
 
ah yeah
 
!!afk
 
10:14 AM
really faster?
 
1 message moved to Trash can
@namzaG Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
i need it only to work when its never set
and after set once it will not work
var cookieAfdeling = setCookie("rel_dep")
if (cookieAfdeling == null)
    {
         SetEntityEmployee("#dep", false);
        zoek();
    }
hey guys is it possible to see of the cookie is ever set ?

but this will work when the val of the select bos is ""
 
10:31 AM
@Neil like... ?
 
10:45 AM
@KarelG like it's ok for system administrators to break things so long as they write an e-mail explaining the change
no warning beforehand
that, for me at least, is like committing broken code
you just don't do that
admittedly they can't know if they'd break anything, but a nice warning beforehand is warranted imho
 
@namzaG
you can check if your cookie is set in the applications tab after dev tools of the browser under cookie section
 
Hi all, apologies in advance for asking. I been over all the documentation from Google and according to the documentation this should work fine. Going to drop some code below and then post an explanation of the error.
function FileInfoGrabber() {

  //Declare Variables to be used
  var ss, outputSheet;
  var files, pageToken, query;
  var file, fileName, fileURL, index;
  var outputToSheet1, outputToSheet2;

  //Set Sheet ID and Sheet Name below
  ss = SpreadsheetApp.openById("ID_OF_SPREADSHEET_TO_WRITE_RESULTS_TO");
  outputSheet = ss.getSheetByName("NAME_OF_SHEET_IN_SPREADHSEET");

  // Clear Output Sheet and add Headers
  outputSheet.clear()
  outputSheet.getRange(1, 1, 1, 1).setValue("File Name");
  outputSheet.getRange(1, 2, 1, 1).setValue("File URL");
Long story short, is I am trying to get all files in a folder. Get their title and url. This all works well enough. The problem is it does not return all the files in the folder. There is well over 500 files in the folder. When the results are written to the sheet it returns only 460 results.
I am not specifying a MIME type and it is returning different kinds of files. I been pouring over the Drive REST API v2 documentation for about 2 hours now and have tried all kinds of different methods. All with the same result. I am truly stumped...
 
11:07 AM
I am reading eloquent JS and cant understand this code in page 51
 
1 message moved to Trash can
@KingTut Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
function multiplier ( factor ) {
return function ( number ) {
return number * factor ;
};
}
var twice = multiplier (2) ;
console.log ( twice (5) ) ;
// ! 10
What is meaning of return function(number) inside the function, i cant undersatnd that part
@CapricaSix Please help me!
 
Caprica Six is the channel bot.
 
@New_2_Code u help me please
 
@KingTut javascript allows returning functions inside functions.. it's a useful technique when you want private or protected members.
so members declared in the nested functions will allow the members to live in a closure
 
11:17 AM
Ok then wen we call twice = multiplier(2) then twice is actually become a function with parameter "number"
 
yup
 
and now doing twice(5) means twice is the inner function, so it returns 5*2. But how can twice access the identifier "factor"?
 
because of scope
 
so technically twice is inside multiplier?
omg programming is already started getting confusing for me
@Sriya thanks it does make sense but still cant understand why factor is accessed by twice function
 
that's a quite typical use of a closure
 
11:30 AM
@KingTut It's called a closure
 
All the js function objects have scope chain associated with them.. which are closures. For your code when you do mul(2), it concludes to (number*2). When twice(5) is called, the it becomes (5*2).. Hence 10 is final output
@kenda
 
Basically, it saves the variable for the function to use
 
@KendallFrey agreed :)
 
11:43 AM
Ok i understand thanks @sriya and @kendallFrey
 
11:57 AM
is there a way that I can mimic the behaviour of a return without actually causing the function to end, so that I can return data but resume the function?
or would I have to use a file
?
 
@JacobSchneider generators
 
I'll have a look, thanks
 
12:18 PM
@KendallFrey Seems good, but not quite what I'm lookin for, I wanna, say for example build a listening function where I can return things and the calling function will detect this, and say, print it out, then resume looping, until it has to print more out
also, I'm using node.js
 
That seems like what a generator would be used for
RxJS would probably be better suited though
 
right
is there a way to integrate stdio?
Looking over the documentation, a lot of this stuff is way beyond me.
 
12:33 PM
Google App Script is a smoking dumpster fire of used diapers...
 
12:55 PM
Why isn't there more resources on Ember JS? How is EmberJS performance when compared to other popular JS frameworks like React and Angular?
 
@LakshmananMeiyappan Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@LakshmananMeiyappan Unless you find it to be slow, don't worry about performance
 
Thanks, will have a look at it
 
If it is slow, I can almost guarantee it isn't a problem with the framework
 
1:12 PM
hey
 
@Firecat Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@all, me and @Benjamin mapped out most of the cases we could find/think of, but if you want to weigh in with problems you have with Promises in node, feel free to add stuff here
2
 
1:36 PM
I have a basic question to ask, what is the difference between
$("class1 class2 class 3)" & $("class1.class2.class3)"
 
@MadaraUchiha :(((((
 
@Neoares ?
 
I don't have any problems with promises
 
@Breathing One is searching for element 3 in parent class in parent class2 in parent class1 and the other is looking for element class1 with classes class2 and class3
 
@MadaraUchiha he doesn't like fun
 
1:39 PM
He doesn't :((((((
 
She's drinking ketchup
Why
 
got it
thanks neil! :)
 
@ndugger where did you get that photo from lol
 
Someone dropped it in a discord that I'm in
 
@ndugger murica
 
1:46 PM
It looks like the lower sugar ketchup, at least
 
at least it's good ketchup
 
yup
 
heinz is de best
 
ketchup is overrated
 
Ketchup is only good when mixed with mustard
 
1:47 PM
she doesn't seem to consume a low amount of sugar, btw
 
or hot sauce
 
it's alright then
 
or mayo
 
or maio
 
Really, it's just not that great on its own
 
1:48 PM
I never choose to eat ketchup
 
it is, with french fries
 
I prefer mustard 10/10
 
@KendallFrey you should
 
I eat my fries without ketchup
 
but I like to add ketchup on with it
 
1:48 PM
even ketchup chips I avoid
 
@KendallFrey no, you eat poutine
 
I normally eat them plain
 
ketchup chips are gross
 
sometimes with vinegar
 
wtf
they become soft
I like them crunchy
also, why vinegar wtf
 
1:49 PM
because it tastes nice on fries
 
I'm never trying that
 
it's basically just like salt and vinegar chips
 
I'd rather eat poo
 
Do you put salt on your fries?
 
malt vinegar on fries is pretty good
 
1:51 PM
@KendallFrey ofc
 
vinegar is pretty similar
 
yes, it's exactly the same
 
no
salt and vinegar make a nice savoury combo
 
yes, but not with fries
I put oil, vinegar and salt to salads
idk... feels weird
 
I don't think I've ever had a salty salad
 
1:53 PM
also, did they preserve crunchiness?
 
I'll give you a salty salad
 
@Neoares eh?
 
if you ad something liquid to the fries, they become soft
and I like them crunchy
 
you don't soak them in vinegar wtf
 
you just dip them in it, or sprinkle it on
You don't marinade them in it, lol
That would be so putrid
 
1:55 PM
you just do it like ketchup, but less
 
also, how's your vinegar?
 
sour?
 
in general
I like this one
 
you don't use balsamic vingear on fries
 
1:56 PM
it's intense, but you add less and gg
 
you use malt vinegar
 
malt..
 
if a restaurant gives me vinegar for my fries, i'll use it
 
> if life gives you vinegar, dip your fucking fries
 
i don't dip
I sprinkle
 
1:58 PM
oh
I saw people adding vinegar to strawberries
I tried it once.. it's weird
it's supose to enhance the flavour
like, make strawberry flavour more powerful
 
I think it's pretty weird to put salt on watermelon
 
Hi, in regex do we need to escape colon character :?
 
I'll salt your watermelon
 
The weirdest food that people like I think is yogurt
tastes fucking weird idk why anyone eats it
 
2:00 PM
I only like custard style, where there aren't chunks of soggy fruit, but otherwise I like it
 
@KendallFrey with vinegar?
 
god i hope not
 
so what's wrong with it
 
sooooo
what happened to the other chat...
 
There was another chat?
 
2:02 PM
last message I see is from me at 9:57pm
on hangouts I was talking to @KendallFrey
 
what chad
 
but he left me
 
Stop being so clingy
Kendall has a life, you know
Not really
But maybe
 
sorry :*(
 
2:05 PM
jesus stop
 
HAMMERTIME!
 
pls
 
please don't make fun of my girlfriend
she likes ketchup; so what?
I like mustard. We make a great pair
 
she's pear shaped alright
 
That's why she switched to the reduced sugar ketchup
Gotta watch her figure
 
2:07 PM
 
user1596138
Friday before 3 day weekend is best Friday
 
@ndugger You sound like a seasoned couple
 
badum-tsch
 
2:24 PM
I prefer mustard honestly
unless I'm eating fries
 
@Neil well; I would not allow that. But yes; that is annoying
@KendallFrey some of those got sweetened with sugar ...
there are not much that consume natural yoghurt
 
I don't eat it either way
 
Yogurt! I hate yogurt! Especially the kind with strawberries!
I really ought to stop quoting Spaceballs. Nobody gets the references anymore anyway
 
yogurt is great
 
2:32 PM
@CaptainJackSparrow Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
all the advantages of making it look like you're eating healthily, without having to put in the effort of using much of your mouth
 
@towc This guy gets it
 
@CapricaSix Thanks, Will do
 
2:46 PM
oh man, I just remembered I had some money in some bitcoin wallets some time back
 
I hope you remember the wallet addresses
 
considering I have literally no money while I wait for the salary of the job I left, that's really good news
 
@Neil No please continue, I love Spaceballs
 
I missed the news; you left the job everyone kept telling you was a mistake?
 
wait, someone was telling me a stable job was a mistake?
I mean, it looked stable from pretty much all angles. I only found out it was really not stable when I left
 
2:50 PM
Isn't this the job where they never got you a contract, and didn't want to pay you?
 
well, it's the job where I didn't want a contract yet, and I had no legal means of invoicing them yet
 
There's nothing stable about that
 
> no legal means of invoicing them
 
well, they offered a contract and the money. I'm still doing the legal stuff so I can send them an invoice
 
You know you can just printout an invoice and mail it to them
 
2:51 PM
maybe it was cleaning a horse stable?, thus, a stable job
 
which is simply creating a company
 
it's not illegal
 
I'm not registered for business here
 
Ah
Well then you have no business doing business
 
Again, that's not a stable job
 
2:53 PM
stop right there, criminal scum
 
@ndugger towc has a different description of "having a job"
 
@ndugger how so?
 
towc has different definitions for everything
 
Does anyone know about the chrome cleanup thing? just read this forbes.com/sites/leemathews/2018/05/24/… that is basically talking about a special chrome address (chrome://settings/cleanup) to scan the computer for malware, but it looks like is not working for me on chrome mac... can you confirm?
 
right.
 
2:54 PM
@towc you didn't have a contract, nor did you have a "legal means of invoicing them". Just because the company is stable doesn't mean your job was
I'm not saying it couldn't have become stable, but it very clearly wasn't at the time
 
@ndugger well, the contract was ready, I'd just need to put in my company registration number, which I'll be getting sometime next week
 
Irrelevant
 
back
is towc already crying?
what happened this time
 
user1596138
@neoDev Who links Forbes. Gtfo
 
user1596138
To a web dev community lmao
 
user1596138
2:58 PM
The cleanup page works for me tho
 
@Jhawins ...
@neoDev Don't rely on chrome to scan your computer for malware
Also, don't rely on forbes for tech advice.
 
user1596138
@MadaraUchiha I thoguht we all hated forbes for the ad wall
 
they're a bunch of sellouts
 
Forbes doesn't let me read their site because I have an adblocker
 
same
 
2:59 PM
@Jhawins We do. Not ...ing you for that.
 
user1596138
I have it domain blocked so I don't forget.
 
> ...ing
 

« first day (2778 days earlier)      last day (2156 days later) »