« first day (1945 days earlier)      last day (3002 days later) » 

3:00 PM
if you go on the babel issue list and look for IE9 there is a lot of things that you may need polyfills for that babel doesn't define
 
@rlemon Yea... I did not realize that babel 6 did not support <=IE10 class extends...
blah.
 
@rlemon Pong
 
you don't wanna fuck around. I have scripts to ping you
 
@rlemon Don't tempt me with a good time.
 
@Trasiva come at me
 
3:03 PM
@rlemon come at me b
 
how long did it take you before you realized you can disable notifications
you have no power here!
 
I did it after you threatened me with your script.
C'mon lemon, how stupid do you think I am?
 
very
 
Ouch
 
lol
 
3:04 PM
You hurt my feeling, that was my last one.
 
@rlemon Already done.
 
has anyone here used this xregexp package to get named capture groups? I can't get it to work right
 
@SterlingArcher dammit I'm rocking out to rise against too hard
can't type properly
:O @BenFortune I just realized I can embed a node repl into this
how awesome would that be, hotkey to open a node repl in the chat
 
@rlemon Oh god yes.
Like tonicdev?
 
3:11 PM
:looks up tonicdev:
 
@rlemon It's fucking amazing. Very small market though
 
I was just going to use this :P
 
welcome to what we do in Lisp since forever
 
Didn't know it was a module
I'm stealing your idea.
@rlemon Reckon you can tie it in with Electron's dev console?
Because that'd be pretty amazing
 
I've lost my shit. I can't get it to boot properly.
 
3:18 PM
!!friday
 
sup folks
 
well yeah
what else would it be
 
3:22 PM
Any tricks to forcing a .js refresh on a specific file in browsers? ctrl-f5 with f12 tools is not working for a change I made in AdditionalProperties.js
an internal .js library
 
no clue
I've got webpack + browserify set up, so my changes reload automatically.
 
@BenFortune hehe
 
@JoJo use a version query string in the file name
 
@JoJo We handle it with versions.
 
myscript.js?v=21312.2121
 
3:23 PM
@BenFortune awesome!
I'll probably be stealing a lot of your code
 
@rlemon Turns out it was already there
 
maybe we can merge these back together one day
 
kk, ty, I am familiar with that technique for images etc. I will look into it
I will try incognito tab for now
 
Yay I just got cleared to use bluebird in a project!
 
I just defacto use bluebird now
but I'm not sure I use any features that are brought by bluebird (in all projects)
just the standard api
 
3:27 PM
it's just a sign of quality now
 
Promise.delay is nice, catching custom error types is nice.
don't think the native API has those
 
Firebase question
Everytime i post json to firebase
it creates an object of a random uuid and puts it inside it
is there a way to customize this behavior ?
 
My only problem with bluebird is that it always double the size of my front end JS files
 
Why not native Promises then?
 
@rlemon @FlorianMargaine rebecca.blackfriday
 
3:32 PM
@dievardump iirc there was lighter build
 
@Loktar :-/
 
Almost
 
even the "light" build is not really small
 
@dievardump use a cdn ? and offload it ;-)
 
3:34 PM
@BenFortune I wonder if it will ask me for two step auth every time I run it (google)
because "remember this pc" might not work :/
 
@rlemon It saves my session whenever I close it
IE it automatically logs me back into SO
 
I usually deliver the website and don't interact with it anymore, except if there is a bug because of my code. I can't really take the decision to use a cdn.
But it's more than ok, I usually use only a small part of what promises give, so I use a very light self made version
Always the same thing with SO, you come to get an answer, you log in to upvote, and you end up talking in the chat.
 
@dievardump publish it :D ?
mini-promises.js, quick-and-dandy-promises.js
 
@rlemon Does the dark theme CSS from your extension not work on it's own?
 
If one day I take the time to make the code a bit nicer...
 
3:39 PM
@dievardump in the meantime you can use es6-promise.js
 
@BenFortune should
 
I'll take a look at it, thx.
I'm totaly lost now
 
@rlemon See the image above :(
 
Array.from(document.documentElement.children).forEach(node=>node.remove())
@BenFortune one of my gulp steps on the build:
			.pipe(replace(/;/g, ' !important;')) // because adding this in manually would be lame.
;)
 
God damn it
 
3:42 PM
@rlemon Ugh…
 
Ctrl + H it is
 
it's a user style override, !important is required, and I never could remember to add it in on my own.
so build step it is
 
Hmm, that didn't work
 
well it for sure wouldn't work without the !important in there
 
"!important is required"? Depends on how you inject it, I suppose.
 
3:44 PM
It's injected into the webview, I don't think I can get the context of a webview
 
@Chiru no, I would have to override every single specificity on the page with more specific selectors
in user style ovverides, !important is perfectly valid
@BenFortune apply it with js?
 
is there any way in angularjs that I can use to find out - why my controller is redirecting me to another route (which doesn't exists) - and I don't know why where and how it's redirecting me
 
@rlemon Does element.style override CSS specificity?
 
> You could just create a while funtion and loop x times.
god dammit main...
y u so dumb
 
@rlemon How do you mean?
 
3:46 PM
@Chiru it has its own specificity, and the chat uses inline styles all over the place
 
Add it to the head?
 
seriously, this isn't my first picnic. !important is the most sensible approach here
@BenFortune yup
 
Just because you are loud doesn't means you are the best
 
or preload="" on the webview?
 
I trust bob's experience over some random new guy
 
3:47 PM
@rlemon Not sure how that'll work. At the moment I'm using webview.insertCSS(code);
 
@BenFortune hrm,. I'll look into it
 
@rlemon what do you think about extensions based on platform in gulp / browserify pipeline ?
for iOS
foo.ios.js
 
no comment @Abhishrek
 
@rlemon It'd mean referencing the CSS as a local file
 
you think its cool ? (Passes code review?)
import foo from 'foo';
 
crl
3:47 PM
@MadaraUchiha what do you think of github.com/mquan/cortex?
 
Oh my god, this thread is just a shit show of terrible answers stackoverflow.com/questions/35366555/…
 
@BenFortune yea, that should be fine
 
automatically gets mapped to foo.ios ^_^
 
shouldn't it? if not you can do the ugly fs read -> dump to style tag
 
@rlemon Didn't want it like that since it's a plugin.
 
3:49 PM
@BenFortune preload the plugin css loader
;)
I'm not there yet, so I really have no clue what you are doing
 
There's an open lab! Somewhere at quite the distance! They're open for the next hour and a half!
runs
 
RUN ZIRAK RUN!
 
@rlemon Basically everything is here
 
@BenFortune use functions ffs
god dammit your ladder code hurts my eyes
:P
 
It's a prototype scrub
 
3:50 PM
lol
 
Good old await-less async code. Gives me nightmares.
 
It'll all be done in modules when I'm satisfied it works
 
yea I work the same way
just giving you a hard time
 
Much easier to change code when it's all in your face :p
 
!!afk vape
 
3:52 PM
It's all a matter of getting used to it; I tend to fail to reason about callback-hellish code at some specific level.
Where "level" is probably an indentation level.
(That file contains 9 (!) levels of indentation. In PHP, I think that'd be a syntax error.)
(But don't even get me started about PHP.)
 
PHP is the best HP
 
PHP is the best HPV
 
PHP is the best STD
 
STD is the best PHP
 
LOL
 
3:59 PM
I've spent 2 hours last night to build a dependency graph for data that I later realized will, in 99% of cases, contain cycles.
That's 2 hours I'm never getting back.
 
cyclical data structures is bae
 
@Chiru that's manageable
you detect a cycle and replace the leaf with "cycles to foo"
 
@FlorianMargaine The whole idea of it really was to detect cycles as if they were mistakes in the data. So it was meant as an aid to assist the user.
But with the data pretty much always containing cycles, that's pretty useless.
 
@rlemon Got my lesson for the day.
 
@Chiru indeed :)
 
4:12 PM
@Zirak is there a way to override the default console ?
// as in use it like a custom repl
 
@Abhishrek isn't it already an REPL?
what do you want to do?
 
For now just want a thing to execute commands to control my game server
 
just make a few global objects?
 
Does anyone know what happened to google.com/custom It used to be an html only super light web page if I recall correctly.
 
@FlorianMargaine yeah doing that
 
4:17 PM
 
hrm, @BenFortune how the fek you inject js?
	webview.executeJavaScript('function foo() { console.log("hello foo"); } window.foo = foo;')
nothing is exposed?
 
@rlemon That should be it
Like I said earlier though, don't think you can get the javascript context from the webview
 
@Trasiva lol
 
seems to be the closest
 
@rlemon IPC maybe?
 
4:22 PM
I'm going to read over this. I forked it and ran it, seems the exposer is there albeit ugly af
        webview.executeJavaScript('__myYoutubeTools.playVideo()')
ugh
 
Is it just me, or is Javascript's implementation of switch really inconsistent with the rest of the language?
 
@corvid switch is pretty much the same in most languages
 
I never noticed it as being any different
 
I never noticed it being very useful :P
 
4:27 PM
I wonder why i'm able to see it as being very useful in coldfusion, but not useful in javascript.
 
like, I'm not saying there is 0 cases for it. but in 19/20 cases I've seen it if/elseif would be more readable
 
@Cereal Up for some teaching lessons on SC II tonight?
 
window.gx = (...args) => {
  this.__runCmd(...args);
}
 
if there are more than 3 or 4 else conditions I generally go for a switch
 
@Loktar why?
 
4:29 PM
  __runCmd(cmd, ...params){
      this[cmd](...params);
  }
 
@rlemon because it looks nicer and is easier to add more conditions
 
I like them for if you're looking at the state of a single variable
 
@Loktar eh, I disagree. but at least you used 'style' as your argument :P
 
switch statements are faster as well
:p
 
the only time I'd use switch is if I really wanted to show that I'm using a fall through
 
4:29 PM
@Loktar That's about my magical number, especially on our embedded system.
 
^
very very fast in theory
 
@Loktar that is 100% number of element dependant (and implementation)
it's been perfed out the ass
 
why not pick the better one regardless then?
 
because it isn't always better
that is what I'm saying
if you wanna pick about speed.
 
I'm just listing reasons
 
4:31 PM
1 min ago, by rlemon
the only time I'd use switch is if I really wanted to show that I'm using a fall through
 
they are great for enumerable types too imo
 
I don't really find them more readable than if/elseif
 
In js, usually if it comes to needing a bunch of if else statements i move it to a function, or do it with an array index lookup, but the placers where i use it in coldfusion that just doesn't make sense.

For example, I have a variable with a string, and based on that string, i need to either include a template, do some tests on the value of a different string and return a 404 or include a template, or return a 404.

Setting up an array and indexof etc to do that just seems way more complicated in that situation, for very little gain
 
@KevinB what if you were spitting out a different custom error for each 400 or 500 code for example
that would look so much nicer in a switch imo
 
yes, that's why i'm using a switch currently
 
4:33 PM
ugh, @BenFortune the Electron docs are sometimes very stupid
<webview>.pasteAndMatchStyle()

Executes editing command pasteAndMatchStyle in page.
no link to what pasteAndMatchStyle actually is
 
Yeah, it's pretty shit.
 
all over the place
 
Quick google search shows it's OSX specific though
 
I can figure out some on my own, but the rest I'm having to dig into the code
@BenFortune ohh yea I was just using that as an example
 
Ah :p
 
4:35 PM
XD
 
@rlemon Er..wow, haha.
 
> Vote Germie Sanders #FeelTheGerm
lol, top comment(s) on reddit (paraphrased)
 
I'm debating one upping lemon and going for a 5 lb burrito.
 
crl
!!handle table selection with selectionchange event or with mouseenter?
 
@crl handle table selection with selectionchange event
 
> The real President of the United States is a guy named Moises Goldstein, a former CPA from Scottsdale, Arizona.
> Goldstein is averse to publicity and suffers from an aching sacroiliac. Obama is merely his butler. Goldstein lets Obama do all the talking so that he can have some peace and quiet and enjoy his time in the Whitehouse.
 
a jewish president, what will they think of next
 
@KendallFrey yes was just about to post this
:P
@Trasiva Sterling posted that a while ago
we debated, Export is Canadian "fam" is not
but returning the bike is Canadian
WHERE DID THIS HAPPEN?!
 
@rlemon Well, that's because he doesn't actually do work while at work. He just surfs imgur, reddit, and makes a video game.
 
4:44 PM
plot twist, OP wrote the note and put it on imgur for points
 
@rlemon Oshawa
 
@Loktar I try not to assume that, otherwise reddit would be no fun
 
I think I've finally got enough supplies to last, lol.
 
!!afk lunch
 
I have enough beard to last
until the 19th, when I chop it off
 
4:57 PM
@ndugger What're you doing that for?
 
@Trasiva I'm not available this weekend, you'd have to catch me during the week
 
@Cereal Alright man, no biggy.
 
@ndugger I was going to ask do you use beard cream, or beard oil, or anything at all for that matter
 
I do use beard oil, and occasionally a beard balm for the 'stache
 
Fun fact: @SterlingArcher used beard balm as a post shave because he's a big fat dummy head.
 
4:59 PM
@Trasiva It's just time... I'll never go bare face, but it's time to clean myself up a bit; gonna have it like a third of an inch in length, or so
 
@ndugger Ah, okay. Gotcha.
 
but everyone said the 2nd one stunk horribly
so then I bought the first one
 

« first day (1945 days earlier)      last day (3002 days later) »