« first day (2550 days earlier)      last day (2397 days later) » 

7:00 PM
look into backend tracing tech and how that works
 
@ssube like a flowchart..?
 
@BenjaminGruenbaum he's playing Overwatch with @Zirak
 
@SterlingArcher "the algorithm design manual" and "Introduction to algorithms" are pretty good
 
Awwwww
 
I'm the breadwinner
 
7:00 PM
@BadgerCat I meant work wise
 
some of the most interesting ideas/parallels I find are comparing dev tools and ops tools
@SterlingArcher there are all sorts of ways to diagram data flows
 
I'll take a look! But, I think I'm going to finish up my math first
 
@BenjaminGruenbaum I wish I knew
 
Is he working fulltime?
 
I'm finding that thanks to programming, a lot of this is much easier to understand
 
7:01 PM
@SterlingArcher I think it starts with math required for understanding actually
 
Better late than never to begin enjoying math, right?
@BenjaminGruenbaum for the record, thanks for not making fun of me
 
Yeah, story of my life
 
@BenjaminGruenbaum He's doing personal projects, as I said, I'm the breadwinner
 
I wasn't a fan in high school either :D
@BadgerCat oh, interesting
@BadgerCat if I send him a message on FB would he see it?
 
Hmm... no
 
7:02 PM
lol, makes sense, I'll just talk to you there
 
Is there anyone in here who can help me with an onClick button code?
 
@svgcoding Welcome to the JavaScript chat! Please review the room 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.
 
What am I allowed to ask?
or discuss?
 
Your question...?
 
7:06 PM
you can definitely ask about onClick, but we'll need some code
 
Holy shit, I had no idea 1/(X/Y) simply flips the bottom fraction
 
bruh
 
demonator that's the word
that's not the word
denominator
 
how did you pass your algebra HSA?
 
@ssube let me fucking enjoy this >:(
 
7:07 PM
This is what I need help with if anyone can help.

Changing the button to a different background onClick
https://stackoverflow.com/questions/46644841/changing-the-button-to-a-different-background-onclick
 
We've been over this, I took the learning disabled algebra
 
wohoo, my IPA starts to be quite drinkable!
 
@SterlingArcher did you have to take the HSA tests?
 
@SterlingArcher oh man, you sure you are ok doing this all alone? :P
 
there were 4 of them, federal tests
 
7:08 PM
We had SOLs, which were multiple choice
but I always scored very low in math
my top scores were in writing and language skills
 
@SterlingArcher While you are on 1/stuff, I might just note this. sqrt of nth degree of x is the same as x^(1/n)
 
I have no idea what nth degree means
like angle degree?
 
powers
 
wait hang on, I'm moving onto logarithms
Oh
 
@SterlingArcher wait, missed that, fun of what?
 
7:11 PM
@BenjaminGruenbaum my lacking math skills
 
http://www.HostMath.com/Show.aspx?Code=%5Csqrt%5B3%5D%7Bx%7D

This would be 3-rd degree root
 
I don't think I've ever made fun of anyone for not knowing something in a serious way, it wouldn't make sense since I don't know a lot of shit. My math skills are lacking and even if they aren't - I don't know jackshit about chemistry, or botanics or a lot of other stuff I want to know - in computers I don't know a lot of stuff like hardware design, image processing and a ton of stuff.
 
substitute 3 with n and you have what I was talking about
 
I only make fun of people who pretend to know stuff they don't or make bold claims about stuff, not knowing something is an intergral part of the job
 
That's why I didn't get upset when the guys made fun of me, because they teach 😀 if somebody legit made fun of me I'd be mad
The what now
wait that's my work email
 
7:15 PM
@SterlingArcher another one you should know (especially since you are already doing logs, and what im throwing at you is more basic than that) is: x^(-n) = 1/(x^n)
 
All the detail is in the post I posted. I posted it earlier today, hopefully someone will get around to it. I'm only asking about the background, the rest of the code works fine, the functionality of it. On and off, just the background won't change from the initial class background.
 
Remind me how this works again?
How do the port listens not collide?
 
processes are allowed to share listeners
 
@KamilSolecki yup! Learned that in the last lesson. In high school that was so confusing to me
 
7:17 PM
you gonna use the two I gave you all the time when doing logs and exponents
 
@ssube How does it work? Who gets the request?
 
whoever accept()s it first, I think
 
@SterlingArcher if there is something you will have problems understanding, hit me up, imma try to help :)
 
Florian would know better
 
7:19 PM
@BenFortune dammm
 
@KamilSolecki thanks man! I really appreciate it
 
@BenFortune Where do these people crawl out of..?
 
no problemo
 
> By contrast, the SO_REUSEPORT implementation distributes connections evenly across all of the threads (or processes) that are blocked in accept() on the same port.
 
@MadaraUchiha Basements and stuff
 
7:20 PM
tl;dr: the kernel handles it
 
I see
Does that also work with unix sockets?
(I still have no idea how to bind those properly, and there's very little resource about it that don't involve C code)
 
sockets do their own thing
 
@MadaraUchiha (@ssube) Either REUSEPORT or pm2 does the actual accept and distributes accordingly
@MadaraUchiha probably not, it's a network thing
 
this is just for listening on ports
 
crap
 
7:21 PM
So the pm2 cluster mode is likely not to work with unix sockets
 
i didn't put an antenna on this thing
 
and sockets have supported multiple readers/writers long before the 3.9 kernel
I'd avoid letting pm2 do any magic
although I avoid it entirely now because it turned out to be mostly questionable magic, so... :P
 
Okay, say you want a distributed system (for simplicity's sake, on the same machine) with a load balancer in between, how would you do it in Node?
 
what connections does it need to take? http/1, 2, unix sockets, ...?
 
@ssube Are you saying to post my code inside here, or is what I posted enough?
 
7:25 PM
Ok, I finished my logarithm lesson. What should I do next
 
@MadaraUchiha You use a proper load balancer and not node
 
@ssube A normal web application
 
nginx
 
nginx and cluster
 
@Zirak That's fair, I'll put it behind nginx regardless
 
7:25 PM
or haproxy or an ALB/ELB or APIG or whatever
 
if you mean the node module cluster, that's what pm2 uses
 
@ssube So one app that invokes cluster on its own and distributes the connections on its own?
 
ohh, not that cluster
 
well, cluster can do many things
nginx can distribute to many processes running in a cluster (to share things other than ports)
or more likely your nginxs are on their own box and node is listening on a single port with a cluster of workers
 
I think we're talking about different clusters
 
7:27 PM
imo, pm2 mixes parts of systemd with parts of node's cluster module, and keeping those separate is better
 
the cluster module is a bit of a mess
 
@Zirak So I hear
 
it's not pleasant to use
 
would you say it's a bit of a... cluster?
 
Which is why I set my eyes on pm2 because it is relatively pleasant to use
 
7:30 PM
pm2 isn't terrible, it's just systemd light (and I was launching it from systemd, so that got weird) and the cluster module
I've always preferred putting the cluster logic in the app
 
I can see why you would want to have it up a few layers, but I don't trust node apps to behave well if they don't know they're clustered
 
@ssube I had to package up pm2 in a tarball with dependencies. that was actually a little tricky
 
@SterlingArcher don't get me started on npm's registry/package format
npm, ruby, and gradle are the only tools that have made me seriously consider quitting ci/cd
 
7:33 PM
@ssube you're telling me. I really didn't want to use npm-bundle but I couldn't find a good way to tar it up
or was it npm pack pm2
yup
 
npm's format is interesting
the package format itself is pretty lousy
but the way they install things to avoid dependency problems does work
costs a ton of disk, but works
 
Yeah I don't know why it tars into .tgz instead of tar.gz
 
the registry side is just all bad, though
 
tgz seems to have more issues tar -xvf that the full extension
 
tgz and txz are equivalent to tar.gz and tar.xz
or they should be
 
7:38 PM
For some reason I got a bunch of header errors the first unzip, then I tried it again, and it worked
weird af
 
huh. Did you copy the archive again or anything?
 
@ssube yeah I just rearchived, scp and blammed
 
How do you post images in here?
 
I can't read scp without thinking of secure, contain, protect
 
7:46 PM
> I'm just gonna lock this file up on a server so it can't eat anybody else...
 
This is what I need help with.

https://i.imgur.com/GFCOzIt.png

Changing the button to a different background onClick
https://stackoverflow.com/questions/46644841/changing-the-button-to-a-different-background-onclick
 
you probably shouldn't put that much code inside an onclick handler
put it in a function and call that
 
Also, I'm trying to grab json data from a url. jQuery.getJSON returns an object, but calling .data on the object returns undefined. Am I doing something wrong? I'm grabbing the json data with "jQuery.getJSON("https://api.datamuse.com/words", "rel_rhy=" + word + "&md=p");"
 
google what the fuck is this
 
The best thing ever
 
7:49 PM
@HaniiPuppy you need to use a callback
 
uuuh, they found my teddy bear!
 
A call-back?
 
getJSON is asynchronous
 
@ShrekOverflow I got a job in vegas
 
:D aweosme
 
7:49 PM
294
Q: How to return value from an asynchronous callback function?

GowriThis question is asked many times in SO. But still I can't get stuff. I want to get some value from callback. Look at the script below for clarification. function foo(address){ // google map stuff geocoder.geocode( { 'address': address}, function(results, status) { resul...

 
sorry didn't see that :D
 
await $.getJSON();
 
where at ?
 
SCP is a wiki that has articles on securing various creepy-pasta monsters and things :P
 
@ShrekOverflow he's one of the ceiling dancers for the hardcock hotel
 
7:50 PM
Thankyou \o/
 
sorry hardrock hotel
 
or @SterlingArcher you could do await((await fetch()).json());
 
love fetch
 
not with those semicolons you can't
 
omg guys, javascript made fetch happen
SUCK IT GRETCHEN
 
7:50 PM
@SterlingArcher it didn't tho
nobody even uses fetch
they still use jquery
 
I use it
pleb
 
@ssube good catch
 
you are gretchen
 
I use it too
although request.js should be standard
at this point
The most intuitive lib imho github.com/request/request
 
lol
 
7:51 PM
@ssube I'm just trying to get the functionality to work the way it is. The background image won't change.
 
@SterlingArcher If you're going to ask someone to read the docs and decline to teach jQuery, you might mention that e.g. a search for "jquery submit" has excellent odds of finding the official jQuery documentation for e.g. submit() as the top "I feel lucky" Google search result. — JonathanHayward 57 mins ago
Gosh I was so angry 3 years ago
 
also available as request-promise
 
s/intuitive/heavily inspired by jQuery's spaghetti syntax/
 
Please read the documentation for submit, I unfortunately don't have time to teach you to jQuery — Sterling Archer Jun 20 '14 at 21:17
Damn J, you crazy for that one
 
could anyone tell me what the equivalent how to use this in es2015 ?
 
7:53 PM
I instinctively want to downvote every answer there
 
@Rooster this
 
i get unexpected indentifier when i try to do that
 
how are you trying to use it?
 
    page.on('response', resp => {
      console.error('aaaaaaaaaaaaaaaa', this)
err, actually that works
 
is this defined at that scope?
 
user1596138
7:54 PM
@SterlingArcher but brpo
 
@ssube request not really
 
user1596138
@SterlingArcher If you're going to ask someone to read the docs and decline to teach jQuery, you might mention that e.g. a search for "jquery submit" has excellent odds of finding the official jQuery documentation for e.g. submit() as the top "I feel lucky" Google search result. — JonathanHayward 59 mins ago
 
user1596138
My face
 
how do I get a reference to page there?
 
it reminds me of python's request
 
7:54 PM
changing "var data = jQuery.getJSON("https://api.datamuse.com/words", "rel_rhy=" + word + "&md=p");" to "var data = await jQuery.getJSON("https://api.datamuse.com/words", "rel_rhy=" + word + "&md=p"); causes the code to stop, saying "await is only valid in async functions"
 
@ShrekOverflow how?
just by being a pain to use?
 
use the promised version
 
one more station to send up
 
const response = await request.get('/blah');
 
@KevinB go gettum
 
7:55 PM
@SterlingArcher <3
 
I find fetch for post extremely confusing (name wise)
 
request is fine if all you want to do is make the most basic requests
 
@Mosho I wasn't offended 😀 we kewl
 
like the python request class, it breaks fast
 
guys why do condos in Boston cost so much?
 
7:55 PM
whats the promised version?
 
@ssube example?
 
putting 3 identical stations up around the kerbin system
 
condo's are always expensive
 
2 launches each
 
especially freaking condo fees
 
7:55 PM
@SterlingArcher do you like devildriver
 
@Rooster request-promise a wrapper around request/request that exposes promises
 
My friend was literally paying more than I pay in rent now (on top of her mortgage) in condo fees
per month
 
i have to do that to get a reference to page?
 
@Mosho absolutely do
 
good
 
7:56 PM
@ShrekOverflow it's been too long, I don't have one at hand. The explosive verbosity is a problem, any complex requests are dozens of lines.
 
And how is that different in fetch?
I find fetch even more verbose :| usually
 
we need more http clients in JS.
 
0
Q: Please help, child slideshows within single parent container not working

merivelkind professionals. As the title suggests, I am trying to get individual slideshows to display within one main window. I have a sidebar on the left of the page which would allow users to pick a section (wildlife, landscape, golf, misc). I cannot get any of the child slideshows to display withi...

 
crap, i can't send up this last station, i'm out of scientists
 
7:57 PM
kek schalla.me/post/bypass-global-mention-restriction-slack client-side validation strikes again
 
@BenFortune In that same direction github.com/axios/axios
 
@MadaraUchiha whatcha doing
we use pm2 and unix sockets
among other deployment/networking thingies
 
> Additionally, it was mentioned that it cannot be changed further, because it would break the functionality of our backend message servers.
lol
 
Unix sockets are pretty awesome
 
> Oh shit, don't tell anybody we forgot to add auth
 
7:59 PM
!!afk riding 🏍
 
@ssube @SterlingArcher where is that from?
 
the link zirak just posted
are you filling in for Neal?
 
Can't access :(
 
> I think most people know the online chat platform “Slack” nowadays
talk about living in a bubble
 
I'm going to go but can you all share my code around to see if someone can help me with my code.

Image:
https://i.imgur.com/QvayRtZ.png

Changing the button to a different background onClick
https://stackoverflow.com/questions/46644841/changing-the-button-to-a-different-background-onclick
 
8:03 PM
TunnelBear :@
 
@svgcoding The fuck, did you screenshot your SO question?
 
@BenFortune Yes, why not?
 
!!undo
 
@BenFortune I was told to post it in here, so that's what I did.
 
user2620028
username checks out
 
8:06 PM
@svgcoding you know... links exist, right :D
 
@KamilSolecki I posted both, image link, along with the stackoverflow link.
 
but... what use is the image, if we can just go to the question?
 
@KevinB I was originally trying to embed it in here, the image, but I don't know how to do that.
 
how do I tell my parents that the best thing they can do for me is stop trying to help me do what they forced me to do?
 
leave off the last part
for starters
 
8:09 PM
@towc Which is?
 
the uni thing
 
leave off most of the first part, too
 
it's fine, I might end up doing it just because rlemon would be disappointed otherwise, but everytime they send me a message or try to call me I start screaming internally and trying to put a nice face on
 
i'm confused though
 
@HatterisMad o/
 
8:11 PM
i thought you were planning to go to uni anyway
 
@towc Are they paying?
 
@BenFortune they say they are. I made sure to go through all the financial stuff with them, so they don't think I did something to harm them
 
For a start, stop being so ungrateful
 
yeah, jesus
I would do terrible, illegal things for the thousands of moneys they're burning on you
 
user1596138
How do you even live right now @towc where do you get rent money
 
8:14 PM
did I ask for it? Sure, I might end up homeless and full of diseases at some point, but isn't that how society should be?
@Jhoverit that's my own
 
user1596138
Where do you get income
 
I don't anymore, but it was part-time jobs during highschools and the couple of jobs since I moved here
 
user1596138
And you just have a cash reserve that you are living off of
 
and I'm doing that to make sure they don't risk getting into any tax problems
 
user1596138
Have no idea what that means
 
user1596138
8:16 PM
Go to school or get a job lol
 
he can't legally work where he lives
unless he goes to school
 
How do I run a scrip in my bash profile?
 
I stopped having an income because as an underage, I can't legally earn that much, and they're responsible for it
 
or something, lemon looked up all the laws
 
user1596138
So go to free school
 
8:17 PM
I've already capped this year
 
@qaispak what kind of script?
 
@ssube that's a part of it
 
user1596138
@ssube Yea I remember when we did
 
@ssube. : I am not sure. I type source 'nameofthisscript' in my terminal and it runs
I want it to run automatically each time I open my bash profile
 
qaispak you can source into your profile as well, although . nameofthisscript is also useful
 
8:18 PM
I'd risk it if it was my own life, but if it can affect my parent's life? I wouldn't do that
 
user1596138
Okay babe
 
@ssube what do you mean source into my profile? do I just put ' .scriptname ' somwhere in my bash profile?
 
user1596138
You already did
 
user1596138
But yea
 
source foo and . foo will both run foo
where they do it (which shell/process) differs, you'd have to check the docs
but yeah, just add that to your profile
 
8:20 PM
Okay. So I'm trying to iterate over this page: api.datamuse.com/words?rel_rhy=toss&md=p - I'm iterating over it in the function passed to getJSON with: "for(var i = 0, length = data.length; i < length; i++) items.add(data[i][0]);" (items is of a custom list type) - is that not how I access data in a json table? My items list has right number of members, but every member is undefined.
 
i thought the dot and source were the same thing
 
my guess is return from async problem
 
I thought dot were for exe's
I'll recheck
 
@HaniiPuppy
 
14
Q: Bash: using dot or "source" calling another script - what is difference?

setevoyLet's take little example: $ cat source.sh #!/bin/bash echo "I'm file source-1" . source-2.sh And: $ cat source-2.sh #!/bin/bash echo "I'm file source-2" Now run: $ ./source.sh I'm file source-1 I'm file source-2 If I'll change call of second file in first: $ cat source.sh #!/bin/b...

 
8:21 PM
3834
A: How do I return the response from an asynchronous call?

Felix Kling -> For a more general explanation of async behavior with different examples, please see Why is my variable unaltered after I modify it inside of a function? - Asynchronous code reference -> If you already understand the problem, skip to the possible solutions below. The problem The A...

 
ok, so yes.
 
I know [] and [[ ]] do differ in where they run, but looks like . and source don't
 
[ is a command, [[ is bash syntax
 
`foo` and $(foo) should also be the same, the latter just nests better
 
I have to run script.sh
and then run 'proxy_on'
 
8:22 PM
data is an array or collection of some kind, but the individual rows aren't arrays or collections
 
command in my terminal
 
data[0] returns an object
 
can I add the 'proxy_on' command to my bash profile as well?
 
you can add anything, just be careful
if it takes a while to run or hangs, you'll have a bad time
 
Okay. It's instant I believer
believe*
though, I am not sure what this 'proxy_on' command is. They told me to run it but is it a script?
I can't even find where it is..
 
8:24 PM
belieber
 
@HaniiPuppy right, but what are you doing with said data?
where?
and then at what point does it become undefined?
 
Printing it to a text field in the function passed. The result of data[0] is undefined. I've just realised it's returning an object with the fields with names of the column headers as field names.
I'm used to type-safe languages, that seems bizarre :X
 
so it's an object instead of an array
data.foo, data.bar, etc
 
data[0].foo, data[0].bar, etc., yeah
 
bout to rescue a kerbal named Joe
very creative
 
8:28 PM
And my code's now working \o/
Thankyou
 
8:52 PM
Anyone here use aws-sdk regularly? Is it possible to update the credentials on an S3 service?
 
Are you looking for STS ?
 
I assume you mean service in the sense the sdk uses it, not actual aws services?
 
@corvid Yes
 

« first day (2550 days earlier)      last day (2397 days later) »