« first day (2386 days earlier)      last day (2564 days later) » 

7:00 PM
Doesn't he put fish in there? Aren't fish and frogs like mortal enemies?
It's like angry birds, but grosser, and wetter
 
That's why he needs more frogs
For his fish to eat
 
fish and frogs are not mortal enemies
 
@ssube thats actually pretty good, sorry for my late response, my internet service went out
I guess I'll go with that
 
Importing frogs to canada? That's a paddlin'.
 
speaking of frogs, check out this monster frog my daughter caught yesterday
that frog was frggin insane
 
7:07 PM
How did you prepare it?
 
haha we didn't eat it, but there was definitely some meat on those legs
she took it back to the pond behind our house
there are thousands of frogs down there, but only 3 we've seen around that size
 
I haven't seen frogs that big since I lived with my parents
they're out in the country and have a couple small ponds nearby
 
its insane man, the pictures don't even do it justice
 
my dealer keeps sending me pictures of thin mints, trying to entice me to buy more, even though I still have plenty
 
ah nice, that's sort of how we are @ssube location wise
 
7:09 PM
that's too pushy
 
@ndugger he should get with the times honestly. Thin Mints club
 
lol
 
@ndugger why would you even talk to somebody who sends pictures of that around?
 
pay a monthly fee and you get x thin mints per month/week
 
@ssube send me pictures on my phone? I don't care; is the local police department gonna hack into my phone and look at my picrures?
 
7:10 PM
yes
 
lol
 
with a warrant
maybe without
 
@Loktar She's got le warts now
 
> we heard there was some crazy thin mint shit going down here
 
> Sir, please set down the cookies and wipe the chocolate off your hands.
 
7:11 PM
Thin mints are the best girl scout cookies /discussion
 
> Do I smell thin mints in this car?
 
@Loktar she's adorable
 
@BadgerCat haha thanks
 
Gabi looks great too
 
I would say she's my fav but I can't say that
 
7:11 PM
@ssube It's a warning or a fine up to $200 for posessing under the felony limit, which is 42.5 g. I'm not worried about it; I have a 100% clean record
 
@Loktar but you just did.
 
@Loktar you can say that, and you will, unless they start paying up.
 
god dammit
 
well I can't access it @Loktar :/
 
True
 
7:13 PM
you can restrict messages to room owners but keep the link public?
 
Keeping glasses clean is a pain in the eyes
 
Which is why I walk around with dirty glasses
 
@Shrek meh it's not important tbh
 
@SterlingArcher that is terrible
I love it
 
7:37 PM
@Loktar I still want to see it D:
you are just increasing my curiousity
 
Thats actually the smartest thing to exist in react form history
now all we need is a full blown editor to write those schemas
and we'll be all set :D
 
there may be tools for json-schema
 
@Luggage Oh cool, I don't have to write it now
 
man this guy cannot go 2 minutes without making some sort of sound next to me :| always humming, whistling, talking, or coughing... it's so unbearably distracting
 
7:42 PM
has he farted yet?
 
Have you tried being passive aggressive?
 
You should fart to establish dominance
 
That's the only thing I've tried
 
o/
Web players like Spotify don't have any audio elements in their HTML, which means they must be dynamically creating WebAudio elements via JS under the hood, right? How can I look for them via JS?
 
X/Y; we won't help you rip off spotify's code. What are you curious about exactly?
 
7:46 PM
Finding the audio source. Shouldn't dynamically created things still be findable in the DOM?
 
Not if it was never appended to a parent node, no
 
but there's got to be some way to at least watch for the creation of such an "element", no?
 
You're gonna have a hard time trying to snag the audio source. Smart people have ways of making sure their source ONLY plays on their player, lol
@ZachSaucier Ummm, realms? proxies maybe? I dunno, you'd have to explore that, but you shouldn't be trying to hijack their audio source anyways. It's not gonna work, and you're gonna be frustrated for wasting time.
 
it's more out of curiosity than anything
 
What's the curiosity exactly? We can point you in other, more sensible directions
 
7:49 PM
Finding dynamically created audio sources :P
 
why though?
 
because I know my PC has got to have a way to play it
 
There was a jsfiddle-like site where you could write babel transforms, i think. Anyone remember the name?
 
So I want to see if I can find and play that same file without their player
 
@ZachSaucier they create an audio node in memory; you don't have direct access to it
just like how you can do new Image; it creates an image tag in memory
new Audio, new Video, document.createElement
etc
 
7:51 PM
right, but it's still there :P I figure there's got to be some way to access it
 
It's in memory; unless you want to find it in the source code and set a breakpoint, you cannot
 
you can search for nodes by type, that's a valid CSS query (so it works with querySelectorAll)
 
@ssube It's not in the DOM, it's just in memory
 
function foo(){
  new Image()
}
Without modifying the function, get me that image.
 
how do I run a script in dev tools before the page loads?
 
7:54 PM
That's what you're asking.
 
pretty much
Can't I do something like
(function(){
var old = document.createElement;
document.createElement = function(){
    console.log(arguments);
    return old(...arguments);
};
})();
 
only if they used document.createElement instead of new Audio()
 
With Spotify, probably not
 
@ZachSaucier Yes, you could override the global object methods
 
you can use ES6 Proxies to "listen" to stuff, which might help you out, but otherwise, you cannot do what you're asking
nor should you... this curiosity doesn't make any sense
 
7:56 PM
@ndugger Since when does curiosity have to make sense? :)
 
psh, spotify and even google music are damn near unusable without user scripts replacing the UI
 
@le_m Always
@ssube Google music's UI has devolved into garbage, but I still use it as-is
 
it hasn't really changed since launch :P
 
It has in small ways
 
ahh, found what i was looking for: astexplorer.net
 
7:58 PM
they broke playlists recently, but other than that, I haven't noticed much
@Luggage the parser that competes with babel has one of those as well...
 
why would I want to use the runner up? :)
a pity parse
 
interesting. Spotify uses document.createElement to create a video :P I wonder where that is
 
not sure I'd call it a runner up, eslint and a bunch of other stuff still use espree
 
astexplorer supports exprima and lets you write/test transforms
I was joking about the runner up junk.
at least for babel
 
@Loktar @rlemon @KendallFrey f-word
 
8:02 PM
ah, I thought the astexplorer page looked a lot like esprima's demo
are they by the same folks?
 
@Cerbrus Any ideas as to how to override the global object method for something using new?
 
Nope
 
@ZachSaucier you can't
 
no operating overloading
 
8:04 PM
darn
 
window.Audio = myRepacement; unless that prop is read-only and unconfigurable
 
@Luggage Just tried, that seems to work
 
@ZachSaucier Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
I know, Cap. I didn't mean to press enter
 
const originalAudioClass = window.Audio;
window.Audio = function() { // dirty dirty monkey patching
    console.log('new Audio() called');
    return originalAudioClass.apply(Object.create(originalAudioClass.prototype), arguments);
}
dictated but not read.
maybe: return new originalAudioClass(...arguments);
 
8:10 PM
both seem to run the same
 
does it work? I didn't test
 
ya, both give the same type of output
I'm still not seeing any audio being created, but I see some other stuff :P
I wonder how the create the audio then
 
I assume you have the above code run before theirs?
 
Yes
Ah, it's erroring
was so focused on the arguments showing up that I failed to see the errors
 
do the same to window.HTMLAudioElement
what is the error, btw?
 
8:20 PM
currently it's an illegal invocation. I also got "function is not a function" in the past
Oooh
document.createElement = function(create) {
    return function() {
        var ret = create.apply(this, arguments);
        console.log(arguments);
        return ret;
    };
}(document.createElement)
that works pretty well
for the elements being created anyway
 
I always miss all the drama :D
I'm loving it
 
@BenjaminGruenbaum the drama loves you too
 
^
 
@BadgerCat I meant missing the drama :D
 
8:30 PM
gotta get the drama from somewhere and none of us are old enough to watch our Stories
 
I have enough drama at my work
My client just called me to say that her other developer is "R-word"
keeping things professional
 
sounds like somebody I contracted with
 
Republican?
 
it's great how some of those people don't realize they're getting mentally blacklisted all over the place
 
She's always saying these things and bad mouthing him
 
8:34 PM
@BadgerCat Ravishingly beautiful?
 
@Cerbrus haha
 
Having a duplicate instance of the same program, with no comunication at all between them, is it posible, that having an exact 50% of any binary ( 1 - 0 ) result. One outputs the exact opossite of the other 100% of the times?
 
Ralph Nader?
 
nobody would call another human that
 
But on the other hand, the other developer always fucks up and blames me harshly. Then I point out his error and never apologizes.
 
8:35 PM
@KarmaDoe You want two quantum entangled processes?
 
@BadgerCat :|
 
@KarmaDoe yes. Most things are possible when you've got electrons flying that fast.
 
I can't wait until this is over.
 
@Luggage Yes, how do i program Quantum entanglement ?
 
user2620028
no communication between them would eliminate quantum entanglement wouldn't it?
 
8:36 PM
first time in SO chat. is it always this interesting?
 
@KarmaDoe you can do that for photons look into the research by the observatory in Hawaii, where they are using QE to teleport an electron. IIRC
 
@Brian Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
user2620028
@Brian there is usually more screaming and crying
 
@HatterisMad how do you define communication?
 
@Shrek Ogre is life, thanks.
 
user2620028
8:37 PM
@ssube one being able to observe a change in the other
 
@BadgerCat What are you looking for next? Data/ML stuff or something more broad?
 
@ssube I start with a new client on Monday
 
@KarmaDoe I'm not trolling
 
It's ML for security
 
they are actually doing experiments with QE
 
8:38 PM
 
@BadgerCat That sound perfect, and so fascinating.
 
@Shrek Yes, i know, im looking it up
 
@KarmaDoe :)
 
@HatterisMad there's a bit flipping attack somewhere that involves just writing to a block and can change somebody else's memory
memory is super unstable and there are some weird, really cool bugs
 
@HatterisMad They are both isolated
 
8:39 PM
@Shrek They have been doing quantum research for almost 100 years
 
@BadgerCat oh nice, security work is good stuff.
 
The CEO is extremely nice, there was another client who wanted me for ML in music, but I had to reject him because my plate is already full
 
user2620028
@KarmaDoe maybe its just my opinion, but i wouldn't say that something that is entangled is isolated from the thing it is entangled with. i mean thats somewhat the definition of the word entangled right? to imply that it in fact isn't isolated?
 
if you ever get bored, my company keeps talking about using ML for our analytics and usage stuff
 
@HatterisMad Two isolated systems can be entangled
 
8:40 PM
@KendallFrey Teleporting fundamental particles?
 
user2620028
then how are they isolated
 
we've got one person with a similar background but never enough data scientists
 
nvm
 
user2620028
if they are entangled, how are they isolated
 
@Shrek Not specifically teleportation, maybe
 
8:41 PM
@ssube do you hire remote workers?
 
@HatterisMad the whole reason it's so 'strange' is that even after being separate with no communication the two particles have an agreed apon relationship
 
@HatterisMad Because they're not interacting or affecting each other in any way
 
@BadgerCat yeah, most of my team is remote and a bunch of others.
 
user2620028
@KendallFrey prove it
 
Additionally, you can entangle particles that have never directly interacted
 
8:42 PM
will they pay me to learn ML on the job?
I'll learn you so good.
 
:D
 
@HatterisMad I feel that first you need to understand the basics. I'm not sure what would be required to "prove" entanglement.
 
@ssube cool, maybe after I finish my current engagement
 
A picture
 
There are many, many experiments involving entanglement
 
8:43 PM
@Luggage Mind having a small dev-dev talk :)
 
user2620028
i know almost nothing about quantum entanglement. Which is why i am perfectly fine to be proven incorrect. But i was with the understanding that the scientists were able to observe a change in the entangled particles
 
I'm about to leave and meet friends, but if it's short or another time, yes.
 
@HatterisMad To better understand it, if they are both entangled and 100 light years appart, the results are simultaneous, and one is always contrary to the other, it's proven that information cannot travel faster than light, so, in that regard they are not "communicating"
 
@BadgerCat yeah, if you're ever seriously looking, I can ping folks. Just let me know.
 
@HatterisMad Entangled particles do not measurably affect their partners through entanglement
 
8:44 PM
@Luggage just 5 - 15 minutes
 
@KarmaDoe It's proven?
 
user2620028
@KendallFrey how are they affecting their partners
 
"spooky action over a distance"
 
but we can talk about it on weekend
 
sure
 
8:44 PM
I just need a second opinion.
 
@ssube Not right now because I already do too much, but I'll keep it in mind
 
i'll be around most of the weekend
 
@HatterisMad They aren't, it's simply that there are correlations between the particles that can't be explained classically
 
Thanks man :)
 
user2620028
@KendallFrey yeah that was basically my understanding, and that was why i was saying how do you know that they are not communicating
 
8:46 PM
[aside] Observables are so cool :D
 
@KendallFrey Well, it's theorically proven
 
Is there any back pressure mechanism in Observables?
 
@Shrek try using them to replace or with IoC. It's so good.
things just... appear and start streaming
 
@HatterisMad I can't say with certainty that there are no nonlocal effects, but we have no way to detect those afaik
 
Yes!
 
user2620028
8:46 PM
since we don't know exactly how it works, how are we to make a bold statement saying that they aren't "communicating" however you choose to define that
 
I'm using it for lag compensation
 
and I believe RxJS has some backpressure
 
I ended up almost re-writing my entire code
and now things look so much saner.
 
it's not as complex as you might expect from like Akka
 
user2620028
@KendallFrey yeah my problem was that he was stating as a fact that they do not "communicate" with each other without any proof
 
8:47 PM
but they do differentiate between hot and cold observables and do some handling
 
Hmm
I'm trying to keep this low profile though
 
@HatterisMad Because there are principles in other theories that prevent that, so we have good indirect reason to think they probably aren't.
 
RxJS sems an overkill to me at this point in time
I have a very simple Observable based on the es7 draft
 
Rx 5 follows the draft and works with tree shaking
 
Oh sweet!
 
8:48 PM
@HatterisMad Good point, it's part of the theory, but not testable
 
4 does not follow the spec, make sure you use @reactivex/rxjs
 
user2620028
@KendallFrey ok so we have a theory, gotcha
 
I think
 
@ssube do you mind going deeper in tree shaking?
like what is it achieving from it?
 
@Shrek it's just written super modular, each operator is a file
so you can drop most of the operators you're not using
there's also a lite version in the package
rx isn't very heavy
 
8:49 PM
In quantum theory, states have to be described at the system level, rather than the particle level. So essentially you can have a state that is either two 1s or two 0s, but not both.
 
Oh that!
I might ping you a little more about it, do you mind?
 
@HatterisMad Nothing we know to date can comunicate faster than light, except for quantum entanglement, if you look at it that way.
 
so in that case, if you see one particle storing a 1, you know the other one must be a 1, even though it was originally 50/50 either way
 
@Shrek yeah, although I'm far from an expert, I've just been using it a bunch lately.
 
8:51 PM
@KendallFrey Or an inverse binary like schrodinger, one cat lives, the other is instantly dead.
 
@KarmaDoe you can't use QE to communicate though.
 
@KarmaDoe That's an entirely different thing
 
@KarmaDoe If you were watching the cat, it wouldn't die.
 
@Shrek not solely entanglement, that is
 
@Shrek Thats why i asumed they are not comunicating.
 
8:52 PM
@KarmaDoe I meant you can't make a device from it
Okay I'm going back to programming my temporal
cya.
 
GL m8
@KendallFrey But goes through a similar logic
 
@KarmaDoe No
 
user2620028
i would assume maybe my definition of communication is just not the same as theirs
 
No comunication between them and knowing the state of the other just looking at one of them
How is that different? Im failing to get your point, please forgive me.
 
I tend to think of entanglement as a local thing, where the correlation doesn't occur until the entangled systems interact again
That's not testable either though
@KarmaDoe There's only one thing to know the state of: the cat
 
8:56 PM
Yes, but i'm not looking at that, just the premise of the logic behind it
 
user2620028
im guessing schrodinger never had a cat to begin with
 
Or kids for that matter.
 
user2620028
because he should know if you put a cat in the box it gets pissed off and you will hear it
 
user2620028
from across the fucking country
 
He probably did have a cat but not in that sense
 
8:57 PM
he birthed a cat?
 
A K
imagine how the world would be if it was called shroedinger's kid
instead of cat
 
A little less oversensitive ?
 
user2620028
@AK would that be like playing the fat or pregnant game?
 
@Meredith til @Loktar is Schroedinger
@HatterisMad oh god lol
 
He did in fact have a cat at some point
 
8:59 PM
But not in that sense
 
If you guys don't mind me asking, what makes particles "entangled" in the first place.
 
@Brian Can you be more specific? Are you asking about experimentally creating entanglement, or what entanglement means in a general sense?
 
Well they try to split something unsplittable, and expect it to appear at either of two points, right?
Entanglement in general
 
I found out why I couldn't find any created audio sources on Spotify
they use video elements to play the music :D
 
@Brian There's nothing to split, they were never joint
 
9:05 PM
@ZachSaucier jokes on you, turns out spotify was just a youtube proxy all along
 
@Brian That's a bit different. The most common way that I know of is to get one source to emit two photons in a way they're entangled
 
@KendallFrey seems there's more experiments on QE than I knew thanks
Tried to make a Jukebox with the Spotify API once, kinda gave up on the idea because it involves hardware
I don't think you can use the API to control playback yet
 
user2620028
9:20 PM
oh zach, i remember seeing your blog when i was learning js
 
user2620028
i also remember you being in this chat a lot more often back then too lol
 
I am a regular in the web design chat. I was never that involved over here
 
user2620028
yeah i would have never been in that chat room lol
 
user2620028
i despise web design
 
user2620028
9:22 PM
i always pretend that i am colorblind
 
how's the javascript going guys
 
too busy messing with excel docs today to do javascript
 
2200 lbs of dirt later... I'm fucking exhausted
back yard is looking boss tho
@Luggage you should come to Canada man.
it should be a fun time
 
@KevinB that's depressing :(
 
I got off at noon and spent 5 hours in the garden playing with dirt. today was a fucking great day
 
9:38 PM
eh, i guess even if i wasn't working with excel i'd be working with coldfusioni/sql today
 
Do you guys transpile your unit tests
 
not js
 
Or just write them in whatever node supports
 
Question: Why would anybody use a["b"]() instead of a.b() ?
 
if "b" wasn't valid in the latter syntax.
for example, a["b-c"]()
 
9:40 PM
a['bb-8']() works
 
or in case they're also using a lot of dynamic property accesses and don't want to get the styles mixed up, but instead get the reader to associate the two as being the same in a certain task
 
@towc that sounds silly
if not deceptive
 
wut? It's a perfectly good reason
 
So... it's just a styling thing?
 
user2620028
@JennaSloan you can pass a variable inside the []
 
9:44 PM
It really isn't something you use very often
 
its a very weird style choice if you're using [] for anything other than a dynamic property access
 
for( var key in obj ){
  if( obj[ key ] === otherObj[ 'something' ] ){
    doOtherStuff();
  }
}

// feels much better than

for( var key in obj ){
  if( obj[ key ] === otherObj.something ){
    doOtherStuff();
  }
}

// if obj and otherObj are supposed to be similar structures
 
door #2
 
they're both pretty mediocre
#2 is a little better
 
I don't like either of them
var fee = x[pee];
var fii = x['fii']; // wtf, where's variable fii?
var foo = x[poo];
 
9:47 PM
well, mine was a petty example, but the style thing holds
 
obj.get('key')
Now we're all unhappy
 
don't use it unless you have to.
 
for( var lolwhitespace in loopsFrom1999 )
 
const { something } = otherObj;
for (const thing of obj) {
  if (thing === something) {
    doOtherStuff();
  }
}
 
new Set(Object.keys(a), Object.keys(b)).filter((key) => a[key] === b[key]).map(doOtherStuff)
 
9:50 PM
how to where value = null in rest loopback. can't seem to find an operator for the null value and passing null through url (filter[where][stuffId]=null) sends a string.
xy guard: I want to get all entities with their hasMany relation children, without duplicating the children. /api/stuff?filter[include]=children&filter[where][stuffId]=null
 
[wut:tag]
 
did I just speak chinese?
 
"how to where value"
 
oh, right
yeah, "how to query the datasource through a rest query, to find the entities where a value is null"
how to where null. :D
 
ah, i thought that query looked familiar
loopbackjs.. we used an older version of that for one of our stores
 
9:57 PM
I'm kinda amazed by the amount of autogenerated shit. even a full blown swagger. crazy stuff.
 
so get all entities with children that have a certain property that is null
 
yes, exactly
how to do that
filter[where][stuffId]=null transmits the string "null" through url
 
filter[where][stuffId][exists]=false?
 

« first day (2386 days earlier)      last day (2564 days later) »