« first day (2313 days earlier)      last day (2649 days later) » 

6:00 PM
like a bongo?
 
why did you leave your car unlocked on the way back from the bridge your drum circle practices under?
 
Hey man, don't h8
 
s/dje/hara/
 
user1596138
I drove a ranger for 4 years... They may as well not have locks, you can bypass it with a pencil. Never got anything stolen lol
 
I'm a musical individual
 
6:00 PM
I miss my bass guitar
 
user1596138
lmao it's hilarious when I'd lock myself out I have to go asking people for a pen or a pencil to unlock my truck
 
it was stolen in college :/
 
user1596138
And they'd think mine was just broken... That's how they all are 1998-2011 :(
 
@SterlingArcher not like a bongo, you pleb
 
all drums are like bongos
 
6:02 PM
:(
 
guys I need some help with something async :| I'm super bad at it
 
get good, then
 
user1596138
Use jAsync
 
asyncQuery
 
6:02 PM
I had one of these 😬 a schecter diamond
 
user1596138
jQync
 
My inspiration was fieldy from korn.. i was really good at slap pop playing
 
user1596138
@ssube lol is that japanese
 
come on guys, come up with things that don't exist
 
user1596138
6:03 PM
Wtf
 
all of these exist and are probably bad
 
@ndugger youtube.com/watch?v=4J9uTifOpj8 I used to be able to play this perfectly on my bass
 
We should start a Room 17 band
 
I can play Phase Shift
 
6:04 PM
We can practice over google hangouts
 
I don't have any instruments anymore :/
Well, my brothers acoustic ibanez is at my apartment, but I can't really strum a guitar well. I can play a stone temple pilots song.. some black sabbath.. but that's about it
 
I have several; ukulele, guitar, violin, a few hand drums, a full set of harmonicas, and somewhere at my parents house I have a drum set that's in many pieces that will never be put back together again
 
user1596138
I can play piano lol
 
I've been wanting to learn piano pretty bad
 
Violin, Trumpet, Trombone, and Bass Guitar for me
50% guitar
 
user2620028
6:07 PM
yeah i used to be able to when i was a kid haha
 
user2620028
then i forgot what keys were what and forgot how to read sheet music
 
user1596138
It's not expressive enough IMHO
 
findDOMNode() is discouraged, but ref={} gets me the component instance. I need the DOM node...
 
user1596138
Like you can be a thousand times as expressive on a single string of a stringed instrument as an entire piano unless you're really good
 
@Luggage ref will get you the component on a component, but will give you the element on an element... bad behaviour, IMO
 
user1596138
6:08 PM
@Luggage ref={component => this.domRef = component}
 
your only choice is to use findDOMNode
 
user1596138
Then access this.domRef
 
the real question is, though, do you really need to be accessing the element? Usually you do this to break out of react, like if you're doing native DnD or something like that
 
user1596138
There's about a million use cases for needing to access some part of the DOM api from within React lol
 
But not many good use cases
Most of them are because you're doing something you shouldn't be doing
 
user1596138
6:11 PM
No lol
 
Yes
 
user1596138
That's only the case if you work with tiny limited apps and have no complex requirements
 
No
 
user1596138
Agree to disagree
 
user1596138
inb4 "no"
 
6:12 PM
No, only I'm right
 
user1596138
Yisssss
 
@ndugger ahh, ok
well, shit. I'm trying to get it from another component, though..
 
user1596138
Luggage was using $.width earlier, so I assumed a similar use case, Can't get dimensions or positioning from anything but the DOM api
 
You'd have to pass it up via a callback in another prop, like onMount, or something silly like that
 
uh would anyone be able to help with with this, im trying to get a line graph like this jsfiddle.net/4zwyn6vd/86 but mine looks like this gyazo.com/bcdb7f3bcc4728155145792110a58bfa even though its pretty much the same code, if anyone can help me id be really greatful
 
6:13 PM
flips keyboard
 
it's not my component..
 
Then you're fucked
 
or... findDOMNode()
 
yes
 
6:16 PM
perfect. I should just turn off that lint rule.
 
user1596138
Turn off all the lint rules
 
user1596138
!!giphy watch it burn
 
user1596138
If the fire was not in the fireplace that would be perfect.
 
A taxidermy cat.
 
6:18 PM
:(
 
Hi guys, does anyone know how to apply css to a dynamically created form, preferably in the CSS file?
 
use a class when the form is generated?
 
why do you have so much money
 
Because he has a professional job and isn't still a high school kid
 
hmmm. It would be more reasonable if he was a reptilian
 
I didn't buy it ._. I just want it. There's so much fun to be had with a software defined radio
 
ockham's razor and all
 
6:45 PM
tl;dr you could technically build a relatively powerful signal jammer with that. I want to build a jammer on the grounds that i have a protocol idea to attempt to protect from jammers
 
What do you know about razors? You're just a kid.
In computing, the Two Generals Problem is a thought experiment meant to illustrate the pitfalls and design challenges of attempting to coordinate an action by communicating over an unreliable link. It is related to the more general Byzantine Generals Problem (though published long before that later generalization) and appears often in introductory classes about computer networking (particularly with regard to the Transmission Control Protocol where it shows that TCP can't guarantee state consistency between endpoints and why), though it applies to any type of two party communication where failures...
 
I know I know
I'm more thinking of an internal lockdown protocol
 
build an AI into 2 components and let them decide what the most efficient way is
 
Basically a giant ctrl-s protocol that saves everything it can and locks it if a jamming signal is detected
 
maybe they'll end up figuring out an amazing protocol/encoding system
 
6:48 PM
@SterlingArcher But can it be safe?
 
@KendallFrey can you send me a very entertaining short-ish ksb gif about "going up"?
even falling down and crashing, if it's entertaining/short enough
 
what
 
ksp*
 
Potentially. Think about it this way -- you have a device hardwired to a security system (something a jammer can't break). It is constantly scanning -- BAM, jamming signal detected. That means either the bank is being robber, or something dangerous is happening nearby (police use jammers, meaning a dangerous situation potentially). This sends a protocol to the bank vaults, which close and lock without anybody helping. To unlock, an offsite person needs to come in and unlock it
 
what
 
6:50 PM
kerbal space program
 
By using a hardwire connection, it's safe from the jammer, right?
 
you do ksp, don't you?
I need it for a friend
 
sure, but i don't understand you
 
@SterlingArcher maybe, how well shielded is that connection?
also, any sun spots will probably put the whole place on lockdown
everybody's good friend the transformer squirrel would do the same
 
Depends on how secure you design your security system I guess. Would need to be either a hard to access power system, or self contained
 
6:51 PM
I'm preparing the slides for a talk. One of the slides has the title "even higher!", and I need a gif
 
google?
 
if it's in context, it's bad
 
any dead man's switch that is sensitive enough to be useful will suffer false positives all the time
 
@KendallFrey yeah, but you're better
is there any particular one?
 
I'm not
 
6:52 PM
it can't just be a normal ksp rocket
 
Sun spots aren't concentrated enough. With calibration, you can detect the patterns
 
well then, rlemon is
 
I would love to see the RF output of a jammer vs a sun spot though
 
google: funny ksp rocket up...?
 
pretty sure jammers are like 0.0001% of what sun spots can put out
nobody has ever fried telegraph lines with a jammer
 
6:53 PM
Right, but they're concentrated on a range of frequencies on a random pattern
 
most of the audience will probably be ksp players. I don't know what's funny in ksp
 
A sun spot would probably exceed the range of a jammer, and power, in a detectable pattern of some sort
 
Everything
 
why would a sunspot be detectable as anything specific?
 
You should play KSP. I think it'd be your kind of game.
It's rocket science.
 
I don't want more time sinks :/
I'd definitely enjoy it I think
 
Because sunspots are EM not RF
Also that's a very rare edge case :P
 
radio is a flavor of electro-magnetic.
or i misunderstand
 
you don't
 
> The sun emits electromagnetic (EM) radiation of frequencies much higher than radio frequencies, including ultraviolet (UV), X-ray, and occasionally intensely energetic gamma radiation.
 
6:57 PM
gotcha
 
but it also has enough power to drown out a ton of stuff
 
if I have an EM wave with a wavelength of, say, 1 inch. Does that mean that I could only resolve am image with it with 1 inch details?
To put another way, a laser with a 1 inch wavelength would have to be at least 1 inch "wide"?
@KendallFrey cc
 
@Luggage That's a very rough approximation
 
what if you move the laser up and down very, very fast?
 
you might break it
 
7:09 PM
just make a death ray from it
 
I have two reducers that are related (many to many), e.g. "users" and "tags". What's a good way to create the relationship in redux? A separate reducer that contains just user IDs and tag IDs? Add it to one reducer e.g. users.tags = [1,2,3]? Add it to both reducers and update both every time (seems like a bad idea)? Something else?
 
hi
 
hi
 
hi
 
I had something like this before..my server is expecting an array of objects from the req.body.

So I stringify an array of objects but the server can't parse the data
data: JSON.stringify([{"HostName":hostName,"Justification":getCheckInt,"Time":dateForm‌​at}]),
anything pointing to why it wouldn't accept that? ^
 
7:21 PM
what's your error message?
 
need to log on server and check
 
did you specify a proper content type? does your server expect a proper content type?
was it a post?
 
Have you logged what data is and made sure it's valid JSON?
 
... can it be invalid json, if it's a string returned from JSON.stringify?
 
7:27 PM
not right away, but if it gets stringified again, that's no good
 
@KevinB its a POST, no content type specified in AJAX post. Server is expecting an array of objects, so on that side just
var data = req.body;

then..

data.forEach
on the req.body data
 
check the type and contents of data
 
server logs are the best logs
 
Is the server parsing the json as json? if you don't tell the server that you're giving it json... it is assuming json?
 
its funny I don't know anybody who is doing the stupid hackaothn. Maybe Benji
 
7:30 PM
sounds like it isn't, based on the fact that you have a problem.
 
anyone know of a site that can run javascript with more up-to-date es6 features such as async/await?
 
@Luggage @KevinB will do..doing some logging
 
I always get regeneratorRuntime is not defined
 
@corvid i thought i gave you the link to use in jsfiddle before
maybe that was someone else
 
Do want
 
7:32 PM
@corvid like a cross compiler don't understand
 
@Luggage That works perfectly, thank you good sir
 
allrighty so trying a post now
 
stackoverflow.com/questions/35190615/… how the hell does this have 12 upvotes?
 
7:50 PM
@corvid you need to import the babel-polyfill
 
so..
request body type: object
request body: {"{\"HostName\":\"fakehost.com\",\"Justification\":true,\"Time\":\"2017/1/14\"}":""}
 
right
because your server doesn't know that it's json.
it parses it as if it is a paramstring.
 
then it gets as far as calling forEach on the data and bombs out, obv becuase it's an object
data.forEach(eachHost => {
                table.rows.add(eachHost.HostName, eachHost.Justification, new Date(eachHost.Time));
            });
ok
I'd rather fix this client side in the POST if I could
can I instead send an array of object? as that's what the WS is expecting
 
34 mins ago, by Kevin B
did you specify a proper content type? does your server expect a proper content type?
 
Dumb question -- a finally will never run after a return, right?
 
7:57 PM
ok I have now specified the data type as JSON and
 
...
datatype isn't contentype
 
yeah just seen that and noped
If I specify contentType: json, the server parses the data as empty `request body: {}
`
 
does your server know how to parse said content type?
should be application/json
 
@corvid correct
without an error, it the same as:
await doSomething();
isComplete = true;
return;
 
ah I see @KevinB my server doesn't know
 
8:03 PM
are you using body-parser? it knows
 
specifying application/json works in XHR post
yeah using body parser
 
oh, is this not a post?
 
yeah its a POST
 
Ello everyone
I haven't used vanillajs in a while for client sided work, but I'm almost certain I'm doing this correct. Any reason why this doesn't work?
var search = document.querySelector('input[type="search"]')
search.dispatchEvent(new KeyboardEvent('keydown', {bubbles:true, cancelable: true, which: 13, keyCode: 13}))
Trying to invoke an enter key click on a field
 
well.. if it doesn't work...
 
8:17 PM
var e = jQuery.Event('keydown')
e.which = 13
$('...').trigger(e)
works though
 
what are you trying to do? call an event handler?
 
no errors, i assume?
 
Can get it working with jQuery but not vanillajs.
No errors are thrown, no.
@KevinB just fire an enter key on a field.
 
...
What do you expect doing so to accomplish is what i'm asking
 
e2e test?
 
8:18 PM
handle the keydown on the field and see what it gets. maybe it gets an event, but the wrong data?
 
Ah good idea, one moment.
 
@neet_jn you can't write e2e tests in browser JS
Browser JS can't fire trusted events.
You need something like selenium, or at least someting it drives like phantomjs
 
Then why does his jQuery version work?
 
Using NodeJS and wdio/nightwatch. They allow you to execute browser js.
 
@neet_jn then use that.
 
8:28 PM
@Luggage found out my problem. When I was reading the docs, they explained one liners were new but may not be fully supported. I still need to init the event.
It's due to the descrepencies between KeyboardEvent, KeyEvent, etc.
 
Ohh, you weren't saying that sending a keypress wouldn't work..
 
@neet_jn do .sendKeys?
browser.sendKeys("input[type=search]", browser.Keys.ENTER) should do what you actually want.
 
@BenjaminGruenbaum enter key isn't working for whatever reason. Wasn't working using Py's bindings either.
It's an angular element using a strange event handler.
 
@neet_jn Angular 1 or 2?
 
ng1
 
8:32 PM
ptor.actions().sendKeys(protractor.Key.ENTER).perform();
Protractor.
Maybe you're missing .perform()
It's possible sending keys doesn't go through the digest cycle for some reason. If it's driven (selenium/nightwatch etc) it shouldn't happen. You shouldn't need to do a $rootScope.digest() or anything like that.
 
Sounds to me like you are looking for earbuds. Here's a little tip. If you are constantly ruining earbuds, you are listening to music way too loud. You are causing long term damage to your hearing. If you find you constantly need to increase volume, you likely already have hearing damage. Try to lay off the high decibel levels for a while. I will not be posting any recommendations, as I believe doing so will be detrimental to your well being. — NZKshatriya 17 hours ago
What I would say..
 
user2620028
just get earbuds molded into earplugs
 
user2620028
you wont turn them up loud enough to blow them out
 
8:51 PM
Got my half done presentation on TypeScript up and running. Partial feedback for the partial presentation is welcome: static.madara.ninja/typescript-presentation (note, haven't done type inference or how to user both yet)
cc @BenjaminGruenbaum ^
 
@MadaraUchiha first impression is good, static.madara.ninja/typescript-presentation/#/2 drops into two lines
 
I listen to my music at full volume all the time
 
@BenjaminGruenbaum Hmm?
What do you mean?
 
typescript looks a lot like js
 
@William um
Does this surprise you?
 
8:54 PM
never heard of it that is not all. If I have heard of it don't remember it that is all.
 
that is all. here's some more, that is all.
 
@William TypeScript is a strongly typed superset of Javascript.
 
^bingo
 
i.e. every valid JavaScript document is a valid TypeScript document, and TypeScript adds additional features (read: types) onto JavaScript.
 
ES6 javascript?
 
8:56 PM
Even without any sort of type annotation, you can get plenty of benefits from TypeScript, highly recommended.
@William Everything in ES6/7 is supported, some of ESNext too.
 
Yeah Typescript is good
 
(i.e. async functions and object spread work)
 
impressive
 
@BenjaminGruenbaum How are you getting this? I'm not.
 
8:59 PM
He's using IE
 
lol
 

« first day (2313 days earlier)      last day (2649 days later) »