« first day (2447 days earlier)      last day (2503 days later) » 

2:00 PM
so that'll render <LoadingSpinner />, then load all the data items, then render <ViewUser user={..} /> etc
 
That's pretty neat honestly
 
tons of websites are down
what is going on friends!
 
huh?
 
reddit being the main one
 
Although I do wonder what you'd do if data loading wasn't consistently in componentDidMount or componentWillUnmount?
 
2:02 PM
but various sites I've tried are returning 503s
and twitter is complaining about it too
 
@Loktar can visit it atm ?
 
Make it consistent.
consistency lets you make changes in bulk. inconcistency is technical debt
 
@Loktar looks like a bunch of cdn resources are offline
imgur loads, but not with all scripts and styles.
 
@rlemon yeah on sites like this rgcd.bigcartel.com
I get a 503
that's a commodore indie game site
nytimes is 503'ing I guess as well
 
yup
 
2:03 PM
 
ddos
 
yeah pretty nutty
wonder what service is being hit
 
Maximum threads for service reached
 
@rlemon and what should i look for?
 
i can see the nytimes page
 
2:03 PM
@Luggage so what would you do if you needed a button to fire an AJAX call?
 
@OliverSalzburg how do you reset a timeout?
 
must be something pretty large @KarelG where are you at?
 
@AndréMarques I don't really know your problem, just opened the code and noticed you don't use paths at all.
 
then my side of the cdn network is being unaffected :o
 
reddit and nytimes work for you?
 
2:04 PM
Belgium (europe)
yes
 
ah interesting
 
I just got an email about one of my remaining godaddy domains expiring
and I can't login to godaddy
 
Are there any sites that can give you insight into real-time hack attacks?
 
" Senate Leader’s Reputation as a Top Tactician Takes a Hit " on nytimes
 
XD
 
2:04 PM
@Vap0r i would need to see that situation but I need to do some of my own work. let that be a generl example of moving common tasks out to another component. you may need to adjust for your situatin
 
hey reddit just popped up
sort of lol
 
lorempizza.com is on godaddy (domain only) and is expiring
noooo!!!
 
@rlemon sry im new to this but what do you mean by paths
 
@AndréMarques google "mdn + canvas paths"
 
@Luggage absolutely I appreciate you taking the time to show me that pattern. It's a bit abstract so it might take me a second to add it to my bag of tricks so-to-speak
 
2:05 PM
specifically pay attention to context.beginPath() and context.closePath()
 
yeah np man anytime
 
@Loktar lol sorry
 
@rlemon you get a pretty decent grace period
I hate namecheap actually I never get alerts mine are expiring
and I had a bunch set to auto renew that did
guihacker.com expired the other day, but was within the grace period luckily
 
@corvid tbf, I'm not sure if I would like it
 
@rlemon but im just drawing images does path influence the draw function
 
2:07 PM
@KarelG why not? Decorators are easy
 
@AndréMarques you're doing more than that
either way, it was just a tip
 
@rlemon oh yes im drawing text too
 
not using them hurts you more often than zealously using them
 
@rlemon ok i will try to add it so seee if does something
 
probably won't
like I said, I have 0 clue what your problem is, I didn't read your original post
😃 just clicked on the link
 
2:09 PM
@Loktar you need some arp scan and traceroute emulations
 
wtf godaddy
get an email titled
> GoDaddy Cancellation Notice
log into the site, both domains are already set to auto renew
tf?
 
//Controla o jogo todo
var main = function() {
  now = Date.now();
  delta = now - then;
  timer = delta / (1000 / 60);
  update(timer);
  renderGameArea();
  then = now;
  //Desenha por frame
  timer = requestAnimationFrame(main);
};
You should have some diff vars especially for timer
 
oh shit that code's in spanish how are we supposed to read it?
 
@rlemon did you use a link in the email?
 
@rlemon i think it actually fixed it
 
2:12 PM
@corvid hmm +/-
 
@rlemon i wait like 1 min and it didnt lag
 
@Luggage nope
I don't click email links
 
ok, then :)
 
@Thaenor clearTimeout, but it clears itself once it has expired
 
I don't click email links too :D
 
2:13 PM
\o/
 
@OliverSalzburg does this look good now? jsbin.com/jikawasiwu/5/edit?js,console
 
@rlemon thanks bro
 
yeah it was your fill/paths
 
uhh, okay
 
2:14 PM
lol was funny watching the fps tank
went from 144 to 60 pretty fast
 
was it actually a FPS issue? haha
I pegged the issue just from reading the code :D
implicit paths stacking
 
@Thaenor You don't need to call clearTimeout. You only do that if you want to cancel it before it has timed out
 
@OliverSalzburg but otherwise won't I just set a new timeout on top of the old one?
ahh... but since it has already expired it's ok... right?
 
@Loktar do anything Canvasy lately?
I haven't touched it in a while :(
 
nah
haven't done anything in a while not react related
 
2:18 PM
@Thaenor Right
 
@OliverSalzburg awesome, Thank you! :)
 
lol @ dat comment
 
@Loktar we should get back into it 😛 2 hour weekly challenges. get the room in on it? no more than two hours to make a shitty demo
 
I made a rainbow spiral thing in canvas. It's so great I think I can make a living off of freelancing. I have 3 years theoretical experience in computer science and studied MIT in Boston for a weekend on vacation so I'm pretty much Senior level and should be able to designate my pay
 
3
Q: Why does this constructor not return a string?

André ViníciusConsider: function Panda() { this.weight = 100; return [1,2] } When we instantiate with new keyword (new Panda()), it will returns: [1,2] Without return statement, it returns: { weight: 100 } With a return statement like: return "Hello", it returns { weight: 100 } Why does it do this...

 
2:19 PM
I'm SPECIAL
 
it would be a fun friday morning thing
 
@rlemon maybe when I'm not so busy at work
 
@KarelG no
 
I had to take over some stuff that a person had > 6 months to work on
 
plz no
that's not serious
 
2:19 PM
@Vap0r in his defence, he does make pretty neat Canvas demos and demonstrates a good knowledge of the maths involved.
 
absolutely nothing was done, so meh.
 
as insufferable as he can be about it
 
@Vap0r LOL
 
@Loktar ouch
 
yeah sucks :/
but whatever I can get it done fairly fast I think, said person is leaving the company
 
2:20 PM
@rlemon I only jest. I just had to back away after a bit and seriously consider how much of an arrogant ass I was at his age. And just how clueless I was
 
so that's a plus I suppose
 
@Thaenor Maybe you'll enjoy this: jsbin.com/voqedikasi/1/edit?js,console
Man, that site is slow af
 
But yeah his canvas shit is neat. But he deserves tough love and that's what he'll get. He says "oh vap0r I won't listen to you you don't offer constructive criticism". 5 other people offer good criticism echoing what I said, and he says to those guys "I see your point... but"
Well forget that. I'm not jumping through hoops just for him to tell me he never wanted to see it in the first place.
 
It's currently throwing an error.
 
@BenjaminGruenbaum do you know why returning primitives are being ignored when using new call ?
I'm intrigued
 
2:23 PM
@OliverSalzburg I could've thought of that but promises are out of the table, unless they are supported by IE 10.
 
@Thaenor Ah, gotcha
 
If anyone could check my question at https://stackoverflow.com/questions/44757948/get-coordinate-from-path-with-multiple-points-based-on-fraction-of-paths-distan that'd be great. The algorithm works better (marked as answer) but it's still not perfect (see screenshot).
https://www.dropbox.com/s/8ba72e7ww770ue0/Sk%C3%A4rmklipp%202017-06-28%2016.22.08.png?dl=0
 
@KarelG yeah it seemed stupid the way he wrote it but that's really an interesting case
 
@Vap0r that came out of nowhere
 
2:25 PM
@OliverSalzburg yeah I'm not doing something I'm particularly proud of... our project managers seem to like to double our scope and cut our deadlines by half so we have to take drastic measures.
 
I actually have that gun lol
PSL
 
then the technical debts comes back and bites us in the ass someday...
 
dragonov?
 
@rlemon said something about canvas
It doesn't take a lot for me to go off on a tangent
 
@Luggage PSL
 
they look pretty similar
 
much cheaper and more common than a dagonov, but they share a similar stock
 
@Thaenor I've done crap like that in Cordova, where everything just loves to register itself onto window at some point in time :P
 
ah
 
She gets shot at and just smiles
 
2:28 PM
@Loktar apparently the person she was shooting at was the sniper who almost hit her
 
Probably knows how close she was. I'd probably just shake
 
she saw him take the shot
 
Can someone explain to me why express calculates ETags for every response? Like, isn't the point so that you can check whether you want to re-query data from a backend? So, how could this ever work if the ETag calculation is handled by a layer of the application that has no means to verify an ETag against the backend, other than to fetch the resource again
 
there is supposedly a bit of a rush from being shot at and walking away
 
top is a PSL
 
2:29 PM
I just can't imaging looking down the sights at the person shooting back at you
 
yeah I can't believe she is wearing socks with sandals though
 
lmao
 
tactical sandals*
 
tacticandals
 
2:31 PM
lol
 
why do you have a PSL :|
 
I am running into a React problem again :\ suppose I have a video which is playing, but in the background, I am fetching data. This causes the video to stop and reload. What's considered the best way around this? shouldComponentUpdate?
 
my country has a too strict weapon laws >_>
 
Fetching data for what? The video?
 
even a silly butterfly knife is illegal here
 
2:33 PM
I can buy a grenade launcher for my military rifle here in USA
 
:|
 
but not a bayonet
that would be dangerous
 
@Vap0r nah, it's a feed which contains links to videos
 
@corvid to be clear, you fetch the data and setState, which is causing the video to stop and reload? Or the act of purely fetching data is causing the video reload?
 
@Vap0r you lie
@KarelG fun to shoot with
 
2:38 PM
i.imgur.com/s1ew6t8.gifv I'm not sure what exactly they were trying to do, but damn.
 
@Loktar sure don't
 
what grenade launcher and what military rifle?
 
@rlemon hot ladies
++
 
I don't date witches
 
> So a $200 tax stamp applies for each round that contains more than 1/4 ounce of explosive in the projectile, and or more than ??? oz propellant.
@Vap0r til you can buy an m203
and 40mm he rounds
 
2:40 PM
I hear each grenade requires a background check
 
@Vap0r Mostly correct -- I fetch the data on an interval via redux
 
@Luggage correct
the ammo is the bitch
 
GUISE
 
YouTube people informed me there are a lot of places in the USA you can own a Flame Thrower
 
user2620028
@Luggage or beer and a tree stump you want gone
 
2:40 PM
which is cool. I've love a flame thrower
I'd totally burn my house down.. but it'd be fun
 
which ksp mod of the big ones would you recommend
I mean
 
@Loktar @Vap0r can you get a FN 5-7 there in USA ?
 
the colonization mods
 
that's a pistol, right? pretty sure i've seen 5-7s
 
@OliverSalzburg I just realised something's not right in my timeouts code. if(uv.user) will throw an error if there is no variable...
 
2:41 PM
right name is " FN Five-seveN "
 
@KarelG I promise you that Loktar knows more about guns than me, he just didn't know about the grenades and all that
 
how can I check if an object is empty?
 
eh I'm not like a super gun nut or anything
 
I only have heard of an FN FAL, and that was from a video game
 
2:42 PM
Object.keys(object).length === 0
@Thaenor
 
I just like exercising my 2nd amendment
 
if you have the money, you can buy actual machine guns made before 1986
 
that's one way
 
@Loktar I enjoy shooting. I know diddly-squat about guns though
 
user2620028
guns are fun mmkay
 
2:42 PM
but that's a LOT of money.
 
@rlemon much obliged
 
i have that at home... that cop killer weapon is not legal ... because it's a belgian product <_<
 
class VideoFeed extends Component {
  async componentDidMount() {
    await this.props.getFeed();
    this.interval = setInterval(this.props.refresh, REFRESH_INTERVAL);
  }

  componentWillUnmount() {
    this.clearInterval(this.interval);
  }

  render() {
    return (<div>{/** view logic here */}</div>)
  }
}
That's basically what it is doing
 
@corvid then I would sufficiently separate out the state so that the video is standalone and doesn't update when you set state
 
how is it more of a cop killer than any other gun?
 
2:42 PM
@Thaenor if( uv && uv.user ) then?
 
user2620028
@Luggage maybe it aims itself. seems like the most needed feature of a criminal.
 
@OliverSalzburg why not Object.keys(uv).length === 0
 
ohh for that?
no, check for the obj and property
 
@HatterisMad only at cops though
 
I answered an XY
 
2:43 PM
Guys, anyone knows why this fails compilation?
It works just fine at runtime
 
user2620028
whew, first time madara didn't link everyone to tsplayground
 
@MadaraUchiha Seems like that spread on function arguments issue that came up the other day
 
because fails compilations are fun
 
@OliverSalzburg Link?
 
user2620028
@madara i am now to the point in shippuden where you are the enemy. way to be the bad guy
 
@rlemon @OliverSalzburg this still throws a "uv is not defined" error, if the uv hasn't been created yet.
 
if( uv && uv.blah )
did you check for uv first like he suggested?
 
the function in the bin should've kept looping forever...
 
!!afk cig and some work. Be back around 1-2 EST
 
it's missing a counter for the times it tried to set the timeout. but it errors out in the uv beforehand.
 
2:46 PM
@MadaraUchiha It is my understanding that this should work in TS 2.4. But I'm not a TS user myself and only briefly looked at the ticket and the linked sibling tickets
 
@Thaenor re-read what was suggested to you
 
@rlemon what? where? I must've missed it in the chat. Sorry.
 
read up
 
"check for the object and the property"?
 
keep reading
 
2:49 PM
Object.keys(object).length === 0 ?
 
@OliverSalzburg Hmm, it actually gives off a different error under 2.4.1
> [ts] Expected 2 arguments, but got a minimum of 0.
 
function foo(...args: any[]);
function foo(path: any[], state: any) {
that makes the error go away..
 
@Luggage Yes, but I have no control over the actual foo in my code
It's a function from a library
 
you can still add definitions to it, usually
 
And the previous guy thought to be a smartass and call it like this
state.setIn(...loadingSuit('userPerf'));
 
2:53 PM
@Thaenor you were pinged with the solution, then I commented on how it was correct, then I even re-affirmed with another example
... c'mon man
 
also, you can just .apply() manually if you need to
I think it's because TS does not enfore length in arrays, not even in tuples, so it need the "spread signature" to be able to accept arrays being spread as args.
as far as TS is conrned, you are giving it an array that sould be length 0 (even though it's clearly not) to a function with exactly 2 args
(educated speculation)
 
@Luggage That is horrible XD
 
@MadaraUchiha Is it possible that the compiler has no understanding of the array being of fixed length? So it can't really guarantee the length of the resulting argument list
Dunno. Looks like a bug IMO
 
xgames is here in Minneapolis in 2 weeks. I want to go
 
I'm just going to use .apply for now
I'll endure throwing up in my mouth for a bit
 

« first day (2447 days earlier)      last day (2503 days later) »