« first day (2796 days earlier)      last day (2143 days later) » 
00:00 - 19:0019:00 - 00:00

12:00 AM
to be clear -- strawpoll is the new link
 
12:18 AM
hi every one
api.post('/register', (req, res) => {
  Account.register(new Account({ username: req.body.email,
    phoneNumber: req.body.phoneNumber, beamId: req.body.beamId}), req.body.password, function(err, account) {
    if (err) {
      return res.json({
                        "status": false,
                        "code" : 500,
                        "message": 'An error occurred: ' + err
                      });
    }
    passport.authenticate(
      'local', {
        session: false
    })(req, res, () => {
api.delete(':id', function (req, resp) {

  const id = req.params.id;
  // ask mongoose to delete the record with that ID
 // handle errors properly
});
I want to delete a user from database using my endpoint
can anyone help me
 
1:06 AM
@MadaraUchiha hangouts
 
1:33 AM
How come is there still not a decent SQL editor? All the existing options are just...bad.
 
I like Datagrip
 
1:52 AM
@elizabeth Read the docs
Moongoose is like english level abstraction :|
 
hi guys, am having a problem with this one. Am I doing it right?

    jQuery(function() {
                jQuery('#__bForm').on('submit', function() {
                    jQuery.ajax({
                        type: 'POST',
                        url: 'http://my.url.com/auth/register',
                        data: { property_name: jQuery('#property_name').val(),
                                first_name: jQuery('#display_name').val(),
                                last_name:jQuery('#last_name').val(),
500 error on the url
any suggestion please
 
Microsoft chrome OS - youtube.com/watch?v=jI8y8E2Z_tg
Me likey, Me really really likey
 
 
1 hour later…
how did that get 2 upvotes?
 
3:24 AM
maan.. react is so fun
 
3:47 AM
yeah
 
@RifqiThomi 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.
 
4:44 AM
wtf is with npm modules now having 'peer dependencies'? why do i need to install 'interactjs' just because a submodule uses it? I don't want to use it...
 
but people aren't using it like that ><
 
for example?
 
here they needed to update the version of a dependency, but instead they just made it a peer dependency so that you have to keep it up to date yourself?
oh shit it was literally 2 hours ago
 
yeah that seems wrong
 
and doesn't a change like that count as breaking and need a major version bump?
 
5:23 AM
probably!
people are pretty bad at semver
 
i look forward to the day when you can pay people to make your dependency a peer dependency
to force people using their library to install yours
 
i mean you could do that now
 
yeah
 
 
1 hour later…
6:35 AM
ok guys so I have a JSON object that starts with 'jQuery22102884786628738274_1528709485534'
what does that mean? is it some CORS auth/auto thingy?
 
Rob
Is it invoking a function named that? If so, it's probably JSONP
 
7:35 AM
hi
I am not able to change border uof a table suing jQuery
$("#div_Previewhtml").find('#previewTable').css('border','1');
 
@Breathing You want to sue jQuery for that? I dont think you have any legal basis..But I am not a lawyer
 
attr does it
but I wonder why not css
 
Try $("#div_Previewhtml").find('#previewTable').css({border: 1});
 
but why?
I mean I have always used css like key value pair seprated by comma
 
@Breathing I think you need to set the metric there.. "1px"?
 
7:42 AM
Read the docs – api.jquery.com/css
Also @SurajRao is right, you need to set a unit like rem, em, % or px
 
@Breathing What does border: 1 means in CSS?
If you wanted the attribute, <table border="1">, you're looking for .attr()
Else, you need to specify the units+color+line style like you would in CSS
 
@Pixelomo Thanks!!!
 
$("#div_Previewhtml").find('#previewTable') can be reduced to $('#div_Previewhtml #previewTable'). And try to be consistent. Either use single quotes (preferred) or double quotes only when using string values.
I dislike graphql already. And he likes it
deja-vu with jQuery
 
Thank you guys!
 
8:02 AM
Hi all how can I access functions inside IIEF inside my react component.
Any idea how to make use of javascript functions inside jsx react component ?
*IIFE
 
9:22 AM
hello*
 
9:44 AM
@KarelG Honestly, it can be reduced to #previewTable most likely
It's an ID, there can only be one of it.
 
yes. But you know that there is people whom dared to use multiple same IDs :)
@HelloWorldPeace you have failed your assessment . The first assessment is to print Hello World to the display.
 
@KarelG yes. But you know that there is people who are idiots :)
 
10:43 AM
Stackexchange has any board where you can ask for translations, appropriate ones.
. = ?
Auto translators generally don't preserve the essence of native language
 
Is it possible to have tooltip and title inside a selection box
any help would be appreciable
 
just create a fake dropdown box with custom elements
 
how bro that ? how?
please ellaborate
man'
 
11:33 AM
hey guys how to load a scene with javascript??? overwrite the current site no new tab.
load( "../index_defaultvideo(videosphere).html"); dont work
scene=index
 
you're not making much more sense
 
how do i load an index with javascript
 
what's an index?
what do you mean by loading?
 
index.html file
 
normally, you navigate to it
 
11:40 AM
loading i mean overwrtie my current index.html
 
through the url bar
or a link
@Delidragon that's still way too vague
overwrite it on the server? Change the contents of your current page on the client to match index.html?
 
1 message moved to Trash can
@Delidragon Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
<script>
      function zumvideo() {
        document.querySelector('#milchsphere').emit('fade');
        document.querySelector( "#curseid" ).emit('fade');
        document.querySelector( "#redcircle" ).emit('fade');
        document.querySelector( "#txt_vid" ).emit('fade');
        document.querySelector( "#txt_img" ).emit('fade');
        document.querySelector( "#playbutton_1" ).emit('fade');
        document.querySelector( "#playbutton_2" ).emit('fade');

        setTimeout(function (){
        load( "../folder/index_defaultvideo(videosphere).html");
    load( "../folder/index_defaultvideo(videosphere).html");
 here must be the mistake
i cant simply load it without javascript cause of the timeout
 
you probably want something like fetch(path).then(res => res.text()).then((html) => document.body.innerHTML = html)
btw, what you're doing is probably wrong
 
there are many things that is wrong
 
11:44 AM
you want an SPA
read up on those
 
there is a reason i dont make an SPA but i haven the time to explain it properly i try your line of code
it works :D
thx dude fetch(path).then(res => res.text()).then((html) => document.body.innerHTML = html) was perfect
can you reward someone in chat?
hmm feel appreciated :P
 
you can reward me :p
 
@Delidragon reward me by reading the docs on everything that's happening in that line
also, note that all the previous javascript that was running will keep on running
this just resets the dom
 
!!lunch or finish code
 
@Neoares finish code
 
11:54 AM
!!sushi or udon
 
@Neoares udon
 
!!miso soup or chicken thai fingers
 
@Neoares miso soup
 
but it's hot
well
 
im stupid how can i reward someone xP
 
12:03 PM
learning so you can help others is a start
 
i mean can i give you a badge or something?
 
I honestly don't care about rep or badges
or stars
 
ok then i send you some positive vibes :D Im done for today bye bye have a nice day and thanks for bringing me knowledge
 
well, I told you what I want you to do
positive vibes ain't a thing I care about either
 
FEEL TEH VIBES TOWC
 
12:07 PM
i try to help when i can need some skills
by3e bye
 
@KarelG NEVAH
 
12:23 PM
Can anybody help me please?
https://stackoverflow.com/q/50815958/8556538
 
@VinitDivekar 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.
 
12:42 PM
TIL \012.
discovered it in an old code and it is an octal escape sequence where \012 = \n
 
\012 0.o?
 
it is to have a proper new line in a word document.
16
A: Understanding output of printf containing backslash (\012)

myaut\012 is an escape sequence which represents octal code of symbol: 012 = 10 = 0xa = LINE FEED (in ASCII) So your string looks like 55[LINE FEED]34. LINE FEED character is interpreted as newline sequence on many platforms. That is why you see two strings on a terminal.

seems kinda obscure tho. gotcha replace to \n
 
1:32 PM
why is 9 afraid of 7?
because 7 is a f*cking psychopath, man!
 
18 is a nice object though
 
stop objectifying numbers, it's unwelcoming
 
1:47 PM
Ooh you probably did not have seen her
rule 34 has striked many representations of 18
 
2:11 PM
I'm trying to pipe the output of docker when called within node
the thing is that docker's output changes over time. It's not just appended over time, but it deletes previous output
and I'm not sure how to do that
there's likely some streaming system in node that allows you to do that, but I can't find it
 
you need ssube for that
but did not have seen him for a while
 
it's the same thing that npm does, maybe I can dig through that code, but urgh
he fled to discord
 
Us lowly pleebs were not invited to join them in discord
 
2:47 PM
Hi!
Can somebody help me with Istanbul test coverage?
I'm not able to get all files in the coverage report
 
guys my api.delete is not working kindly can you please correct me.
0
Q: How do I delete a mongodb collection from a restapi

elizabethI'm trying to delete a user from my mongo collection but unable to figure out how sharing my register request and a bed attempt on my part. api.post('/register', (req, res) => { Account.register(new Account({ username: req.body.email, phoneNumber: req.body.phoneNumber, nyuId: req.body.nyuI...

 
today, on "what's the new wheel I'm reinventing" : "hey let's create a tiled 2d map on canvas". do you like canvas? I've known them for like, 12 hours, and like, it's dope.
 
@elizabeth you're only checking if there is an error or not, you're not actually handling errors. Log them out
 
can you help me please
 
3:01 PM
I just did, use your debugging tools and tell me what happens next :)
hint: console.log()
 
user1596138
@SterlingArcher Why's everyone keep saying that? Room's not dead we are alive as ever. Just a few guys don't talk anymore
 
@elizabeth Maybe you should try and like... actually code something? you might have a very short and painful career in engineering if you get vanquished by such problems.
 
user1596138
@FélixGagnon-Grenier That was very abrasive with no actual point.
 
user1596138
You need some coffee
 
3:06 PM
@Jhawins there's been a lot more inactive periods of the room. After I took a small break I noticed that my work got better, and I was doing more of it. So by not participating in drama, or memes, I'm getting ahead on my shit, and work is getting easier
 
@Jhawins Much like a conversation between you and I :P
wew
 
user1596138
What do I know lol just guessing
 
I guess the same
 
user1596138
@SterlingArcher That meme you sent me yesterday was dope
 
The sign jump?
 
user1596138
3:07 PM
;P
 
I want him to try again, but this time nail it
 
user1596138
I've been slim on actual work this last sprint.. Has been kinda annoying but they don't want me working much ahead (they haven't created the tasks)
 
@SterlingArcher so what, work is more important than pointless conversations with strangers now? What has this world become?
 
user1596138
And we've downsized staff so that and lack of hours at the same time has concerned me
 
user1596138
But sounds like nothing to worry about there are lower rungs on the ladder still
 
3:13 PM
We're constantly hiring people. In 7 months I've been here we've hired upwards of 15 people in this office, and maybe 7 in our cali office?
 
@SterlingArcher it is probably so attractive :P
that is partly a reason why I am rarely here when it is after 18 o clock (6 pm for USA plebs)
 
user1596138
@SterlingArcher Is that a good thing? Expanding or is it churn
 
Expanding is very good. I'm probably the dumbest one here, and we need all the people we can get to go commission sites until we get our deployment process more streamlined
 
i'm already overweight, expanding is not good
 
user1596138
Well yeah I meant are you expanding or is it hires and fires
 
user1596138
3:21 PM
@SterlingArcher commission sites? Wth are you doing these days
 
user1596138
Oh like websites lol
 
user1596138
I need more coffee. Sounded like physical sites
 
is there a way to update the files in a docker container and rerunning the CMD without having to wait for the whole thing to rebuild?
say I have a Dockerfile like this:
FROM node:8

WORKDIR /src
ADD src /src
RUN npm i
CMD node .
 
@Jhawins well, we have to deploy our server and hmi on a controller (server) in a potential non-online site
 
and I change something in src
 
3:23 PM
I'm a full stack engineer. Literally, networking, security, CI/CD, Node, and React
 
currently, I'm killing the docker-compose process, then building, then upping
 
@KendallFrey join the keto klub
 
but that's super slow
 
the kendall keto klub
 
there has to be a faster way
 
3:25 PM
i like spaghetti, no thanks
 
user1596138
@ndugger Can I get a tshirt with the acronym
 
@elizabeth why'd you steal that poor girls identity/profile?
 
So do I, but I'm not happy being a fat sack of butt anymore.
 
> Elizabeth Palmer ’19 weighed in all the way from China, where she is currently studying Biology and Chinese abroad. - Tuesday, October 24, 2017
Unless as of October 2017 China didn't work out?
And you had a crazy drastic change of heart in degree direction
 
1 message moved to Trash can
@Suisse Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
3:29 PM
var xyz = [1,3,5];
do = function(a,b,c){
return a+b+c;
};

//is it possible to pass the xyz array to my do() function without doing this: do(xyz[0],xyz[1],xyz[2])
 
user1596138
That's mod flag worthy
 
@Suisse do(...xyz) I think
 
.apply() will do it too
do.apply(undefined, xyz)
I think
I've never actually used .apply()
 
wha
 
@Cereal do(...xyz) does it! thx! es6 fck yeah!

@ndugger do.apply(undefined, xyz) this does it also! apply/bind fck yeah!
 
user1596138
3:34 PM
LOL fck yea
 
3:56 PM
Good day
I want to know if XHR supports returning generators from server
 
user1596138
If you hold a job for 2 years under 1 title, then get a different title (Sr) do you list them as separate positions on things like LinkedIn?
 
user1596138
@SterlingArcher what would you do
 
if your responsibilities changed, i'd say yes
 
@MáximaAlekz you mean observables on socket/sse connections?
 
user1596138
They didn't really change
 
3:57 PM
I'd update the title for sure
 
user1596138
But I can't put Sr for 3+ years when that's been 1.5 years.. Don't want to not put Sr
 
but if the responsibilities did not change, not much point in making it separate imo
 
@towc I mean, a simple response, from PHP to JS AXHR
 
If your responsibilities didn't change, then yes, you were Sr for 3 years
 
user1596138
So you just make the original position use the updated title for the entire duration?
 
3:58 PM
@MáximaAlekz you're going to need to be clearer
 
that's what i would do
 
user1596138
Cool. SOmeone just asked me why I had them listed separate and I was like idk trying to be honest
 
i for example didn't get "manager" added to my title till ~ 4 years ago, but i was doing that job for the past 6. it just wasn't officially recognized
 
@towc, well. I have a function in PHP that yields an array, If as response I put that function, XHR will be able to handle that generator?
 
@Jhawins no you list your current title
 
4:00 PM
xhr only asks for data using http/s. How your server generates the response is up to you
I'm still unsure what you're trying to say, but it seems like something you can try easily
 
can i get an opinion regarding style of imports in angular.
what style or syntax is preffered
import { AuthService } from 'src/app/auth/auth.service';
or
import { AuthService } from '../../auth/auth.service';
?
 
user1596138
@SterlingArcher So even tho I had a diff title for 2 years I list my current title for the last 3? Just making sure you got it lol
 
should i use the direct path or relative path
 
user1596138
I guess it makes sense
 
user1596138
I didn't change positions just titles
 
4:01 PM
@towc ok
 
@Jhawins yeah, doesn't make a massive difference to people looking
 
@FrankVisaggio did you check the official style guide?
 
doing so now
 
user1596138
Yea I figured
 
do that before asking next time, otherwise you're just wasting someone's time
 
user1596138
4:01 PM
Cool that what I did
 
user1596138
@towc Room feels pretty hostile today jus sayin I have seen a lot of these immediate shitting on people responses
 
if the guy perceives it as hostile, he can tell me
 
well i am using palantirs linter which i assumed would follow the style guide
 
I think I'm being fair
 
and it says both are ok
I still havent found the exact example in the style guide but i think you are being fair
 
4:03 PM
it's just not a great tuesday
 
user1596138
@towc That's not really a good way to go IMHO. I was just letting you know how it looked to me tho
 
import { Hero } from './hero.model';
so if i see that in the style guide
it would be safe to assume use relative paths then? Sorry i work by myself with 2000 non developers in this building so there isnt much of a sounding board of people to run thoughts by
 
looks like it uses relative all the way through, unless something is in node_modules
 
thanks appreciate it guys
have a great day
and the style guide response, i didnt take as shitting on. It was a good idea i just didnt think of it myself at the time.
 
oh, I thought you meant you were looking at it while you were asking the question
otherwise, sure, just say "oh, I didn't think of that" and things will be clearer
have a great day too
 
4:11 PM
no i was looking at the linter rules
which wasnt as wise as the style guide
 
the left nav will reach SO today
 
let's throw a left-nav landing party
 
4:29 PM
@towc for the record "otherwise you're just wasting someone's time" is extra. You can convey the same message without telling somebody their very question is a waste of somebody elses time
Especially after he said "doing it now"
 
Ironic. He could save others from wasting other people's time, but not himself
 
y'all ignore me already anyway, so it works out
I'm having a weird thing where running CMD npm start fails, but RUN npm start works just fine, in a Dockerfile
 
"fails" is an interesting error message
 
the thing that fails is that apparently in the CMD part, npm can't find the nodemon dependency
while it does on RUN
which means there's some env difference somewhere?
but the things I've googled don't seem to mention something that could cause that
 
can you just print docker's env
 
4:35 PM
I mean, I can do stuff like CMD pwd vs RUN pwd, but there doesn't seem to be a different
I'll have a look at some other variables
I was hoping someone here ran into something like this before
well, $ env shows that for some reason the hostname is different, but the other variables are the same
I thought it might be something with path
but npm scripts shouldn't care, as there exists a node_modules/.bin/nodemon
 
not if the working directory is wrong
 
sh: 1: nodemon: not found
"scripts": {
  "start": "nodemon ."
}
oh wait, it might be an old version of npm which doesn't do the path thing
oh ew npm 2.15
nope, even with 5.6 I get the same CMD/RUN behaviour
 
> Stack Overflow is currently offline for maintenance
wow and now I'm not even getting the error page, I'm just getting a plain 503
 
@Tyler_Hibbard @StackStatus Working on it now, almost ready to deploy a fix.
 
RIP my super secret anonymity
 
4:50 PM
lel
 
I'm going to slide into your dms
 
5:16 PM
i wish Wendy's would slide into my DMs
 
I'll wear a wig and slide on in if it will make you feel better about yourself
 
that would make me feel better about him
 
what did i miss
 
Did i miss something?
 
5:28 PM
🚽
 
yeah that sums it up
 
lol
 
rip in peaces
 
stackoverflow.com/a/50822706/774078 "try following" i hate these kinds of answers
oh no
 
I was just looking at that question lol
 
5:35 PM
I just noticed the UI update on mainsite
 
yeah
not a fan
 
looks bad
 
*shrug* looks fine to me
 
looks crowded
 
you look bad too
 
5:36 PM
It's the same width as the other one
I checked lol
I was gunna complaing if they made it more narrow, but they just threw the navbar on the left
the content item things could be shorter though
Like on jobs they're huge
I can fit 6 on my screen
 
I liked the space on the sides of the page, it was a relaxed layout
 
They're doing a subscription model now... private Q/A!?
 
Is that teams?
 
yeah
 
yeah Teams has been all the rage recently
 
5:38 PM
QA for internal use I guess
 
My company is considering using Teams
 
I wish my company would
I'd much rather use that than Confluence
 
I don't think we will
Yeah confluence gets so cluttered
 
aaand my left nav is hidden lmao
 
We use confluence, everyone complains about it
 
5:40 PM
Also If anyone can fix the bad boy could you post a reply here Thank you — Luke Jan 28 '14 at 21:29
 
https://stackoverflow.com/questions/50822865/how-does-whatsapp-messegenger-etc-‌​works
 
we've been using discourse. It works alright, I guess
 
discourse looks alright. Seems kinda... old, I suppose
I haven't used it though
 
we just kinda yell
let the rep flow
 
hello
 
5:54 PM
ohhi
 
user image
12
 
bestkorea
 
I'm having a brain fart
 
// why is $ needed for nested classes?
CreateObject('java', 'com.google.firebase.FirebaseOptions$Builder');
 
because that's how Java references those?
I don't understand the question
 
6:02 PM
I'm trying to require all of the images in a folder and put them into an object with webpack but it's not seeming to work
global.allImages = require.context('../assets/img/', true, /\.(jpe?g|png|gif|bmp|svg)$/); will require all of the images, but allImages seems to be blank
{ [Function: webpackContext]
  keys: [Function: webpackContextKeys],
  resolve: [Function: webpackContextResolve],
  id: 4 }
Is what it returns, does anyone have any idea how to get the required images into an object?
 
@forresthopkinsa what seemed odd is in java you wouldn't have to import the nested class, you just import the parent and you are able to access the nested one. but i have to instead import the nested class directly, and dot notation wouldn't work. I couldn't find any documentation as to why that is the case
I couldn't just import FirebaseOptions and access Builder directly either
and i don't know java very well, so could very well be some basic concept i'm missing
 
ehh yeah Java kinda takes care of importing nested classes behind the scenes
but if you're using build tools with Java, for example, you still have to specify inner classes explicitly with those
 
Stupid question, I just didn't read the manual ^^
Well now I can't figure out how to reference to it :/
 
@ndugger If I get a cat named "spaces" we can then have a "tab vs spaces" argument.
 
user1596138
6:27 PM
@ShrekOverflow I'm surprised you got that being ESL lol
 
user1596138
Tabbys vs spaces
 
ESL ?
What does that mean?
 
english as a second language
 
English is not my second language
 
Are you sure
Sounds like something an ESL person would say
 
6:39 PM
Lets put it this way, I speak more english than any other language with the only exception being JavaScript.
 
that's not what "first language" means
 
But I barely know any other languages :P
I know you are referring to the "Mother tongue = first language". I don't resonate with that at all.
 
Can someone explain me me code coverage please? I don't understand it
--------------------------------|----------|----------|----------|----------|-------------------|
File                            |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
--------------------------------|----------|----------|----------|----------|-------------------|
All files                       |     2.98 |     2.78 |     3.64 |     3.01 |                   |
 actions                        |      100 |      100 |      100 |      100 |                   |
  dashboard-actions.js          |      100 |      100 |      100 |      100 |                   |
AppMenu.jsx is at 100% in branch, but not AppHeader.jsx
But the tests are made
 
Cehck all possibilities and edge cases luke
are you only programming for nothing to go wrong ?
 
6:57 PM
Hey... is SO main layout totally fucked for everybody or just for me ?
like misaligned or miscentered things, huge useless title, etc.
 
00:00 - 19:0019:00 - 00:00

« first day (2796 days earlier)      last day (2143 days later) »