« first day (2603 days earlier)      last day (2347 days later) » 

6:02 PM
If I am using one component inside another in react, I have to pass the store (redux) to both component or just to the first one?
and then do the this.props.store.subscribe()
 
@KendallFrey wanna help me design a robot that makes me a cup of earl grey when I say "tea, earl grey, hot"
 
lol yes
 
the mechanical side of it is going to be 10x harder and more interesting than the software
 
I like mechanical design too
 
@towc got a library for you to learn and tell us about: aframe.io
 
@ssube I'm already ahead of the game
 
the docs involve reading and ugh
 
ive been modeling industrial applications this month
 
personally not a fan of state/data through xml, so there's that
but it's easy to make something out of it really quick, instead of using three or webgl itself
 
can three and webgl do webvr?
 
6:08 PM
I'm hearing more and more good things about it though. I never tried to learn more than the basics and have a peek at the more complex stuff
@ssube ofc
 
I know threejs used to have a VR setting or plugin or something, but idk about webvr
 
so it does
 
@KendallFrey you can just hook any frame into an API, afaik
 
shame, it means dealing with threejs, but that's better than some mozilla knock off
 
it's not like aframe uses something that you don't have access to
 
6:10 PM
Can I have more than one store in redux?
 
@Loktar just pulled the trigger on psvr
 
@QuicoLlinaresLlorens you can have as many as you want when you grow up
or eat your veggies
 
ooh thats what im waiting on
 
I really don't understand the pricing on amazon. bundled with a game, $379, psvr on its own. $479
bundled with a different game $479
 
ok, thanks @rlemon
 
6:11 PM
the core psvr is more expensive than bundling it with select games.
@QuicoLlinaresLlorens you're not welcome
 
nice hope you guys like it
 
mostly because I didn't say anything to you
 
you get the move controllers too and everything with it?
 
ups sorry
@twoc thanks
 
@Loktar I won't be able to use it ;/
 
6:12 PM
@rlemon your presence enlightens him
@QuicoLlinaresLlorens I didn't say anything useful to you
 
@QuicoLlinaresLlorens short answer: you can try it and see what happens
or google it
 
I think has no sense
since should be just one store
that is why redux is used, no?
 
@Loktar good call, I did not.
comes with a game, the headset, and the camera.
 
@rlemon you need the camera and controllers
ok cool
 
6:15 PM
so I'll need to find one of those ice cream cones on sale somewhere else.
 
yeah might as well pick up the move controllers, otherwise you limit the games you can play a bit, at least check the games she might want to play I guess
 
but, I am trying to use 2 components with redux, and I am getting that store in my second component container
 
$129 for a pair on amazon :?
 
does not exist
 
but the move controllers are super nice to have with it
holy shit @rlemon
lol that's expensive
check out Gamestop
 
6:16 PM
HAMMERTIME!
 
will do
 
or EBGames (I think that's what you guys have mostly right)?
getting those used is nbd
 
I have passed the this.props.store in my first component to the second one
through props as the first one
 
@QuicoLlinaresLlorens shouldn't the 2nd component reach into the store directly?
 
@Loktar I recognise both, but I think we mostly have microplays
but its been so long since I have bought a physical game
 
6:17 PM
I hate passing huge objects to components hard to tell what the component uses then
 
i can't remember
 
@rlemon haha
 
@Loktar You mean as the first one? doing this.props.store?
for example:
handleLogOut = () => {
        this.props.store.dispatch(logOut())
    }
 
I buy ps4 games in the box but feel theyre just like a security dongle, the entire game still needs to be downloaded
 
I'm not super familiar with redux, but why would one component pass a store to another, shouldn't they both have access to the store if they need it?
otherwise you'd just pass immutable properties from the store as props
 
6:19 PM
I get the same error
cannot read property dispatch
I am not getting the store in my second component
 
@Loktar Some dependency injection works by injecting as a prop. e.g. mobx-react's @inject
So you'd access it as this.props.someStore
Not sure about redux's
 
I think I need to pass the store
 
@Luggage ah yeah, I don't use mobx like that either I suppose
if a component needs the store I import directly
 
@inject is wonderful
 
for property passing I try to limit props to single value types
 
6:23 PM
@inject('storeA', 'storeB', 'storeC')
export default class Foo ...
😍
 
import storeA, B, C from stores lol
 
well, it's just a thin wrapper about react context, but sure. i like it, too.
 
Seems similar
 
But I don't get why
 
it's similar but you can change the provided components for differnt components in a tree easier than if each one just importedt the store directly
 
6:24 PM
I am passing the store I use in my Login component
to my ArticleContainer component
 
so, I'm going to meet some friends for a couple of beers near the place where the slovak girl works. If the occasion arises, should I invite them for some tea so we all end up in that place? Or is that fucking with her private space?
 
<ArticuloContainer store={this.props.store}/>
 
but.. converting is no more than a day's work, so I see nothing wrong with importing until you find a reason to change.
if you ever do
 
and when I use it in my ArticuloContainer it is undefined
 
@ShrekOverflow lol... now I got that message on Facebook. "Jesus" wasn't very meaningful
 
6:26 PM
oh wait actually she's probably not working now
 
@towc write her name on your chest and stand outside holding a stereo playing in your eyes.
 
@rlemon that could work
 
best serenade ever
I should do a serenade with a drone and a stereo
 
wtf amazon/canada post - last order was half a week late, and now that it's here the box is beaten to hell and is covered in stickers
 
6:38 PM
@rlemon man I miss Phil Collins
 
it's a freaking Christmas gift
ghaaad
@Loktar huh?
peter gabriel did that for the movie iirc
 
Do the stickers say "f you and your complaints"?
 
nope it's covered in their shipping stickers.
it's like the second item I've ever had from them that isn't in an Amazon branded box
 
rlemon ah yeah, he was good too, they were both lead singers for Genesis at one time or another so interchangable (in my head)
 
and it's not big either.
2
if it wasn't for prime and the fact that they have in bold "GUARANTEED DELIVERY DATE" I'd probably be less of a bitch about late shipments
but man, it pisses me off when shit is more than a day late
 
6:43 PM
Yeah my roomba took over a week to be delivered and it was prime 2 day shipping
Like, what the shit
I feel so lied to
 
@SterlingArcher bitch
get a free month of prime
 
Dude I have prime, i 2 day ship errthang
 
yes.. and when they fuck up they (often) credit you for a free month of prime
so bitch, get dat free month
 
oh wooooord?!
Im jewish how did I not know this
 
last item they fucked up before this was $45 in pc fans
they comped the fans completely.
so like, free items is also a possibility
 
6:46 PM
Probably not gonna get a free roomba because it shipped late lol
 
As much as I love Amazon, I'm waiting for the day when people start hating them like they do Wal-Mart.
 
Who hates walmart?
I just hate the people that shop there. Walmart is an exceptional company
 
@SterlingArcher I hate walmart
we never shop there
I will gladly pay more to not support them
 
For real?
 
is not a function *******
 
6:50 PM
yea
 
plenty of people hate wal-mart, many years ago it was a HUGE meme that "Wal-Mart kills small businesses!!! They don't treat their employees well!!"
 
Walmart destroys small towns
 
1 message moved to Trash can
!!tell Koosh format
 
I thought they were really good, they pay fairly, employs tons of people, and even charitable af
 
in MI we have a place called Meijers, a store like Walmart
 
6:50 PM
@Koosh Format your code - hit Ctrl+K before sending and see the faq
 
they like to build RIGHT next door
to kill the Meijers
 
fuck em.
 
Dang I didn't know that
 
they do it in a lot of small towns though, also to their suppliers
It's like being delisted from Google in the physical world
 
6:51 PM
the only times I buy from walmart is when others don't have the items I want.
 
sell us your goods at the price we say, or we don't carry them
 
My mom works for walmart simply for the health insurance and the social part
 
I used to work at Wal-Mart. I honestly didn't mind it.
 
And the extra income is great for retirement
 
yeah we go to Target or Meijer instead we go to Walmart maybe once a year if that
 
6:52 PM
I tried
 
and that's only if we have to for some weird reason
 
1 message moved to Trash can
you failed.
 
come on
 
Wooooosh Koooosh
 
no, format the code properly or use a paste service
 
6:52 PM
lol
 
@Koosh Use a fiddle or a paste dude, just make it easier on yourself.
 
we're not going to lift the rules because you can't figure it out :D
 
im not the brightest star in the sky obviously
:/
 
LOL @Koosh
are you familiar with jsfiddle.net?
 
Wew, tax return
 
that's definitely easier for people to mess with and more people are likely to help if in that format
@SterlingArcher woah who made this?
looks professional... for the SO chat heh.
 
the python room iirc
 
Yeah python guys
 
anywho, If I have an array of controls

controlArray[i].startsWith is not a function

I'm trying to loop through it and check .startsWith for type of control but I get an error stating that "controlArray
 
To be honest, my favorite place to shop is Publix, but they are CRAZY expensive compared to Wal-Mart.
 
6:54 PM
shit
 
I just tried to add it to the room desc, but i broke the site
 
lol
i have an array of controls

controlArray[]

what I'm trying to do is this:

controlArray[i].startsWith

but when I try to loop and do .startsWith it's telling me that

controlArray[i].startsWith is not a function. Can i not do that with an arraY?
 
are the elements strings?
 
control names
 
startsWith works on a string
what does the array look like, can you paste one element from it?
 
6:57 PM
var ControlArray = $("[GroupName=" + sender.getAttribute("GroupName") + "]");
 
console.log( typeof controlArray[i] === "string" );
 
i get it by using GroupName
 
is probably false
@Koosh yea that returns a jQuery collection
:/
 
well when i looped through and tried to enable all controls - it worked, but not I want to be able to clear them and disable them
 
For all those who can't format code, the Python room is here to help! An Illustrated Guide to Formatting Code in The Chat
9
 
6:58 PM
i need to set dropdown to a specific value and simply clear the textbox
 
Once the chat bug is fixed (can't save) I'll put that in the room desc
 
you should definitely make a fiddle @Koosh
like @rlemon said those are JQ objects
you will need to do startsWith on a property within the object
 
yea, like @Loktar said, it's probably not strings
😉
 
like controlArray[i].someproperty.startsWith
 
you are right good sir
controlArray[i].id.startsWith is working !
 
7:02 PM
const ControlArray = $(`[GroupName=${sender.getAttribute('GroupName')}`]).map((i,elm) => elm.id);
would give you the list you want
 
My coworker just told me what npmjs.com/package/i18n was
 
lol
 
> I know that's what it refers to, but I never knew that it was called "i18n" because there are 18 letters between the i and the n in "internationalization"
dying. those lazy fucks hahah
 
thank you sirs!
 
i18n, l10, and k8s are the only ones I know
 
7:06 PM
f2k
 
although I always assumed science and other industries did the same thing
 
H*D
 
holy crap this song is intense @Loktar @rlemon @GNi33 @BenFortune @Mosho
 
@ssube what's l10?
 
yay I made the list
@KendallFrey lllllllllll
 
7:11 PM
l10n
typo
 
@rlemon this song is gnarly dude
 
liposuction
 
lmao
nailed it @Luggage
 
Guys I am using using my store in one react component
and I don't achieve to use it in the second one
I am passing the store from the first to the second
but does not work
I am doing this:
<ArticuloContainer store = {this.props.store}/>
And in that component I am subscribing to the props I need with this:
componentDidMount() {
        this.props.store.subscribe(() => {
            this.setState({
                showingArticles: this.props.store.getState().showingArticles,
                list: this.props.store.getState().list,
                hayArticulos: this.props.store.getState().hayArticulos,
                crearArticulo: this.props.store.getState().crearArticulo,
                formIncorrecto: this.props.store.getState().formIncorrecto,
                modifyArticle: this.props.store.getState().modifyArticle,
 
7:25 PM
for one thing thats spanish
 
@Loktar @KendallFrey @ssube @Luggage 3dwarehouse.sketchup.com/index.html wowza
lots of 3d models for full sized furniture and shit
 
I've seen them before. Tons of stuff, some better than others.
but it's mostly or all free, I think?
I have a thingiverse.com/thing:1846631 minutes from finishing :D
 
oh haha 3d warehouse is where I get my parts
 
@ssube What are you going to distill in it?
 
7:37 PM
ugh. really? onshape can't import sketchup files?
 
Are those plans for a gas chamber?
 
yep :)
 
@Luggage one shot at a time
 
clean room and air lock
 
7:40 PM
concentric supports are the shit
 
fellas fellas fellas, ideas thoughts?

I create a control array of objects like this:

var ControlArray = $("[GroupName=" + sender.getAttribute("ControlGroupName") + "]");

down the road I need to use ValidatorEnable, and do it like this:

ValidatorEnable(ControlArray[i].Validators[0], false);

however I get an error stating that "ControlArray[i].Validator is null"

but the validators are there!
 
you're really bad at this array thing arn't you
 
@Webster Is that Utility Fan blowing into the room?
I generally only ever see those used for exhaust purposes.
 
not the best
 
Not so much supply..
 
7:46 PM
i like just writing play ValidatorEnable(document.getElementbyID..........but the team leader wants less code
he wants all arrays where applicable, i have to do this for 11 controls, i'm able to disable, enable controls now the last issue is ValidatorEnable
 
@hilli_micha i placed machines to resemble air handlers, blowers and suckers with filters and stuff
kluged from parts in the warehouse
just trying to give an inmpression of a evac and air movers
 
Right, you do seem to have the plenum box on the inlet and, yeah the sort of setup you'll find in an AHU; problem is that there is no conditioning elements (coils). However if you don't need it, then hey, you don't need iot.
 
Are you designing a meth lab? If so, do you need development or server admin?
 
I havent put the labels yet, theres pressure air, avac air, pressure lines for tools, super clean air, etc.
 
can gitlab automate meth production?
 
7:50 PM
i get to leave out a lot of parts that don't directly onvolve our gas measurement
 
you just commit a new recipe and it starts mixing.
it's all a giant modified cr-10
 
I see. So is gas just being blown into the room and nothing else? Because you also need somewhere for that air to go (e.g. exhaust)
 
the frame from the cr-10 would be useful for most science
attach a hook in place of the hot end
 
people do that. well, not sure about a hook, but replce the hotend with drills, lasers, pens
 
the plenum box was supposed to look like a filter
 
7:51 PM
I want to make my own printer, now.
 
swap out the extruder motor for a pump and keep the bowden tube in place
 
I want to get an engraving machine at some point
they're on sale for around $200
 
Maybe I'll try printing scrambled eggs. what temp?
 
yea a laser engraver is on my list to buy
they're pretty cheap
 
good air requires circulation, inlet and outlet
some facilities maintain positive or negative pressure to control dust
 
7:53 PM
we build an explosion proof sensor.
 
I want a laser engraver
 
Right. It was a matter of curiosity. Right now you've got a big positive pressure chamber there lol
 
i was worried if I placed an equally elaborate evac and inlet it will be too busy/cluttered
 
Today in things that are my jam: model spaceships being blown up with internally LED-lit cotton-ball explosions, and fibre-optic sparks. *So* incredibly cool.
holy fuck thats cool
@KendallFrey @Loktar
 
oh that is pretty neat
 
7:56 PM
Yaaas
 
the cotton especially reminds me of a guy who made tiny worlds dioramas
 
I've seen the cotton trick before for clouds and for a smoke plume on a saturn v model
 
he used cotton and steel wool a fair bit
 
8:01 PM
I think kendall should do that with his
 
I wanna do that with 3d printed miniatures
 
nice
I wanted to do something like that in a fish tank. just make it look like a dungeon or something
but then I'd wanna paint it, then I need to epoxy dip it, and that's a lot of work / epoxy
 
I got a can of spray lacquer that is supposed to be mostly water proof, dunno if it's fish safe
 
@rlemon I think so too, hmm
 
once I get off my ass and build mine (model, not lego) I might
idk.
looks sweet
 
8:04 PM
I don't think I'll be able to support it though, since it's lego
 
you can do whatever your heart believes dude
 
I could make it "on" a launchpad though
the flames wouldn't look as nice though
 
mount it on a small steel bar, build the flames and explosion around that
if you paint it brightly and wrap it well, it shouldn't be obvious
 
@ssube not sure how to make it balance/stand up though
 
you can attach something to the base of the bar. Welding would be best, but I imagine you could bolt it on somehow.
same idea and balance as a monitor stand
 
8:08 PM
Actually the top would be the harder part
 
yeah
 
the engines aren't attached too well
 
@KendallFrey put it on a solid pole, and have the top of that 3d printed with lego attachments
 
I just had a burp that tasted faintly of burnt rubber and two-stroke exhaust. wtf
 
Two-stroke exhaust huh? oddly specific. Did you make out with a lawn mower?
 
8:18 PM
QmVlbiBvdXQgb2YgdGhlIGdhbWUgZm9yIGEgd2hpbGUgc28gSSB0aG91Z2h0IEknZCBhc2sgaGVyZS4u‌​LiAgQW0gSSBtYWtpbmcgYSBtaXN0YWtlIHRvIHVzZSByZWR1eCBmb3JtcyBpbiBteSBuZXcgYXBwPw==
 
Nice base64
 
trying to get people to read the question :D
figured that'd be hard to resist
 
I'm not decoding it
so you failed.
 
haha, damn
I did
 
Could anyone see why this might run as valid in sqlfiddle, but throw an array out of bounds error when actually run against the database? sqlfiddle.com/#!17/39593/1
I demand that you help me now, or I will meme you
 
8:32 PM
no
 
!!giphy meme
 
stupid
 
@CapricaSix you suck
fuck, this sql is making me mad, and I have a date later. I want to punch someone
 
8:50 PM
!!giphy sql
!!undo
 
alright. Anyone here good at optimizations? I have been bashing my head against this problem (mostly conceptually)
 
she really does suck
 
@rlemon dude what the hell
giphy better
 
I can't find a good way to do collision detection on a mouse up event. Handler currently takes 314ms (says 308.1ms for Scripting (children) and 0.1s for Scripting (self))
 
with google cloud giving out $300 worth of trial credit
what prevents me from using that to mine
:o
 
8:53 PM
does this mean anything? I am using SAT.js to handle the detection of collisions and saving the elements as polygons in my parent component. On mouse up, it triggers an event that measures collisions.
 
@corvid Use this or a good quadtree or rtree implementation
If your objects aren't rectangles, compute their bounding rectangle and insert that into the tree, then filter them out afterwards
 
@copy they are very rectangular at the moment, thanks for the link
 
!!giphy jordan sucks
 
does everyone have these grooves in their teeth at the gumline?
at first I thought they were caused by the dentist - cleaning, but they said that's not what causes it
I'm still suspicious
 

« first day (2603 days earlier)      last day (2347 days later) »