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

9:00 PM
@OliverSalzburg I am using the multi-part uploader and want to change the credentials mid-way through (sounds strange, I know), how would this even be done?
 
Ah, now come the relevant details :D
 
const manager = AWS.S3({ credentials, ...params }).upload(options);
 
So you're using pre-signed URLs for S3 uploads?
 
Now, I need to change the credentials after some timeout
 
Oh, I see
Are you sure this is even an SDK issue? This sounds like something that shouldn't even be possible API-wise
 
9:02 PM
Well, our creds would expire in an hour -- we could have a big upload that will take more than an hour and might have to refresh the credentials with a new authentication request
 
That makes sense
I have never done that. That's for sure
 
If you take a bonkers question from Yahoo answers and put it on Info Wars it doesn't look out of place at all
 
oh gosh that last one
ouch
 
I like that they felt it necessary to clarify which sex's penis they were asking about.
 
@corvid I did mess with trying to change credentials in the SDK though, now that I think about it
 
9:06 PM
Hm, yeah, I am trying to change them within the upload, but can't find a good way on a "pending" upload without initiating a new one
 
Ugh, but I don't think I can really help. I remember too little :P
 
@towc BTW, never look up "sounding".
@SterlingArcher lol
 
do they even let you resume an upload with different credentials?
 
@KendallFrey fine, I won't
 
9:09 PM
Matlab, directional derivative, gradient, plot..... someone please kill me
make it end
 
user2620028
@ShrekOverflow \o
 
@GNi33 what time are you free?
can you pay for expenses?
 
whenever, just make it quick
 
@GNi33 what are you doing?
 
learning
I'm off the deep end
 
9:12 PM
@corvid Here are fragments of the fun I had back then :P github.com/aws/aws-sdk-js/issues/1121#issuecomment-243841794
 
what class?
 
Maths, calculus
 
I've been learning a little bit about multivariable derivatives recently
sexy stuff
 
hello
 
@Webster 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.
 
9:14 PM
Hi, thanbks, i read the rules
I'm afraid I'm a Help Vampire :(
 
as long as you know that going in :P
 
I've been pushing my project forward one help beg fiddle question at a time
 
@OliverSalzburg I figured it out with your help, thank you good sir
 
having a fiddle is usually enough to keep you on the sunny side of that line
 
knowing this, I plumbed the free JavaScript tutorials, looked up my problems and tried fixing
 
9:16 PM
@KendallFrey it's actually interesting
 
but when it comes to custom new functions I don't have much progress
 
I'm starting a company, any advice?
 
I just hate that I don't really have time to dig into it properly
 
@GNi33 I Know right, Matlab is god forbid the worst thing ever
 
@GNi33 Especially when one variable is a scalar and the other is a vector :)
 
9:17 PM
so now I'm doing assignements without knowing what I'm doing half of the time
@ShrekOverflow agreed
 
Can't you just call matlab from a real programming langauge?
 
oh, don't tempt me
 
why not?
I don't think there is anything that you can do with Matlab but can't with Python / JS
but it might be easier to just call some
 
I mean it's nice that I can just use the built in functions to check on my own calculations or to show me how a surface of a function actually looks like, but god, that syntax
@ShrekOverflow I'll have to upload a matlab-file for my assignments, so I'm stuck with it for now
 
Sad :(
 
9:22 PM
@BadgerCat yes. Hire me
ok sorry no I clearly have no experience in starting a company. Best of luck though :)
 
Are you an expert in deep learning or makeup?
 
user2620028
@BadgerCat don't trust partners would be my own personal experience... maybe that's not universal advice
 
I'm the queen of makeup
 
is that true or is it made up?
/sunglasses
 
I guess a piece of advice is be as fucking transparent as possible in everything, and encourage employees to do the same?
 
9:24 PM
@HatterisMad Good advice
 
you plan to start small or go full blown?
 
@BadgerCat can we talk in 2 years? :D
 
We have a plan to start small and test waters, then grow if it works out.
 
you and copy?
 
But we'll be applying for funding, if we get funding then we'll go crazy.
No
 
9:26 PM
there are books and courses to help guide you starting a business
 
in Germany?
 
In Mexico
 
ah, nice
 
such a vast topic I would use an exhaustive resource like that
 
@Webster did you know you could breathe air?
 
9:27 PM
...
 
with such a vast topic, finding an exhaustive resource will be difficult
 
@corvid Cool :)
 
@Webster My uni was very focused on entrepreneurship, so I know a couple of things. But yeah, I've been reading a lot.
 
@BadgerCat general research or...?
 
books and courses with things like "how to start your business" are a starting place, not a question easily translated through text
 
9:28 PM
@towc ?
 
purpose of company?
 
Oh, I guess it's e-commerce.
 
mercenaries? Creating skynet?
oh
ad algorithms?
if so, that's brave
 
where do you come up with these ideas?
 
a good thing about a software business is you can get your model up and running, tested without opening your doors
 
9:30 PM
I'm not sure what e-commerce has to do with machine learning if not for ad algos :/
 
We're going to make a beauty box company. Each month you get 5 beauty products based on your info.
 
or targeted marketing in general
oooh, not a meta thing
 
a "crate"
 
yeah
 
people love those, no idea why
 
9:31 PM
At some point I had 3 subscriptions
 
take a pic of your face and the machine gives you stuff to fix it? XD
 
Exactly
 
we had a year of loot crate, now our house is full of figurines
 
I'd love that
 
you've got a customer already
@Webster yeah, why would I pay to have somebody mail me their random crap?
 
9:32 PM
There are no beauty boxes in Mexico, so we figured we'd make one.
 
@BadgerCat sounds interesting
 
@BadgerCat Can I sign in?
 
It's only for women.
 
no ogres?
 
I'm a squeaking teen, I must count
 
9:33 PM
Actually if you like makeup you can sign up.
 
is there a good chatroom for matlab help? I'm super lost here
 
@GNi33 there's a mathematics thing, they probably use matlab a lot
#stereotypes
 
Is there anywhere I can pay someone to write a semi-complex bash script? Like Fivr but for professional code?
 
@jake what's your budget?
 
> Like Fivr but for professional code
 
9:35 PM
people who write bash don't go in public
 
@BadgerCat (that was from oboecat)
 
what's your semi-complex script?
 
@ShrekOverflow ah, sure
 
@jake toptal, maybe
there was another one, but I can't think of the name right now
 
@ssube it's a 2 part project: first one involves echoing numbers from 1 to 10, the second has to break into the pentagon. One is easy, the other is complex, so the result must be semi-complex
 
9:36 PM
If anyone's going to use toptal, use my affiliate link
 
thats a good question, where can I pay for troubleshooting help?
 
@Webster call the vendor
 
I'm paying a tutor from craigslist
 
@BadgerCat link?
 
there's upworthy, but thats a little formal
 
9:37 PM
upwork?
 
call sun microsystems?
thats what I mean
 
it's oracle now, but sure
 
upwork prolly best
although can the lowest bidder be trusted?
 
I think we found 007's son
 
there's also codementor
someone was on there from this room
 
9:38 PM
oh yeah, they hook you up with a "mentor"?
 
You can also apply as a dev with my link
 
cheers
 
@BadgerCat @ssube 👉 ssh into set backup server 👉 scp/download latest staging backup as DOWNLOADED_DB 👉 dropdb MY_DB 👉 createdb -E UTF8 -O deploy MY_DB 👉 pg_restore -d MY_DB -Fc DOWNLOADED_DB
 
I can probably only afford middling to low talent
 
you can probably convince someone on SO to write that
 
9:39 PM
 
that doesn't sound complex at all
 
@KevinB you stop that right now :(
 
and by "convince someone to write it" I mean "post a mostly-working version and they'll fix it"
 
Hello guys
Dunno if i'm doing something wrong
 
stahp what
 
9:40 PM
but i can't use Array.prototype.find
 
@GNi33 are you the boss of space?
 
on NodeJS
 
@ssube Idk how to pipe the downloaded file into my local, and I'm sick of looking at my half-ass script >:^[
 
posting KSP screenshots
 
I keep getting undefined is not a function
 
9:41 PM
@danidee what version?
 
but ksp is javascript
 
but... but...
 
@ssube v8.6.0 (I just upgraded)
 
@jake scp does the ssh+download, the rest happens the same way you'd run it locally
@danidee that is weird
[].find is undefined?
 
@danidee You go into the node repl, type [].find, and it's undefined?
 
9:42 PM
No...it works there
 
The princess is in another castle
Happy debugging
 
what does Array.isArray(yourData) say?
 
@ssube returns True
 
@ssube I have the sequence of commands down, I just have exceeded any time I would have saved by now 😛
 
this is the nearest i could narrow it down to
var x = [1, 2, 4]
console.log(x.find)
 
9:44 PM
@jake do you have any code?
if you post it, I'll at least provide accurate comments
 
@danidee and that logs undefined?
 
Can I make a silly question? I don't know anything about JavaScript, I only want to know: Can I make a browser game in this language or I am looking in the wrong place?
 
yep :( :( :( :(
 
@EnderLook 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.
 
@EnderLook pixijs.com
 
9:45 PM
@danidee you might have messed with the prototype chain young man
 
@BadgerCat I would be more interested with that kind of service for food
 
It's causing my tests to break
 
in that same script, console.log(Array.prototype.find)
and then console.log(x.constructor === Array)
 
before i use Array.prototype.filter and just picked the first element instead of find
 
@towc ?
 
9:46 PM
@towc dude
3 mins ago, by Zirak
@danidee You go into the node repl, type [].find, and it's undefined?
 
@towc you better edit those quick
 
2 mins ago, by ssube
what does Array.isArray(yourData) say?
 
@ssube node repl is not the same script
@Mosho flags?
 
dumb
 
and?
 
9:47 PM
@towc only zirak's message said repl
 
@towc Pasting the exact log
it returns
LOG LOG: undefined
LOG LOG: true
 
they wrote a function for that in code golf
 
@ssube Just our copy-paste KB article. Ill make a gist
 
@danidee so you messed with the prototype chain
 
9:48 PM
@towc oh it wasn't dumb
I misread your messages :D
 
somehow Array.prototype.find is undefined. Try to see how far back the code it happens
 
I find that highly unlikely tbh
 
@towc It's probably messed up....Though it wasn't me :)
 
(should be obvious, but you never know)
 
Maybe i should give more insight
I'm using Karma to run tests
 
9:49 PM
so uh, I might have messed up a little in my API design, although am not so sure about it (but most likely, yeah).

So far, to access messages, the route is: /rooms/:roomid/messages + query params
 
I find it really really unlikely that anything will just make find disappear
 
i've installed a loooooooooot of plugins karma-webpack mocha etc etc
 
but now I thought it would be also nice to have a /users route
 
can they cause any issue?
 
why all the plurals?
 
9:50 PM
but then I'd probably want /users/:id/messages, and I would be essentially copying the /rooms/ route
which feels weird
 
@danidee do you have [].includes?
 
@danidee great. Go back in the code and see what makes Array.prototype.find undefined. If it's right at the beginning of the file, then you can try opening the node thing up on some devtools and putting a watcher on Array.prototype
 
@ssube oh, it sounded nicer to me.
 
Cuz i can guarantee that i didn't mess with the prototype chain directly
 
@KamilSolecki how is that weird? you're just applying two filters to the same data (which room vs which user)
although I think having a third endpoint, /message and taking ?room= and ?user= would make even more sense
 
9:52 PM
thats exactly what im thinking
 
@Mosho Yep
LOG LOG: function filter() { ... }
LOG LOG: true
 
@Mosho well, it was undefined, one way or the other, so something must have happened. Or he's lying about the node version
@danidee check for [].findIndex
 
includes is newer than any of those
 
oh, TIL
don't look for .findIndex
 
@danidee what is that
 
9:53 PM
they left it out forever
it was super annoying
 
welp, uber refactoring time
 
@danidee that is very suspicious
what are you using to log this
and what code
 
@Mosho console.log
 
where are you running the code
 
I'm using console.log
 
9:54 PM
through karma, which doesn't allow for normal logging by default
 
that will wait till tomorrow I guess.
 
@danidee and that's what you get when you console.log([].includes)?
 
so either something redefined the console.log, or something is overriding something else
 
@Mosho with karma
Like this `/node_modules/karma/bin/karma start karma.config.js --single-run
`
 
what runners/browsers?
post your karma config (if you haven't)
 
9:55 PM
pff I haven't used karma in ages
 
I used to use it all the time and it broke (all the time)
 
but why is your Array.prototype.includes called filter
 
@Mosho oh god, I didn't even notice that
 
I just want to be able to walk away while that churns for an hour 😰
 
9:57 PM
but even if it is some wonky polyfill
why would it remove find
 
that's also probably why I asked about .findIndex
 
@jake most important, ssh takes commands: ssh deploy@ip "ls /nfs/pgbacks | sort | uniq" will do the whole first step
 
@jake wait lol, is niemiec your last name?
 
you should probably find and filter or something more safe and better
 
@KamilSolecki Yes
 
9:58 PM
@ssube This is the Karma config (With all the contents)
 
@jake Any polish/German ancestors?
 
+1 for frontend framework choice
 
@KamilSolecki You got it 😉
 
@danidee phantomjs is old af
it doesn't even do function bind in most versions
 
I know the entomology
 
9:59 PM
if you can use chrome headless, that'll be better
 
this is what the default for vue looks like btw:
// This is a karma config file. For more details see
//   karma-runner.github.io/0.13/config/configuration-file.html
// we are also using it with karma-webpack
//   github.com/webpack/karma-webpack

var webpackConfig = require('../../build/webpack.test.conf')

module.exports = function (config) {
  config.set({
    // to run in additional browsers:
    // 1. install corresponding karma launcher
    //    karma-runner.github.io/0.13/config/browsers.html
    // 2. add it to the `browsers` array below.
 
@ssube that is ancient, but was fixed in 2015
 
still haven't gone around to understanding how testing in vue using recommended tools works
 

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