« first day (2323 days earlier)      last day (2624 days later) » 

9:00 PM
lmfao
 
@Jhawins what are the alternatives?
 
user1596138
I prefer store driven modal containers
 
user2620028
giph
 
user1596138
A single one placed near top level that is populated by a store driven by actions seems much more proper to me than the whole frankenPortal approach
 
user2620028
that is what i ended up implementing when i managed to get a datastore
 
user2620028
9:03 PM
seemed like the easiest solution at that point
 
user1596138
Or similar... There are many ways to accomplish a Modal that actually fit the "react way"
 
@Jhawins Then you have to manage a ton of modals in the redux store, no?
 
how do I regex test for a final . at the end of a number, only if it doesn't have a . before?
ie 123. is valid, but 1.23. isn't
 
I think it's called "lookaheads"?
 
num.indexOf('.') === num.lastIndexOf('.')
 
user1596138
9:09 PM
@corvid No, just do like modalStore.openModal(<MyModalComponent>) from where you trigger it
 
user1596138
Nothing to manage if your modal store is able to accept any node
 
So you store the component in the store?
 
user1596138
Clearly there's more to it.. You need a title bar that knows about the modal's close functionality, a footing that can tell when it is complete etc
 
{ open: false, element: <SomeElement /> }, something like that?
 
user1596138
But the general aproach is much more "proper" than that
 
user1596138
9:10 PM
You pass the store the component in an action
 
user1596138
Idk I dont want to steer you down the wrong path, I'm not trying to be very specific :P
 
user1596138
I'm just saying there are definitely alternatives that don't involve a bunch of findDOMNode
 
user1596138
And that allow reconciliation within the modal component
 
!!factorio or spaz or rimworld
 
@rlemon spaz
 
user1596138
9:12 PM
But we are using basically that same <Portal> component here.... So, I'm just a hypocrite
 
0
Q: Unable to write to the stream using the reference stored in express-session

Rahul DesaiIn my project, I am uploading a huge file of few GBs to the server, in chunks - 10MB chunk at a time, using the blueimp jQuery-File-Upload plugin. I have a writeStream at the Node.js backend attached to a express session, just so the file uploads from 2 different users do not get messed up. I c...

I would appreciate any pointers that you guys may have.
 
thx @rlemon thats the simplest
 
@Jhawins Understandable, but I like to learn about every way to do something that makes sense
 
user2620028
@corvid start using a store and you will realize that the portal doesn't really make sense
 
whens next poe league launch
 
user2620028
9:16 PM
if you aren't using a store then portal makes decent enough sense
 
user2620028
still not very elegant either way
 
In theory, what happens if you have multiple modals with the store approach? Dumb question I know, just curious
 
user2620028
it works
 
user2620028
not sure what edge case you are worried about
 
user2620028
you just conditionally display them
 
9:18 PM
How is the component "stored" though? Does that make sense?
Or are you saying that you put all your modals at the "top level"?
 
user2620028
in my experience i have put a "modal" component at the top level
 
user2620028
or near the top anyways
 
user2620028
and then you fill its contents with whatever you want displayed at the time
 
One modal component? Then it puts the element in that container?
 
user2620028
i actually had a container component near top level
 
user2620028
9:20 PM
and a modal component that would wrap components you could pass to it as children
 
user2620028
and you could show as many modal components in their parent container component as you wanted
 
user2620028
luggage posted a good modal implementation in chat the other day
 
user2620028
you could search for it and modify it to your liking
 
Hey guys, sorry but would you mind if I ask for a freebie? codepen.io/anon/pen/ryaMJQ Does anyone have a good solution for adding text that is not skewed to those parallelograms?
 
@Omnitored do you mean when you scroll, it's all wonky?
 
9:27 PM
I mean the thing that happens when you add text to the divs
1 sec
 
user2620028
@Omnitored create a child element that is a container for text and skin it in the opposite direction by the same value
 
user2620028
not entirely sure the other ramifications that will have.... but that does get your text vertical again XD
 
xD
Btw, any nice site with js effects?
like fade and slide etc?
 
user2620028
css animations are pretty powerful right now
 
user2620028
would default to those
 
user2620028
9:30 PM
look at animate.css for some good examples
 
okay, thanks :D
 
But, will that allow me to load the animations on page load?
@RahulDesai people don't get the question so they downvote, common here, I am question banned because of that, voted it back up for you
 
user2620028
@RahulDesai i assume it is because the error message provided should be enough to tell you what the initial problem is
 
@Omnitored Thank you.
 
user2620028
9:33 PM
"Cannot read property 'write' of undefined" means that wstream is undefined at that line
 
@HatterisMad I did it with the div and got the text vertical, but the divs still get fucked up positions upon adding content inside them, any chance you could quickly expalin me why? :/
 
Edited my question.
 
Its a strange behavior in the program because it does work if the writeStream is kept global and not attached to the session, but then it does not work for different user sessions.
 
user2620028
@Omnitored yeah i saw that it moved the div when you add text to it
 
9:41 PM
Anyone there know the JavaScript API for Picture in picture on the upcoming version of windows 10 ??
 
@TheCrazyProfessor 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.
 
user2620028
@Omnitored playing with it, display: table, or float: left gets it back in line
 
user2620028
im not exactly sure what the exact cause is of the div moving
 
user2620028
anyone who knows more about inline-block want to chime in on why that is exhibiting the behavior it is?
 
Thanks :D
 
user2620028
9:49 PM
@omnitored i haven't really used inline-block much but this appears to be something that is required knowledge stackoverflow.com/questions/17334052/…
 
user2620028
use the vertical-align: top to get it back into place
 
It's on spot now ;)
 
user2620028
may i ask what you are making? lol
 
A navbar xD
 
@Omnitored Read about flexbox.
 
9:54 PM
I want to try to make an entire website without bootstrap and other premade sheets
 
Do yourself a favor.
 
I know how to use the stuff, but this is some sort of "own challenge"
Aka. completing a game without wearing armour ;P
+ there are a lot of fun effects on this
At the beginning when the navbar was totally ****** up...
Come on, tell me this isn't fancy xD
 
Thunderstorms in February... someone done fucked up dat atmosphere
 
user2620028
whenever you learn how to do the stuff that bootstrap is doing for you. it kinda removes the desire to ever have to use it again
 
bootstrap makes stuff way easier
 
user2620028
10:03 PM
im being forced to use bootstrap right now
 
but I want to know how stuff work form bottom
 
user2620028
and the majority of my day has been going through and resetting the styles bootstrap puts on elements back to reset values
 
So if I ever want to do something bootstrap DOESN'T have, I can do it :)
Feel sorry for you man xD
My day went to trying to make that depressive logo turn into my current navbar xD
 
user2620028
with display: flex, or inline-block, or even float, bootstrap loses all purpose
 
That's why I'm doing this challenge :P
I don't know javascript tho, so will use premade animations
 
user2620028
10:06 PM
animations are mostly css now
 
10:21 PM
I can't feel myself breathing
that's a normal thing to think
 
Is glob-fs always supposed to be realtive to the RUNNING script?
That's super annoying.
 
user2620028
10:40 PM
i just started playing with inline-block realizing i have never really used it
 
user2620028
 
user2620028
11:04 PM
ok guys this is really fucking with me
 
user2620028
why are the elements not taking up the entire width - the padding of the container
 
wow
CNN was blocked from WH @PressSec's media gaggle today. This is our response: https://t.co/8SfY2uYKEI
 
user2620028
33% * 3 + 0.5% *2 should be 100%
 
@HatterisMad They are
What am I missing?
 
user2620028
11:07 PM
the right side has more black space
 
user2620028
than the left or top and bottom
 
user2620028
wow i have been misspelling everything lately and not noticing it
 
@HatterisMad 33% doesn't account for the padding
 
user2620028
how not
 
user2620028
padding is 0.5%
 
11:09 PM
@HatterisMad It's 33% of the parent's width, padding not included.
Any particular reason you're avoiding flexbox, by the way?
 
user2620028
oh
 
user2620028
boss says that i have to support ie9 :(
 
@MadaraUchiha edge, ie
 
@HatterisMad Use width: calc(100% / 3) instead.
 
user2620028
aight thanks
 
11:11 PM
IIRC, it flexbox required edge14+
 
user2620028
i was thinking it was taking into account the margin and padding
 
user2620028
guess that has been my error for a while
 
@tereško IE11 supports it with some minor bugs.
 
mpm
11:32 PM
Hi folks. For nodejs server development, in order to reload your app automatically when the server code changes, what tool are you using?
 
@towc for some reason I am not that surprised. CNN has been at war with Trump since .. well mid-last-year
 
well, sure
 
and the both sides seems to just escalate
last post that got picked up in social networks from CNN was edition.cnn.com/2017/02/22/politics/…
and my post-soviet brain went: "americans are really shit at propaganda", @towc
anyway, off to sleep
 
11:50 PM
gn m8
congrats on surviving communism
you'll need to tell me more about it sometime :)
 
Watching Lego batman
 
we're all proud of you
 

« first day (2323 days earlier)      last day (2624 days later) »