« first day (2285 days earlier)      last day (2888 days later) » 

14:00
ofc not, you have to ensure that the statement is correct.
but how that's evaluated... idk really :-)
@AaronHall your regular map/filter/reduce already have an index argument.
It's like a Python for in, but like Python, you often opt for different solutions (comprehensions in python and Array.prototype methods like map/filter/reduce/some/every in JavaScript)
14:15
guys , does any one have an idea - is there a better way to escape a a long file content if II need to attach it to the page
say I want to do smth like this ``$('body').append('<script>var getPDFWorkerASString = "' + escape(data).toString() + '"</script>');
when this data is ~0.7 Mb, the escaping addis it to 1 Mb or more - which is not nice
The data is probably compressed in transit, does it really make a difference?
this is a PDF.js worker file - github.com/mozilla/pdf.js/tree/master/src
I am not sure, will check
I'm fairly sure you can't invoke workers from inline scripts
They have to be external scripts
14:18
that;'s the point
And why aren't you simply loading it with a src= attribute?
the only way to do it is like this and then pass like this
var blob = new Blob([unescape(window.getPDFWorkerASString)]);
PDFJS.workerSrc = window.URL.createObjectURL(blob);
why we do all that - want to have pdf.js viewer as a one-file component with all css/js inlined
so that we could use it iframe in our main app , say like this <iframe src="viewer.html?file=blabla.pdf" />
sorry ?
I'm just sharing interesting information
14:21
hmmm, reading link, thx
ohh, it probably won't help your issue.
it was more for @MadaraUchiha
yes, but it was kinda close by topic hehe ))
@SterlingArcher murhihn
So say I have in my checkbox: onchange="doalert(this, 'Python')"
function doalert(checkboxElem, lang) {
  for h4_element of document.getElementsByTagName('h4') {
    if h4_element.textContent.includes(lang) {
      parent = getparentsomehow(element);
      if (checkboxElem.checked) {
        parent.style.display = "inline";
      } else {
        parent.style.display = "none";};};};};
14:24
;};};};};
you make me sad
is that bad? :)
@rlemon The mark of a pythoner
It's better than Lisp, though
@DenysSéguret Not really
14:25
but this isn't Python, so no excuses. 😃 write better js
well I didn't want to take up too much screen real estate...
When Russians write LISP they're always laughing
@KendallFrey btw, not that you were planning on it or anything, but don't go outside today
freezing rain last night
and raining now
[...document.getElementsByTagName('h4')].forEach(h4_element => {
for( const element of document.querySelectorAll('h4') ) {

}
14:26
I got in a quick game of outdoor hockey yesterday before the warm weather starts
You left the attic?!
@KendallFrey I basically was playing hockey trying to get the recycling bins out today
stepped on the driveway and slid all the way to the road
getting back to the house was a mission
Our driveway has been slick ice for the past half week or so
14:28
You know what else has been slick for the past half week or so?
Hint: it's not my mom
I try to keep mine relatively clear of snow and ice. I'm the crazy guy out there chipping away the ice in the winter
@SterlingArcher Let's see... I played hockey on Friday. And Saturday. And Sunday. And Monday.
All of them not in any attic
Virtual Hockey 2017: Rift Edition doesn't count
Although... that does sound fun
I was #3 in the global leaderboard for hockey in VR Sports Challenge at one point
lmao
Meredith.
14:30
thoughts on Google's JS style guide? google.github.io/styleguide/jsguide.html
@rlemon last night was chest/tris/shoulders. New p90x video.. I had to do 1 arm pushups. I coudn't even get halfway down girl style. Those are freaking hard
@AaronHall It's OK
@AaronHall I stopped reading where indentation is done with spaces
> Tab characters are not used for indentation.
yeah no thanks
this specific part about indentation doesn't matter, do as you want
14:31
:D I like spaces. :)
The rest is still about OK
@AaronHall We know, you're a pythonist
@AaronHall I do too, as token separators
2 spaces as "tabs" in HTML should be federally banned
2
@DenysSéguret lmao "This style guide is good as long as you ignore the parts that don't matter"
Absolutely hate reading a big html file with spaces
14:33
@SterlingArcher I can do like 4 on my good arm. My left wrist is starting to feel it Mr crabs
@KendallFrey Well, most of it is a useful guideline for somebody starting in JS
Mobile. Suck it
I don't know any better one on the internet (at least one I could give to a new JS coder)
14:33
Hey,native speakers. Do u understand when I say "My parents will grab me to talk about the girlfriend thing"? Especially the word "grab" in this sentence. Do you feel comfortable with it being used that way?
@ZhengquanBai Nothing about that sentence makes me comfortable
I'm a native speaker. A native French speaker. I understand it so it's probably wrong
I understand it (I think) but it does seem slightly strange wording
Also, that weird comma...
With the weight training I'm up to 190 lbs. Push ups kill my dead wrist now.
14:34
@ZhengquanBai sure, seems fine. When I say "lets grab some food" or "let me grab you for a minute" it's not literal. It means "we need to talk" basically
Gonna need to go back to bracing it
@rlemon I need to use my MMA gloves for pushups or my wrists hurt after about 30-40 pushups
@SterlingArcher "let me grab you for a minute" and "we need to talk" do not elicit similar emotional responses from me
With the gloves I can do more, or I can go to knuckles
Actually I learned it from the Vampire Diaries.
14:35
@KendallFrey grab 'em by the syntactic sugar
I'm gonna dig out The Perfect Push-up a d see if it helps
To "grab someone" for a discussion is a colloquialism that I grew up with.
ok, gotta run. ciao!
Oct 20 '16 at 16:07, by ssube
when you're a developer, you can do anything, you can grab em by the prototype
@AaronHall bye bye
Thank you all the great minds.
user2620028
@KendallFrey might be regional because it is a valid phrase where i live
14:40
Which? Both of them are for me too.
They mean entirely different conversations though
aye-o can I axe you a qeston?
user2620028
@KendallFrey i meant to say that they both can mean "can i speak to you"
looks like a lot of fun
Red Bull does not give you brakes
I can't wait to go snowboarding. T-minus 9 days
Bonnie。

Hey, I, um, I tried to grab you after class but you'd already taken off.
sounds like an assault
s/grab/catch/
s/grab/speak with you/
user2620028
written as spoken is not always a good thing
14:44
gd
The first season, 19 episode in The Vampire Diaries.
english is weird. there is a buttload of ways to say most things.
assload
user2620028
yeah our language sucks
nahh, it's very expressive - just weird
14:45
yeah your language sucks
user2620028
i hate that i have to learn new slang every year for expressions i already know
though through thorough thought thou can be expressive af
when ever I meet a grammar Nazi, I like to console them and pat them on the shoulder saying, "there their they're"
Who even uses thou
removed because I keep getting flagged for calling people fucknut
14:48
Did you call me a fucknut?
@SterlingArcher through tough thorough thought
deez nuts
@SterlingArcher so call them fornicationlegume
intercoursealmond
@rlemon So, I have two legumes in my pants?
I hope they're fresh for my beloved
14:49
@SterlingArcher snu snu cashew
I'm gonna run for moderator next year in hopes somebody brings this up. "You went through a period for a while where you kept calling people a quote "fucknut". How do you plan on moderating with this mannerism?"
> it's better than the time sneezed under my desk and gave myself a concussion
poundtown macadamia
Dec 28 '15 at 13:53, by Sterling Archer
Concussion was from wednesday when I sneezed under my desk and hit my head really hard
14:52
I remember
we all remember
eh me too
oh i member
well, maybe not you
Pepperidge Farm remembers
your slidepoop adventure is more famous
user2620028
14:52
@ZhengquanBai yeah it works but as some other people have pointed out, it may not be universally understood by english speakers
All right. I got it.
@KarelG if I could go back in time and shit on a slide, I think at this point I would be obligated to do so
user2620028
@rlemon why does it have to be in the past?
because the meme is I was 13
user2620028
we can update it?
14:54
I suppose I could just do it in a mirror when I'm 31
it works that way right?
user2620028
thats good thinking!
Oct 6 '14 at 20:21, by Sterling Archer
Pants gave me a concussion once
@rlemon Maybe when you're E1
my list of concussions: I hit myself in the head with the blunt side of a hatchet. Fell off my bike. got kicked in the head during a hockey fight.
the hockey one was the worst. I was on the ground after being cross-checked in the head, then another kid booted me
14:56
For me... ice block to the head, locker boxing in college, fell of my bunk bed in college, pants, and a sneeze
I had to get stitches once
All the problems with my head aren't physical :(
I don't get injured much
I am a clumsy fuck.
you have to go out to get injured
14:57
I can't go more than 2mo without hurting myself.
Wait, and a basketball pole, and a 2x4,
I just got lucky and didn't suffer too many concussions
@Mosho not true.. there are WoW-related injuries, I'm sure.
7 concussions for me. Worst one was the boxing incident. I didn't know who I was for about 7 minutes
@Luggage there are wow related murders
14:58
the best 7 minutes of his life.
@SterlingArcher what about busting that blood vessel in your eye
ohh the hockey one I had to be taken to the hospital. I didn't know who I was or where I was or who other people were, but I knew I had to leave the hockey game.. and that was upsetting.
user2620028
my concussion list is fairly small: football, miata flip, racecar flip
Oct 15 '15 at 17:03, by Sterling Archer
No lie, I crapped so hard one day (sorry tmi) I burst a blood vessel in my eye. Looked like one of my eyes was straight out of 28 days later
Did you later stab the bastard that kicked you in the head while you were down?
14:59
nahh, but he was banned from Kitchener Minor Hockey
Not a concussion, just a rough poo
@rlemon understandably
Don't push that hard, man. That's how Elvis died.
@SterlingArcher 80-grit?
the kid who cross-checked me was given a 5 minute penalty. it wasn't a cheap hit, I hit him against the boards and he lifted his stick. could have been an accident
@KendallFrey I puckered thinking about that
15:01
My body is just.. wrecked from life. 7 concussions, 4 broken bones, 3 torn ligaments, 1 torn artery, metal in my knee, pins in my elbow, and tons of scar tissue
user2620028
@rlemon when i wrecked the racecar they were trying to convince me to go to the hospital in the ambulance and so they were asking me my name and birthday and stuff like that. i couldn't remember my birthday so i gave them my mothers birthday until i got to the year and i knew that i couldn't tell them 1960~ date so i said 1990 and they accepted a completely random date and just kinda glared at me
It's a miracle I can still snowboard tbh
Yoga ftw
I've broken way too many bones to not have them all from one or two accidents
we were extremely stupid kids.
user2620028
i have only ever broken my fingers, nose, hands, and ligaments
@ndugger more stuff for your twitter account i.imgur.com/Dm4pMV2.png
15:03
This is the entry/exit wound where a rock blew through my knee and tore an artery
user2620028
a rock?! how the hell did that happen
s/through//
idk, was skateboarding, speed wobbles, landed awkwardly. Destroyed my kneecap, 2 ligaments, and there was a nice hole
surprisingly the only injury that has had a lasting effect was when I fucked my wrist. I should count my lucky stars
Hospital though I had been shot
15:05
no torn/broken ligaments ?
@SterlingArcher Plot twist. You have been shot.
@KendallFrey you watching the c# room?
:grabs popcorn:
not really
just jdoe being jdoe
he's about to explain the border-radius NSA exploit
I had a class 3 hemmorage, which the doctors say is about 3-4 pints of blood
basically I almost bled to death :D
15:07
damn, so close
cc @Loktar lol member
@SterlingArcher fast-forward 13 years later, the only real side effect is the inability to hold food
2
doctors everywhere are baffled
@SterlingArcher someone die?
border-radius nsa exploit ?
including but not limited to sparkly cupcakes
15:08
ohh haha
lol seriously though, doctors said I'd never snowboard again after my knee injury. I'm better than ever
I'm not amazing, but I can do like.. 360s and maybe 10ft kickers and rails
I was told I've never weight train after my wrist. doctors are used to lazy sobs who don't wanna do hard work to get better
@SterlingArcher my doctor said 8-9 months when I splintered my legbone, I was snowboarding after 3. Doctors don't know shit.
The body is magic
user2620028
see this is why dirtbikes are awesome, you can go do huge jumps and not fuck up your knees
15:11
I'd rather fuck up my knees than my ass
I'd rather fuck up your ass
You know it, fam
not trying to stop Jordan from being Jordan, but can we not star the flag-bait?
I want him to stick around
15:13
Sterling is love, Sterling is life
@rlemon if we have to worry about that maybe this isn't the chat for us.
user2620028
@Loktar agreed
@Loktar pinning "fuck up your ass" for any new noob to flag ten hours from now has never been wise.
I'm not worried about being banned :P
I think you know how I feel about certain rules, but at the same time I don't want Sterling to get flagged
he's a constant source of entertainment
15:15
Banned means my work productivity goes up :D
> new noob
yessir
kk, wfh time over, time to head into the office
!!afk driving
I hope the jdoe guy is a troll
@littlepootis he is
I question if he's just trying to be funny or if he believes his own crap
15:18
C# room drama ?
not really drama
conspiracy trollist
i don't hang there
I'm glad we don't have any drama in this room.
2 chats would distract me a lot :P
so i choosed for js
in C#, 18 secs ago, by J. Doe
When im building my apps without JS, SVG, cloudflare my customers telling me "wooow, how it can be so fast even on my old PC?" and im answering - Its power of freedom and privacy
I'm not trying to drag people in... but this was golden 😃
pls no drama. tnxs
15:20
> Its power of freedom and privacy
what does that even mean
lol no clue man
but I'm laughing
after they answer customers are like "Maybe it's time we find a new vendor, this dude is weird"
jdoe is what happens when Richard Stallman makes a chat bot
I'm pretty sure he's a kid. like 14-15
maybe he's just drank a bit of the stallman juice early on
just googled stallman
lol
15:22
ahh well, that was a fun break for the morning.
@Loktar Did you see the live demos of the switch?
@Trasiva yea
I think it's lame as fuck
I'm laughing at all the people pre-ordering it.
yea
How did people not learn from 2016's pile of garbage that come out, not to preorder.
15:25
Zelda sounds cool but I have my wiiu already so meh (which it comes out on)
I mean I will get the switch eventually
I own every nintendo system, but not happy about it! lol
@Loktar lol there we go
> god dammit it looks stupid. I'm mostly angry because I know I won't let myself NOT own a nintendo system.. but fuck man..
2
When I debug with webstorm, it sometimes opens these files with names like vm:1306 Are these generated scripts?
27
Q: Chrome Console: VM

edi9999When executing a script directly in the console in Chrome, I saw this: Does anyone know what's the meaning of VM117:2 What does VM stand for ?

@rlemon lol
yeah I'll get it after the price drop
I mean this one isn't a 100% certainty though
you have to pay for online now
!!s/after.*/in the return bin/
15:29
@rlemon yeah I'll get it in the return bin (source)
that annoys the heck out of me honestly
they have no right to do payed online until they can get a usable online experience
imo.
wiiU is a fucking mess
@rlemon yea
the online experience is absolutely terrible
Honestly, when Sony went to the plus model in order to have access to online multiplayer, I decided I wasn't buying online games anymore.
I loved splatoon on the wiiu, but that's about it onestly
15:31
thanks rlemon.
@Trasiva yeah I already had/have plus
my issue is paying for more now lol
No kidding, it all adds up quick.
Frankly, the game studios aren't putting out a whole lot of games that appeal to me either.
I've bought two games in the last four years.
@Loktar mario kart, but thats because mario kart.
it wasn't the best, but it was mario kart.
@rlemon I'm over MK :(
15:33
and Mario games
I can only play the same game so many times honestly
Mario Kart is the last one I still kinda enjoy. after the mario where you are all 3d and collecting stars I stopped
that game was pretty painful if you ask me
Mario Party was also kinda fun
Everyone says Monopoly is how you lose friends. Those people have clearly not played Mario Party.
in C#, 12 secs ago, by J. Doe
Learn about spyng technology, listen R. Stallman (MIT) about freedom of software, read about pure anarchy
god dammit @littlepootis you called it
Are we sure it's not a Waxi sock?
15:35
yes
jdoe is not new
MK is great. Hope to get it on the switch. Payed online would be a deal breaker though.
Seen it a few times but man cc @SterlingArcher
cracks me up everytime
I love that one
@jake it is payed online
$10 a month
MK is confirmed though
15:37
As well as a Mario in New York game.
a weapon ?
For switch in general or MK?
switch
@KarelG Mario Kart Karel.
> Paid service launching fall 2017, Free trial period starts in March
15:39
Doesn't it have free WAN for multi-player though?
i love that game. It some mario kart games were dull
Now I can't wait to buy a cheap wiiU when all the switches come out.
my main complaint about the wiiU (which will exist with the switch) is their inability to identify as a single person handheld vs a family console.
you've just created so many sibling arguments. "no I get the good controller"
Nintendo just needs to stop with the gimmicky shit
Nintendo VR
15:48
Wii for some sports games was actually quite fun and innovative
they should have just made a more powerful Wii classic
@SterlingArcher they did that in the 90s
Wii bowling was the shit
for half an hour, yeah
what is the best practice for redirecting a user if an asset is not found in react?
async componentDidMount() {
  const { router: { redirect }, retrieve } = this.props;
  try {
    await retrieve();
  } catch (e) {
    if (e.response.status === 404) {
      redirect('/some-not-found-page');
    }
  }
}
Not sure if that's a good way to do it
@Loktar yeah but nows the time do do mario party VR, or mario kart VR, or SSB VR, or freaking Super Mario 64 VR :O
that would be sweet
15:53
until you accidentally throw a lamp into your mom trying to hit your little sister with a green shell.
yeah a VR super mario 64 would be great
into? my god
@KendallFrey well no one can see her
so she was just doing her own thing
while everyone was VR'in
she needed to lighten up anyways
15:54
LOL
@Loktar Wait did this actually happen?
@Loktar I guess you can just hope the lamp wasn't turned on
@rlemon it didn't start that way but ended that way
baby you light up my world like nobody else
is any of you a combustion engine freak perchance
I found out about uneven camshaft timings today and it's just blowing my mind
I found out about wobble blades for my tablesaw last night and felt the same way
I hope your mind enjoys that
this is the thing
user2620028
@BartekBanachewicz you mean like variable valve timing?
15:58
@HatterisMad no; the cams are fixed, but they are different for each cylinder
it's a two-cylinder OHC with a 270 deg crankshaft
and one throttle body for a shared intake
pft 270 degrees
it looks really simple basing on the specs alone, but a lot of thought was put into it

« first day (2285 days earlier)      last day (2888 days later) »