« first day (2475 days earlier)      last day (2698 days later) » 

16:03
how do you guys handle redirect on authentication failure in React with redux?
@KamilSolecki I hard carried a game as Nasus last night. 13 kills, I split pushed all the way to the inhib, and my team threw the game with bad calls and I didn't get a single honor.
redirect on authentication failure? we just... display an error message, no redirect, ?
why would a redirect be needed?
@JoeSaad what's the problem?
if the user isn't logged in and needs to be, display a login form
@KevinB Imagine that you are trying to access an authenticated resource, however, you do not have access. It should kick you back to the login screen, and after login, redirect you back
16:06
@Trasiva Every game I try to focus on motivating my team/shotcalling as much as I do on my gameplay. It's a team game after all, and rarely you can win solo.
@KamilSolecki I was shot calling the whole time.
I told them to group and play defensively. They'd fucking engage, get peeled, and then melted.
I shut a Jax down hard because he was a greedy shit.
@GNi33 i know that when i run webpack-dev-server it is running a different server not my node server.js
@GNi33 how to make use of webpack-dev-server hot loading while using my own server.js express
ah. so why do you want to run the webpack server then?
@GNi33 hot loading watchers
16:11
i tried using this one.. it doesn't do the hot loading.. i know i may not have configured it right
hmm, I'm pretty new to webpack as well, didn't use the dev server extensively
I am thinking of using Axios with some sort of interceptor in order to configure the store to dispatch some action in order to manage that state
@rlemon lol I was on a call :(
@Loktar rlemon is afk: lunchin
honestly I mean my steam list is getting meh now
I stopped buying tons of games on it over the past year or 2
16:19
There isn't much to buy tbh
Unless collecting classics
well my issue is there is just too much now
so much shit 😒
The amount of products doubled over a year on Steam iirc
Impressive. But I can understand it from you being a game collector
yeah, it's silly though digitally, and I recognize that
I mean I don't "own" a single one of those games
I own a license to play it is all lol
16:20
you don't own anything you can't defend
I've switched to gog for a lot of my purchases though
I guess the thing is at least on gog, being they are DRM free, no one can actually take the games from me once I have them, or stop me from playing them
same goes for my physical collection. However man I dread the day we all just stream content fully rather than buy
I know a lot of people will like that, but I shudder to think about it from a gaming standpoint lol
Lol
Also, I'll never let my friends use my account again.
@Trasiva lmao and you still have games not played!
@Loktar I just looked, one of those is inaccurate.
Correction, three.
It's half life 2 episodes 1-3. And I've played all of those.
@Loktar iirc there is services alike, although it's still its early phase
16:24
ah, yeah and HL deathmatch counts lol
kind of silly.
@KamilSolecki yeah there are a few now
iirc the first one was onlive, but others have emerged, like PS Now for example
I let some friends all piggy back on my account because I had TF2 and HL2
PS Now is actually pretty cool honestly, I can play PS3 games on my PC
Hello, a simple question about html5: Is it a good idea to add class to semantic elements for only decoration purpose?
@N1ng sure, why not?
better than styling the element directly based on element type
I don't see a downside
16:25
They bought some weird stuff. Tropico, some weird hentai game, Primal Carnage (wtf)
Tropico is fun
I tried to load Primal Carnage the other day, it violently crashes my laptop.
lol you like Hunie pop eh?
Thanks :).
Don't give them access to your account, only your games.
16:26
there are games even I draw a line at 😉
> Friend borrowed my account, and bought games on mine even though he could make his own free buy games there and keep it forever
I gotcha, no shame in liking dat HuniePop
"forever"
^ good point
Mmm pickled eggs
man when/if steam dies people are going to "lose their shit"
@rlemon Wat
Never had that
16:27
@Loktar Considering I had to give him the $10 to compensate him when I changed the password.
Dude, so good
@Trasiva haha
why didn't they just make their own account?
TF2 is free to play...
Pickled tomatoes are awesome, if we are talking pickled stuff
Items, probably
@Loktar they may be different personalities , but they share the same body.
16:28
@Loktar Because I already had games he wanted to play.
@KendallFrey Wait, what?
there isn't even TF2 on the list
@Loktar That's assuming it doesn't just stop being used like most dead technologies
You can share games?
Oh, and Slavic countries handle the best pickles in the world
yeah, it's account sharing though
16:29
No competition here
the entire account is locked iirc while someone plays the game
@Trasiva Yeah, the "family" mode or whatever
Oh, that's lame.
You can't both play at once
16:29
Steam will die if/when they make it subscription based.
that's the shitty thing @KendallFrey annoys me tbh
@Trasiva but you can take access from them anytime
How am I supposed to destroy my life with Civ 5 when someone else wants to play their porn games?
I mean anyone can grab 5 games from my shelves and play them seperately
wish digital supported that, but I understand why, it's for the monies.
That's why I have 7 steam accounts.
16:30
@Loktar Yeah but they know going in that if I want to play, they don't get to.
@littlepootis :O
yeah, I mean if you could play sep games on one account, my kids wouldn't even need their own accounts really lol
...I have rocket league.
I can't imagine that would run on my laptop
I'm not sure that this playtime is accurate for Civ 5.
this made laugh rlemon. Look at Canada at what the dots say.
I've had entirely way too many sleepless nights on that god damn game.
16:31
@William lol
@Trasiva I feel you.
@William English is the majority here, pleb
@Loktar I was messing around with SC II last night. Many regrets were had.
Remastered SC1 is out super soon
yeah I have gathered the map isn't exactly accurate
16:33
like 2 weeks I think? I have it preordered
My body is ready
@BenFortune here = ?
I can't wait
@KendallFrey where I live
Which is
16:33
here
Did you move?
@KendallFrey our former owners
Yeah, I was there
@Loktar Remember the old DLL injector to make your own custom units/custom damage/attacks for game play?
Nah, the UK
thought you knew that
16:34
I did
The map shows the UK has English as the majority
@Trasiva hah no I never got into that for SC really, but there were similar tools for Diablo
@Loktar Nothing funnier than giving marines auto attack the yamato gun (from the cruisers).
LOL
Or zerglings the Archon zapper.
Just literally zerg rush everything to just lolgg everything.
@KendallFrey It doesn't lol
16:38
@BenFortune UK is purple. Purple is "Countries where English is the national language or the native language of the majority."
Oh, so it does
my bad
I thought it \n'd after majority
For someone from a country where English is a majority, your English isn't so great :P
"Countries where English is the national language or the native language of the majority. an official language, but not the majority language."
I thought there was a typo, but it makes sense now lmao
Why is America purple? We don't speak English, we speak American.
And then the other one lol
Just "Countries where English is"
@BenFortune lawl
@BenFortune Pottery.
haha
Okay figured it out
Are there any examples of code that can be done with promises but can't be done without
3d print from the cr-10
of course painted/smoothed after, but man...
that looks awesome
you seen the new alien?
17:02
^ the money shot
@BenFortune no I need to still
have to wait until it's out to rent/stream now
It's breddy gud
I would have no idea that was 3d printed, some people are just awesome
lmao
@BenFortune I did, and loved it
@Loktar little bit of sandpaper goes a long way
17:04
@rlemon yeah but that guy is also amazing at painting/finishing too
@SterlingArcher I saw the ending coming from a mile off
@Loktar ohh yea, granted, I was just saying the smoothness of it all. until you zoom in you can't see the layers
@BenFortune oh yeah, they could have hidden that so much better
I have to imagine that's the work of some wet/dry 600 grit
PSA: Alien spoilers will be tolerated but I'll whine if I hear them
17:05
@rlemon Sanding 3D prints is a bitch
@Vap0r No they aren't
@KendallFrey did you wet sand with very very high grit?
No spoilers of any kind
@BenFortune even better :)
@rlemon no
17:05
b/c that's the only way I've ever seen it done on youtube
high grit only would surely just take longer
you'd be surprised.
it eats away steel, I can't see poly lasting much better
@BenFortune I didn't like how the Prometheus/Covenant went the route that humans created (technically) the xenomorphs, when in the old books the Space Jockeys used xeno-bombs to destroy planets, ergo xenos existed before humans
@rlemon high grit eats away steel (better than low)?
I can see the use for wet though, because (for PLA at least) any kind of vigourous sanding makes it hot and soft
17:07
@Vap0r meaning it doesn't take much for it to take down steel.
@Vap0r ofc not better, but you get a better finish, and for finer details you'll have a better time with some wet sanding at higher grit
I have no experience with plastic, only steel and wood
but in concept it should be the same.
@SterlingArcher I never read the books
Well you obviously finish with high grit
^ That's my main question. Do you go low grit -> high grit -> high grit (wet) ?
my point is just that you'll not be there all day, you'd be surprised how fast you can work down material with higher grit wet sanding
lemon did you listen :(
17:09
@SterlingArcher still am
@Vap0r on a 3d print the detail is almost already all there, I'd think just high grit dry and/or wet
the quality of sound on that old ass video is shocking
putting anything <100 grit would probably make it worse
400 vs 600 isn't going to make much difference on how much work it is, just a better finish.
depends on the quality of the print
17:10
the dimebag outro was heavy af
and wet sanding (if you can) is always better imo
So my understanding seems to suggest promises syntax sugar
wait, is that painted?
@rlemon fair enough. I've never dealt with 3d printers before, only with construction sanding and sanding poolsticks down.
you often need to file a few spots, due to burs and flaws
17:10
lmao that bouncer "make this end pls"
@Vap0r I've done some blade work, and furniture making
Nice. My brother describing wet sanding reductions to me from when he had to shape granite for a bathroom made me fear having to sand anything more solid than wood hahaha
@KendallFrey hey, so like, you know a lot of farmers.. any chance any of them has scrap sheet metal? 3mm thick? like to cover a small desktop?
@Vap0r well yea, stone is a lot more work :D
you're looking at days of sanding, not hours.
I mean, maybe? idk
@rlemon are you looking for a continuous piece of scrap that can form the whole desktop?
Or multiple pieces of scrap to create a patchwork of sorts?
17:14
I'm looking for a welding table top
so I can just ground out the sheet
are we going to find you in the woods one day gone all primal bob
no I was just thinking about the winter and building a proper forge, but I'll need a proper welding station to be able to build a proper forge
> A rimworld-like compound was found in the canadian wilderness recently..
with a real horse head.
@SterlingArcher you see a squirrel, I see $42.09
17:16
@rlemon we used to have a company around us (don't remember what type of industry it was) but it was called ALCO and you could select and cut sheets to size and they would only charge you for what you used. It was pretty cheap
we have a metal distributor here, but a sheet like that'd cost me like $100
I'm cheap
Best channel on youtube
@rlemon I mean you could always try to see if they had scraps. I think the biggest scrap I ever saw there was like 2 by 3 feet, and it was probably 1-1.5mm thick, but they would heavily discount them
Good luck!
people last time were discussing his 'power hammer' and saying it was pointless, saw a documentary about a town in japan(?) that makes almost all its money from selling some special pottery, and they crush all of their stones with water driven power hammers
and have been for a very long time.
just thought I'd share
@Vap0r ideally I'd like a continuous sheet. I don't think welding bits together would look as nice.
sure, it's a shop. but I don't want it to be ugly just because it's a shop
17:20
yay milestone kickoff in 10
Kick that milestone!
We have 2 left. FOC is in december, and we still don't have ATO or even IATT yet :(
@rlemon I'd want a continuous sheet too. I think salvage is your best option but I don't know where you might find that... Maybe a metal recycler? All my knowledge comes from my brother and father when it comes to welding, but I do know they always preferred to invest when it came to welding, so if salvage doesn't work maybe invest in that $100 sheet?
^ the song is more enjoyable if you're standing
I thought the water hammer was great. I don't know if he's trying it, but I hope he makes gunpowder lol. A water-hammer is perfect for this because the level of grind has to be extremely fine on both your sulfur and charcoal (carbon). It would be cool, but I don't know where he would get potassium nitrate from if there are no batcaves near him
17:27
true story
true story
I won't stand for this!
@corvid yeah i skip all that and just show the login component instead of what was requested. Stays on same page
@SterlingArcher probably in the top 3 most exciting machine head songs
I want it to specifically reload the page so that it will "reload" the request that 401'd
Axios made it actually super simple, would highly recommend this library
17:29
And you wouldn't think it too, until you hear the heaviest drop ever
the entire buildup is dope
you know what's coming
shh
I told you not to tell people yet
too late it happened
ugh
I'll get you a towel.
17:31
I'm wfh today because of my back, and my roommate texted me from the parking lot that he came home "dont freak out it's just me" and before he even opened the door "too late, already shit myself" and i heard him laugh from the hallway
im a fun guy
You guys have a really beautiful bromance
!!afk loo
we do don't we
<3ro
That's cute, but all I can see is <3 RO
weird, cuz that's not what I wrote.
you got a script running or something?
17:37
hi i have a moment question... when using moment().isbefore(moment(), 'day')
does that take into account the users day in their timezone
@rlemon nah, it's <3ro to me, but I saw it as "heart room owner"
I do heart a room owner
:D
@ChristianMatthew what are you doing here? Are you trying to see if the current moment is before the current day?
@Vap0r I am setting a day the using can choose... but I am assuming that date/day is based on my time zone's day
so for example... in Hawaii when my day is over and their let's say 7pm hawaii time... will that day still be the correct day for them
moment(day.date).isBefore(moment(), 'day'
@ChristianMatthew I would think you would probably want to convert to UTC then compare, but I've never used moment. Does this SO post help?
17:49
@Vap0r i read that but damn that code sequence seems like there has to be a better way
I don't know much about moment so you could be right: there just might be a better way, but I don't know it. My guess, like I said, would be to normalize the time by converting to UTC, then checking isBefore
Good luck!
i appreciate the help... i was just wondering if moment did that lifting for you or if like that post you need to do some adjustments
I don't think it would.
hi people
hello everybody
17:56
hola
hey @gtzinos what have you been coding recently?
i am developing a nativescript app
I am wondering if someone used this framework
i've never heard of this framework
@KevinB looks a lot like React Native from first glance, but for Angular
@SterlingArcher Dogs know more more English words than we understand dog words.. think about it. Dogs > people
18:03
I got a native script shirt I use as pijamas, if that counts as using nativescript
They gave them out for free at a conference
I know cats that know human words, if you say them loud enough.
@ssube my cats know where I keep their food and the squirt bottle.
for different, but related reasons
My gf's cat understands basic commands. He usually ignores down and no, but sit and monkey usually work if you have treats.
Eventually I'll teach him how to haul bricks for me.
user1596138
Meh
18:13
@Vap0r Yeap
is a native app with a javascript engine to run it
@rlemon omg lol
looks like sam fucked john
i am wondering if using the plain javascript template, if the performance will be better
@gtzinos If you do it right, almost always
i am developing using the angular template but i am not happy with the performance
10seconds to boot are too much
with lazy loading
What does that have to do with the template?
18:19
it has a google maps in the home page that is increase the time
but using a native app it just increase it 1-2 seconds not 10
@rlemon holy shit o_o
18:44
@BenFortune haven't seen many posts about the proposals. What is your opinion on pattern matching?
Can't say I use Promises often but glad to see they are getting more complete
you don't use promises? How?
often. we got fine with out them for years
wat
Would that if syntax be considered bad / good / biased practice in JS? :
for (var i = 0, length = paths.length; i < length; i++)
{
    param = isParameter(paths[i], i);
    if (param) params.push(param);
}
@KamilSolecki what's param?
Where is it declared?
18:47
@KamilSolecki its probably better to do param === true depending on what is returned
@ssube above. its an array.
I always use {}s
param is an array?
are you reusing it in param = isParam... or is that returning the array?
@KamilSolecki is is null/undefined if nothing is returned
also, why are you declaring the variable and then assigning within a loop?
18:49
@William yeah yeah
something is off, but without seeing the rest of the code, I'm not sure
var Handler = function(url) {
    var paths = url.split('/');
    var params = [];

    for (var i = 0, length = paths.length; i < length; i++)
    {
        param = isParameter(paths[i], i);
        if (param) params.push(param);
    }
    console.log(params);
}

function isParameter(element, index) {
    if (element[0] === ':')
    {
        return {name: element, index: index};
    }
}
rest of code (in processing)
well, first off, param is gonna be a global, so that's bad, mkay
params.concat(paths.filter(isParameter))
ohh, you defined it above.
nix the concat, just filter.
oh, this one is cool.
18:50
yeah, that should just be a normal filter
thanks all
@ssube I should also read about JS scoping. Lack of accessors is making me go nuts
you'll also want to split isParameter, I think: filter(([fc]) => fc === ':').map((name, index) => ({name, index}))
reduce it all in one go.
no
bad lemon.
!!meme (all the things) Single line / All the things!
18:54
@KamilSolecki Sorry, I don't know that one.
filter doesn't exit early. you're still iterating all items.
hm. Works in slack. Or I messed up the name.
not bad lemon. look at his code.
it's fine.
isParameter is both filtering and mapping right now
so you gotta do both, unless the filter only returns one item
or use reduce.
18:55
why?
loop with filter N times, then map N-Y times or loop with reduce N times and be done with it
it's a clear case of filtering and mapping. a reduce would be harder to read and require you concat, making lots of throw-away arrays
he's doing almost nothing in the body, I don't see why everyone is so hard bent on filter.map
@Luggage why would it require you concat? you can just keep pushing
ok, then show me.
18:56
most of the other array operators can be replaced with reduce (or forEach), but that doesn't mean they should be
const params = paths.reduce((arr, path) => {
  if( blah ) arr.push(..);
}, []);
I don't see why you guys would have a problem with that
TIL JS is really LINQ on steroids.
You never returned arr
@KamilSolecki LINQ is JS on steroids
@KamilSolecki steroids?
18:57
yea yea, small typo in the example
const result = input
    .filter(([fc]) => fc === ':') // starts with :
    .map((name, index) => ({name, index}));
Steroids is LINQ on JS
@Luggage so you're taking a subjective amount of readability over ops?
iterating on the data once its in-memory is cheap
LINQ is a board game
18:58
filter and map have meansings. Sure.. they CAN all be written as reduce, but you don't need to.
the map will be producing new items either way, which is more expensive than looping again
reduce is just one of the most primitive ops, so anything else can turn into it
I don't see .filter.map as being easier to read, reduce is just as readable in this case imo. so I'll prefer the one that does less for the same outcome
My filter and my map are often separate functions anyway
.filter(isParam)
.map(transformThing)

« first day (2475 days earlier)      last day (2698 days later) »