« first day (2242 days earlier)      last day (2705 days later) » 

5:00 PM
one sec, there were some benches for watchdogs 2 that had that comparison
 
Kinda
 
Maybe
 
bah can't find the link now :/
 
5:02 PM
nyet
 
but yeah @BenFortune that is an old article
 
@Loktar Have you ever tried writing a game with servers and stuff with nodejs ?
 
@Abhishrek a LOOOOOooong time ago, and it was shit
 
@Abhishrek cc @SterlingArcher ^
 
@Loktar fair enough
 
5:03 PM
like... 4 or 5 years ago probably
 
@SterlingArcher if so it must be realtime
no turn based
 
some people in here have since
 
I want to write a simple DOBA
 
DOM Online Battle Arena
 
5:04 PM
Yeah my game is real time
 
Awesome can i peek
 
So is mine
 
@jAndy but your game
is the game
@SterlingArcher <3 you :D
 
@Abhishrek I contributed to a CoD:MW2(aIW) master server codebase a while ago that was written in node.
 
5:04 PM
Sure 😀 It's mostly just websockets lol
 
My game is also omnipresent.
 
I am more intrested
in writing
the lag compensation part
 
user2620028
how do i call a react component function from outside of the class scope?
 
i started writing it a long while ago
 
5:05 PM
It had that too, but was rewritten in GO
 
@HatterisMad you shouldn't need to
what are you trying to do ?
 
Same concept, lemee see if I can find it
 
user2620028
affect state from outside
 
pass it down as a prop
 
user2620028
from outside react entirely
 
5:06 PM
well thats kinda hard xD
In react
you can just use ref
(although yu shouldn't)
 
that's my biggest critique on react.. it's not state of the art in terms of "loosely coupled individual design"
 
user2620028
i have react handling two inputfields values in a form and trying to clear the values from outside of react (auth handler with AD)
 
it's like one big closed show
if don't belong to it, you're pretty much fucked
 
user2620028
i am adapting old code to work (if i was writing from scratch i would't do it this way)
 
can you not write some clear() function with the elements in the closure and leak that outside?
 
user2620028
5:08 PM
thats what i was trying to do
 
@BenFortune actually shit it is pretty close eh?
that's what I was looking for
I mean it's always better to get the best single card, but man 2 rx480's on par with a 1080... not bad at all
 
@Loktar Haha damn
 
AMD drivers catching up lol
 
Not bad for £250 less
 
a bit faster this time, from June until now
yeah for sure
 
5:10 PM
Does crossfire still micro-stutter?
 
you just have to rely on crossfire support which sucks
yeah, it just depends though
I never really noticed it personally
 
user2620028
i guess i can just have the state data held outside of react and modify it outside
 
@HatterisMad then how will it know to rerender?
have you looked into mobx by chance? You could have that live outside and be observed by react
 
user1596138
I told him to ^
 
user2620028
setInterval( setState({}), 1000); on root component atm
 
user1596138
5:12 PM
Lmao you're still doing that
 
user2620028
yesss
 
user1596138
App updates every 1 second haha
 
user2620028
ehh you hardly notice it
 
😐
 
user2620028
and if you actually do notice it then you bump it up a little faster
 
5:13 PM
Haha
 
user2620028
honestly im doing that because i keep looking for these libraries that will answer all of my needs without incurring other technical debt
 
user2620028
and all of them seem like they solve all of the problems ( but then force you to develop within their own little world oblivious to everything else )
 
that is a HUGE technical debt though...
updating the state every second
unless you're making a react game that runs at 1fps
 
user2620028
but it doesnt unless there is something to update
 
it still reconciles
 
user1596138
5:15 PM
^ It's still expensive
 
@Loktar oh sorry, yeah i was wrong there, a bit overwhelmed with all the acronyms ^.^
 
@HatterisMad then use the context API, throw in a quick observable and leak the context object facebook.github.io/react/docs/context.html
 
user1596138
> If you aren't familiar with state management libraries like Redux or MobX, don't use context.
 
user1596138
Learn or don't learn, that's the question rn
 
@Jhawins dude my grid
 
user2620028
5:16 PM
im not opposed to learning if i get sold on one of the libraries, thats basically the problem right now
 
I need to refactor it a bit, the reconciliation for that is slow
noticeably on IE
 
user1596138
Check out my specs lol userbenchmark.com/UserRun/2228086
 
fucking IE.
 
well, the Context API is already included, so you don't need to add anything more
 
> Gaming 12%
 
user1596138
5:17 PM
Lmfao
 
user1596138
@Lokatr it's my t1650
 
wait I thought this was your laptop at home for a min
 
user1596138
At work
 
I was like how the fuck is it at 12%
 
user1596138
Lmfaoooo no!
 
user1596138
5:17 PM
I'm going to run it later
 
user1596138
On my laptop
 
Any one Using IOnic
 
user1596138
I wanted a benchmark for when we get the new PCs
 
It sucks the way button clicks ionic headers dont respond
I really dnt know
Am so stuck there
 
user1596138
@FilipDupanović But it's plain and simple just a hack to use it like this.
 
user1596138
5:18 PM
Good luck maintaining it.. Long term anyway
 
user1596138
You don't have to add anything more anyway
 
user1596138
Just expose a method that does a setState and pass that as the callback to your data handling library..
 
user1596138
componentDidMount() {
  DataHandlingService.onDataChanged = (data) => this.setState({data});
}
 
user1596138
@BenFortune LOL! Surfboard
 
5:21 PM
surfboard! finally something that floats!
 
user2620028
yo hawins what is this syntax
 
user2620028
the = ( data ) =>
 
user1596138
@HatterisMad arrow syntax lol
 
user1596138
Is equal to
 
user2620028
oh jesus christ
 
5:22 PM
Does anyone Do mobile Development with Ionic here?
 
user1596138
function(data) {
  this.setState({data: data});
}
 
user2620028
i just read it wrong lmfao
 
The NVMe seems low though
 
user1596138
@HatterisMad Lol I put the extra parens so it would be more obvious :P
 
user2620028
5:23 PM
just didnt identify it as a lambda, was thinking there was an assignment expression that i didnt know
 
^ mine
 
@HatterisMad Ideally you'd jsut call the React.render
 
user1596138
@Loktar Dat 95% workstation
 
@Loktar Savage af
 
I don't have my CPU Oc'd right now though
 
5:23 PM
on the top level component
 
user1596138
Slacking bruh. How can you even call that a machine
 
passing it this state
(thats what redux does)
 
or my gpu :/
 
@rlemon ok.. ready to address your direct questions, now.
 
5:23 PM
heh I don't OC when I'm just doing normal shit
 
@Loktar My NVMe speed is waay lower than yours
 
lemme run mine :D
 
user1596138
I don't OC at all because I can't even run full speed lol
 
user2620028
@Abhishrek even if its a deeply nested child component and the state is local to that component?
 
user1596138
It's so sad....
 
5:25 PM
@BenFortune what's the diff between ours even
 
user1596138
People OC the 860ms and actually have some good looking gains. Relatively speaking.. But I can't even run it at normal speed haha
 
look like only 1 model number off
 
@Loktar I actually think the 951 released before the 950
 
ahhh ok
I would assume it was the other way around
 
user2620028
i could modify the props that way but not state
 
5:26 PM
Yeah, 950 has newer NAND
 
> Performing way below expectations
 
user1596138
@Loktar get Adam to run his new macbook on the benchmark
 
@Abhishrek could I describe redux as one big pub/sub event emitter which receives events to modify "state"?
 
that's yours, I wonder why?
 
user1596138
I want to see his CPU
 
5:27 PM
I don't think it supports AHCI either for some reason
 
@Jhawins I wonder if it can run on non win
 
user1596138
Oh :/
 
@Jhawins post yours in the chat
 
user1596138
But doesn't he have like a 6920HQ
 
and then I'll post mine
it might get him to post his
 
user1596138
5:27 PM
Yea it doesn't do Mac
 
Linux either
 
ahh lame
/me pretends he didnt see it before on work chat
 
as if I wanted to share my "Icecream Stick" specs >.>
 
I should test my kids PCs
and my PC sitting behind me that I was just using a few months ago lol
going to use it as a second VR station so my kids and I can play coop vr
 
5:32 PM
I can surf, edit, occasionally both if I'm in a very cold room... thank you Intel m5
 
user2620028
ok i figured out what i was doing wrong
 
user2620028
im just having a derptastic monday
 
@SterlingArcher can confirm
 
/me waits for someone with sli 1080 to post results
or a titanx haha
the funny thing is I spent all weekend working on a 386dx, 40mhz baby, and 4mb of ram! :P
 
5:37 PM
@jAndy pretty much
 
user1596138
@Loktar I'll challenge your phone
 
@Luggage k, just heading back to work.
 
user1596138
With my laptop lol
 
user1596138
lol they have 3D mark for Android
 
pick up an ROG laptop and fight damnit!
 
5:42 PM
hah crazy @Jhawins
 
user1596138
@FilipDupanović I have one
 
@rlemon For your comments in app.jsx: Yes, you need to pass down state (like logged in status or the current user) to all children. React has a feature to do this called 'context'. They are like props that children subscribe to, instead of you passing them explicitly. You should use 'context' sparingly, but things like the current user are OK. ('stores' are sometimes passed in via context. Also, Mobx's provider/inject uses context).
I suggest using the mobx way, and can whip that up real quick, but you should just be aware of the underlying 'context' mechanism.
 
user2620028
i am trying to use es6 classes for the first time today and it is really fucking with me
 
user2620028
if i create a global variable inside of a react class i can access it anywhere.
 
5:54 PM
As for what is 'allowed' in state. Anything. state if for your use. React will re-render when: 1. a parent component re-renders (you can opt out if the props don't change or with custom logic), 2. internal state changes. 3. context changes? I think. 4. Manually view calling ReactDOM.render() again.
@HatterisMad yes, but you probably don't need a global.
 
user2620028
if i create a global variable from outside of react (not even in a class) then i can't find it in any other js file
 
how are you creating it? var foo = 42; ?
or window.foo = 42; ?
 
user2620028
window.foo
 
Wait, why am I helping you make globals.. :)
 
user2620028
because you want to help me be evil?
 
5:55 PM
hm.. the window.foo should always work..
if that module has been require()ed once, at least.
 
user2620028
somehow the react code is getting called before the global is being made
 
user2620028
is what is going on
 
yea, could be. the global won't be made until that moduel is require()ed for the first time.
what is the global for?
 
user2620028
data model
 
why not just export it?
 
user2620028
5:57 PM
would that allow it to be current?
 
user2620028
or would each file get the version of the variable when it imported it
 
the main export is static, but that could be an object with mutating properties.
 
user2620028
the way i am doing this right now is not right ( i know that ) but it will keep it simple until i can decide and come to best practices on something like reflux, mobx, redux
 
var foo = {};
export default foo;
setTimeout(() => foo.bar = 42, 1000); //anyone looking at foo after 1 seconds will see the change.
 
user2620028
even in the other file?
 
6:00 PM
yes, because you are just exporting a reference to foo.
 
user2620028
ok
 
you jsut can't re-export foo itself or change that to a new object.
 
and all the dependents import the same reference
 
foo = { bar: 42; } //reassigns foo, won't be seen extrenally
 
user2620028
and i can do this without being inside of a class?
 
6:00 PM
classes have nothing to do with this.
 
user2620028
its how js handles seperate files?
 
now you're using modules and each module has it's own scope
 
user2620028
so each file is now a module and is scoped
 
user2620028
so i just need to
import varName from 'file.js';
 
user2620028
or do i import a function returning that value?
 
user2620028
6:04 PM
the export happens after all of the code is run in the file?
 
yes; think of it as passing an object as an argument to a function, it gets evaluated and when it returns the exports property is what the module wants to share
 
user2620028
i keep getting undefined no matter what i am trying here
 
user2620028
think i have js files being called out of order but no idea how
 
Hi All
Good morning
Do anyone have an idea about Cross Site Scripting vulnerable please
 
user2620028
import {foo} from './dataModel.js';
console.log(foo);
//No compiler error but undefined
 
user2620028
6:12 PM
wait its the brackets
 
If yes please help me here stackoverflow.com/questions/40974853/…
 
user2620028
thank you all who helped me, i have it passing through import/export now... the entire time i was fucking it up with brackets
 
6:28 PM
@Luggage okay, I'll go read on contexts
 
also, my @page(0 thing is a poor fit for the main <App /> re-writing (minimally).
a few minutes away from a PR (this one you should read and agree with, not just accept)
 
I read them all 😀
 
I mean, it's about 'how to do things' not just some book keeping.
 
ahh, okay
okay, well I'll go make a coffee and wait 😀 maybe work a bit more on learning ant design
it seems like a nice library, but also quite controlling
 
PR made. app.js changed, simplified. Also, I demo use of context in the home.jsx.
Now, when they log in, it just updates everything that needs it (well, probably more than needs it)
 
6:35 PM
hey guys... does anyone know if there exists an event in electron to see when the clipboard content has changed?
 
cool, reading
 
TopMenu and Pages would also use context, but I didn't change then.
 
yea I got rid of TopMenu
the actual UI is going to be changing a lot as I read more about ant-design
a lot of their docs / examples are in Chinese
google does okay at translating..
 
heh
I think when pages re-renders react-routers is pushing a history entry..
it's kinda odd, but I'll help you get a better router, anyway. don't waste your time trying to keep up with react-router alpha that I was eveluating
so.. context is your react version of a 'global variable'. Treat it with similar caution.
I decided to just use 'currentUser', not 'loggedIn' because the currentUser object might be handy to have. and you could give it functions like canAccess(feature) or the like.
(of course, the server should also verify permissions, but for UI purposes the client needs the same)
 
I was reading about the changes in react-router 4, and on the same doc they state they will be maintaining 2/3 as well
so I could start looking at 3
 
6:42 PM
you could. it's more commonly used, so more info around.
it's also not truely part of your component tree liek 4 is. That's a good thing.
brb
 
hey guys, how come i get a direct email from a company saying they read my github when my email associated there is set to 'private'?
 
they lied
 
user1596138
@CSᵠ Link us your github and we will find out lol
 
user1596138
You probably have something else linking to your github that has your email tbh
 
cs1000
 
6:47 PM
or they said that to imply they got your email from github and didn't buy it from some list
 
^
I did have that checkbox ticked tho "availabel for hire"
 
@Luggage App.jsx, why in handleAuthenticationChange do you call App.getUserInfo instead of this.getUserInfo()?
 
static method?
 
yes
 
you mean why is it static?
 
6:51 PM
okay, I'll google static methods.
 
seriously?
:P
 
okay, brainfart
tease away
 
It's static because I use it before app is instanciated (in boot.js)
 
yea I saw that
okay I think it all makes sense
is reading the context object expensive?
if I'm passing it around anyways, is there a reason to pass loggedIn to components?
 
It's not expensive, that I know if, but there is a reason to limit it's use to a handful of places.
like.. the main "page"s can use it. If you make a component that does something more specific, then you should generally pass it what it needs.
 
7:01 PM
gotcha
@Luggage is there a nice way to redirect someone with react-router 4? I think I've already asked you
I want to pass to the from location after logging in
 
you use <Redirect /> I think
 
I'll go see if there is something I missed
wait, I can use that anywhere?
 
No idea.
You've used react-router 4 as long as I have, now. :)
 
can you use react-router (or other, similar routers) without a DOM?
 
chrome is broken
 
7:09 PM
react-router 4, maybe not.
well.. yes.. but it'sll be awkard.
 
when i mouseover links or text fields my pointer isn't changing
 
react-router 3, probably. other routers, definiately.
 
user1596138
!!tell KevinB giphy smallest violin
 
4 is just too magical?
 
7:09 PM
yea.. 4 put itself in your render() output..
it works ont he server, if that's what you mean.
 
react router is a joke
 
so.. no, it doesn't need a real DOM.
 
user1596138
React-router as a project is currently spaghetti.
 
but, it has react in the name
it must be good
 
		<Match pattern="/login" exactly render={ args => (
			!props.loggedIn ?
			<Login /> :
			<Redirect to={
				{
					pathname: args.location.state ? args.location.state.from.pathname : '/',
					state: {from: args.location}
				}
			}/>
		)} />
works.
:shrugs:
 
ugh
 
user1596138
Wow that is a mess lol
 
user1596138
Now they have you passing a render method to it lol
 
user1596138
I haven't used whatever version you are on, or I haven't ever seen anything like that.
 
4
 
7:17 PM
react-router 4
 
user1596138
I've used that.
 
user1596138
Do you have a need to do it that way or you just don't like the way react-router normally works?
 
I have no idea how react-router normally works.
 
he's new to it.
 
@KevinB unmaintained, last updated 3 years ago
 
user1596138
7:18 PM
Run lol
 
Is there any way of writing Gujaratí chars on console, without pasting them?
નર્મદે સિંધુ કાવેરી જલેસ્મીન સંનીધીમ કુરુ
 
an IME?
 
!!> console.log('\u0A91')
 
@rlemon "undefined" Logged: "ઑ"
 
?
 
7:23 PM
That should do it
Thanks.
 
Gujarati is a Unicode block containing characters for writing the Gujarati language. In its original incarnation, the code points U+0A81..U+0AD0 were a direct copy of the Gujarati characters A1-F0 from the 1988 ISCII standard. The Devanagari, Bengali, Gurmukhi, Oriya, Tamil, Telugu, Kannada, and Malayalam blocks were similarly all based on their ISCII encodings. == References == == External links == https://en.wikibooks.org/wiki/How_to_use_Unicode_in_creating_Gujarati_script...
^ the block
 
7:46 PM
what do you guys used to handle video screen capture?
I've got an old (licensed) version of camtasia, but the codecs don't seem to be working and its turning into rabbit hole after rabbit hole to fix it
 
@Shane OBS
 
cool, thanks
@BlunderCode pretty happy with it, I assume?
 
user1596138
@Shane HyperCam
 
user1596138
lol jk
 
hmm, thx
assuming I should avoid that one :)
so OBS is probably the most tried and true out there?
 
7:52 PM
@Shane Yeah love it. Free, Open source, hd recordings, simple just watch a quick how to video on youtube and your set for life to do basically anything window capture, monitor adding audio anything you need.
 
nice, good enough for me... thanks!
 
Be careful you have the right setup with OBS though - for a while it was cutting off all my video recordings at exactly 20:50 until I installed a specific thing for my video card
 
@Shane might be a little heavy just for screen recording but gives you the ability to get fancy with it
 
that's fine... I don't mind a few extra dials on the side
@BenCraig - noted
like a dedicated driver or specific codec or what kind of thing?
stuck pretty deep in the world of "nested do-befores" right now
"do this before you can do that before you can..."
 
@Shane I've never had that problem before might be fixed now
 
7:56 PM
k, cool installing now
will know shortly :D
 
what are you using it for?
gaming? tutorials?
 
bug communication
 
@Shane yeah, a lot of cards will be fine with the normal install though
 
login glitch, would take a lot of words, but a quick screen capture as I go / talk is perfect and takes 5 minutes
running into a lot of those
eventually tutorials though
 
if its only 5 minutes, it wont be an issue
 
7:58 PM
oh good, cool
yeah, pretty light use
 
I was trying to record gaming speedruns and it would stop halfway through my game
 
yeah use window capture you can also add in words and stuff to make your point cleareer or mic recording
@BenCraig just a driver issue??
 
@BlunderCode amd-encoder problem
 
@BenCraig Solution: be faster
 
@KendallFrey ugh Im trying
I pb'd by almost 12 minutes and I have no proof ._.
 

« first day (2242 days earlier)      last day (2705 days later) »