« first day (1916 days earlier)      last day (3050 days later) » 

9:00 PM
@Lemony-Andrew depends. let me look at the code :D
 
var config =
{

};
config.authCookieName = 'authcookie'
console.log(config.authCookieName);
That works
 
@rlemon haha I think I made the code back in 2014 or earlier 2015. Probably horrible, but it's still broke at the moment. Something's up with NameCheaps hosting.
 
dude
close your tags
header is unclosed
 
9:01 PM
also
inline styles... yuck
 
@SterlingArcher var auth.cookie?
 
          <div class="Aligner-item">
              <header>
you never close the <header> tag
 
@phenomnomnominal Teoman posted "var config.authCookieName = "authCookie"; "
Different var names, same concept
 
@rlemon that one is closed though, I'm looking at it right now.
 
9:02 PM
das hilarious
 
OK, my mistake, I was hitting with no cookie, it works now (:
 
orly
dev tools corrects broken HTML for you
raw source shows mistakes
:P
you have been demoted to lime
 
@rlemon yeah I figured that, I was looking at the console. I know it does that. Again, I haven't touched this code since late 2014 ish
I was about to type ctrl+u to check the actual source when you said it though.
 
@Limey-Andrew too late
demotion has been approved
 
crl
why events are not working on body?jsfiddle.net/crl/8ht4Ljw9/1
 
9:05 PM
@crl body doesn't expand to 100% html
 
That's not fair at all
 
html,body { height: 100%; margin: 0; padding: 0; }
 
crl
wait wrong example
yea the height does it
but weird that it gets colored with css, probly jsfiddle does it
 
same reason, the body isn't actually the whole area.
 
it is misleading because the background inherits backwards to <HTML> iirc
 
9:07 PM
but yeah is weird that it colored it all anyway.
 
@crl nah that's just how it works for some reason
 
that has always been the case afaik tho
I ran into this years ago
 
I am lemony not limey ... I was a lime in the past sure.
 
crl
ok thanks guys
 
@Lemony-Andrew I am actually a lemon tho :D
 
9:08 PM
DOMException: BLocked a frame with origin 'https:/fiddle.jshel.net from accessing a cross-origin frame
 
rlemon = Rob Lemon
 
crl
from the dynasty of Lemon :)
 
is there a way to add variables to an addEventListener callback but also have a way to run removeEventListener?
 
9:08 PM
@rlemon Best name I've ever seen haha
 
@Trasiva window.top is a browser variable
don't use top
my bad
oohhh
 
crl
@joshhunt I wanted that too, attaching props to events is bad
 
you didn't rename that bit
but yea, window.top exists and you didn't reassign it
 
crl
good way is to dispatch another events
 
9:09 PM
yes, store the function so that you can use it later to remove the event handler.
 
Yea, I fucked up and didn't fix the array names either.
 
that is really damn cool.
 
@Loktar dude, did you see 7 rigs 1 tower!?
 
yea
 
9:10 PM
remember that .bind returns a new function.
 
crl
@KevinB mostly when you're doing removeEvent.. it means you could rather use event delegation from higher in the dom
 
@crl or you just want a one time click
 
TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
 
crl
yea also
 
It's a fuckin' array.
 
9:12 PM
div.addEventListener('click', listener.bind(myVar), false);
div.removeEventListener('click', listener, false);
^ would that work?
 
^ would you try?
 
@rlemon wish they would have showed 7 people on it
although glad he used r9 nanos
 
crl
don't think so, .bind returns a new function
 
@rlemon I kinda find that Linus guy annoying
 
because I <3 amd, and the nanos are kickass
 
9:13 PM
var fn = listener.bind(null, myVar);
div.addEventListener(evt, fn);
div.removeEventListener(evt, fn); // like Kevin said
 
crl
that yes
 
ah right, thanks
 
actually...
replace null with div
you wanna keep your context proper
var fn = listener.bind(div, myVar); // div is `this` arg, and myVar will be the first argument passed before the event
 
jsfiddle.net/Trasiva/023ooLrb/12 So the sorting is functioning...but it's not appending my filtered variable to the top?
 
ugh, I fucking hate this enclosure. third time I've missed the sd slot and dropped the chip into the enclosure
 
9:16 PM
Quick question, element.attributes[#index] returns the attribute node. Is there a quick way to just to do element.getAttributeNode("attribue name")?
 
crl
element.name
 
@crl I've found that only works partly
 
crl
and why
 
@Trasiva go home
you need a nap dude
 
crl
use camelcase when there's an hyphen
or take care of element.className
 
9:18 PM
@rlemon I can't go home, I have another three hours of work. Am I missing something that obvious?
 
no but you need a nap
 
What makes you say that?
 
@crl If someone uses 'element.setAttribute' it's not appended to the direct element unlike class and style.
 
you shouldn't need to concat if the filtered ones aren't in the sorted array
 
crl
also style, data are special
 
9:18 PM
they'll naturally end up at the top after appending all the sorted ones in order to the end
but, removing that results in the filtered still being sorted, so i suspect they're still in the sorted array.
 
@KevinB they are
 
@crl
$0.setAttribute("random-attr", "val")
console.log( $0["random-attr"]) ; /// -> undefined
 
didn't even look at that
@Trasiva go home
you need a nap :D
 
@rlemon I wont' argue with you, I have maybe two hours of sleep since Saturday under my belt.
But I can't, I still have an hourly obligation to get through, haha.
 
gotta get sleep to prep for d3 season friday
 
9:22 PM
Ugh, dude, I know.
I'm trying Wiz this seaon.
Barb's easy sauce, DH is just loldamage, and WD is just a bitch to gear in Seasons.
 
I'm writing a data-binding library between dom and js-objects and I'm trying to think about how I want the imperative writing to work. The declarative way was easy, but thinking of an intuitive way to directly bind attributes and such is trickier.
 
crl
oh..sorry youjust can't put random attr like tat, I don't think they get accepted
 
doesnt work in chrome $0.randomAttr
 
@KevinB Works, I just wish I had the mental capacity to actually follow through it. I think I understand, but what are the => for?
 
@KevinB friday?
gf said it was released yesterday or the day before
 
crl
9:26 PM
use data- for those things, or a virtual dom, or Web Components maybe
 
the patch was yesterday, but the new season doesn't start till some time tmorrow afternoon
 
@rlemon The 2.4 patch dropped Tuesday.
Seasons starts at...noon tomorrow?
 
er, yeah tuesday, i didn't play till yesterday
 
I haven't played in a couple years
should get back into it maybe
gf is closing in on paragon 900 iirc
 
no idea, usually CST it's like 7:pm or something odd
 
9:27 PM
@crl I'll just stick with my own way. I was just hoping there was a more direct native way. Overall, it's not hard to actually get the attribute by name, it just requires a loop with name checking.
 
there will be a countdown on diablofans
 
@Lemony-Andrew use .dataset
 
We should get a group going.
Farm grifts
@rlemon On NS my barb's almost 700.
 
@rlemon I can't use data-set.
 
@Lemony-Andrew why not?
and it isn't abbreviated btw
 
9:28 PM
@Trasiva i didn't use any =>
 
hyphenated
 
@Trasiva paragon is account bound no
@Luggage also that
 
@rlemon For each type of gameplay, yea.
 
swoops back into oblivion
 
I just purged a bunch of my chars.
Because they changed it so that you can basically reset your existing chars for Seasons instead of generating new ones.
 
9:29 PM
I can't play on the PS4 any longer because some asshat with a hacked item (ps D3 is lame that way) leveled me to paragon 1100 in like 3 seconds
I can't undo it unless I contact customer support
 
@rlemon I know, force of habit. But I can't use data-sets because I'm not enforcing people to use dataset so if they use setAttribute it won't show up. If someone's using Polymer then I'm almost certain they use setAttribute
 
@rlemon There's a patch fix coming for that now.
 
I put a hyphen in dataset again
 
how well does d3 pc work with a controller
 
It doesn't
Keyboard only because of how the PC version is setup.
 
9:31 PM
@Lemony-Andrew so?
foo.dataset.foo = 'hello world';
console.log( foo.getAttribute('data-foo') ); // works

foo.setAttribute('data-foo', 'I work as well');
console.log( foo.dataset.foo ); // see
dataset maps both ways
@KevinB @Trasiva protip: d3 + controller doesn't even work so well on PS4
you just kinda deal with it
 
@rlemon that was what I was looking for thanks, I actually asked if there was a getAttribute function
 
@rlemon That's what I heard.
 
@Lemony-Andrew but.. dataset..
 
poe works well with a controller, until you need to loot items or do any inventory management unfortunately
 
I mean, the interface is there, and that is the intended purpose for it.. why not use it
 
9:35 PM
@rlemon what do you mean? I think you started saying use datasets and I'm not sure why you said that. I was just looking for a function that got the attributes
But getAttribute doesn't return the node so that doesn't work either.
 
> random-attr
I assumed you are looking at custom attributes only
if that is the case: use datasets for custom attributes
 
No I was looking at all attributes
 
if that is not the case, nvm.
what is your use case? why do you need to do this
maybe there is another way around it
 
crl
read attributes nodes, but that's weird yes, oh nvm tey are not iterable
 
I'm making a data-binding library. Say, someone has <custom-component custom-components-attribute>

I can easily bind them declaratively but I'm trying to find a more direct way for *imperative*binding. Instead of looping and checking names.
@crl el.attributes is iterable
 
crl
9:38 PM
oh, fine then
 
@rlemon @KevinB My btag is Trasiva #1163 if you guys decide you want to team up for some shit on D3.
 
so I spent the better half of an entire day installing opencv 3.1 on my rpi2, only to find out that opencv 2.7 is the only one that works on that stupid node binding
I'm not pleased.
 
@rlemon I wouldn't be either
 
my own fault for not reading the 500 closed issues on the repo before I started
 
Shit happens man
 
9:42 PM
and when it doesn't you see a doctor
 
All I know is my boss is getting annoyed this project is on day three, and I'm starting to get a little angry at myself about it.
 
fuck it
 
I can't find how to disable right-click-to-paste in conemu. driving me crazy
 
Looking for suggestions - what would be good problem statements to have people write code in Angular.js workshop?
 
Problem: You must use angular.js for this project. :)
 
HAHAHAHAHAHA
 
Have them make a todo list
like every tutorial ever
 
@RahulDesai problem: implement a rpg character sheet
 
9:47 PM
or tic tac toe
 
I'm not a trump supporter
but that shit is funny
 
what is trump?
trump is a hearthstone player
 
Donald Trump
what rock have you been living under
 
oh lol
 
hi guys
 
9:50 PM
I don't care about Murica
but yes I know who is him :)
 
you don't care about freedom
 
I'm free here :)
 
@Neoares Sounds like Spain has too much oil and needs a little Freedom applied.
 
@Neoares you don't have too, Donald Trump is a world renowned asshat.
:P
@Trasiva oil? bro, no one cares about oil anymore.
 
@rlemon Tell that to the Bush's
 
9:51 PM
you want oil? come to Canada, we got that shit stockpiled.
 
they have wmd's
 
seriously.
 
Or BP
 
please buy our oil.
 
what's the meaning of "having too much oil"? @Trasiva
 
9:51 PM
It's getting cheap again, thank god.
 
not for us
 
FX traders dumping your currency care about oil, @rlemon
 
I find myself operating pretty smoothly for most of my days, but when I hit a wall, I get extremely flustered, agitated, antsy, annoyed, etc. Anyone else experience anything like that?
 
FUCKING DAMN IT. Now my filter doesn't work unless I actually call it.
On the page load.
 
@rism they only care about how cheap it is
they don't care about the actual oil
:(
 
9:52 PM
I've been trying to talk myself down when I can't figure something out. I think I'm so used to working without any problems, knowing what I need to know, that when I don't know something I lose my shit. It gets so bad I don't even want to use a computer.
 
someone want our oil dammit
our dollar is predicted to drop below $0.60 vs USD this year
worst its been while I've been alive afaik
 
@Neoares No such thing.
 
@Waxi nope
 
what Murica has to do is to forbid the use of fire weapons
IMO
 
what fire weapons are we allowed to use? flame throwers aren't allowed.
 
9:54 PM
Trudeau needs to hurry up on his dope reform so we can tax that shit and possibly even export it (legally)
that should pick us back up in no time
 
@KevinB shooting weapons?
idk, in spain they're called literally fire weapons
guns, rifles, shotguns...
 
@Neoares limiting yourself to blades / other hand combat weapons doesn't solve the problem
 
lel
 
there was so much peace in the middle ages
no death at all.
nope.
 
who talked about katanas?
 
9:56 PM
ah. firearms, :p yeah i don't think having them is the problem
 
1 min ago, by Neoares
what Murica has to do is to forbid the use of fire weapons
 
you think that people who has a gun will buy a katana if they forbid guns?
 
taking away firearms doesn't take away other weapons
 
well at least it'll be funny
 
@Neoares if someone believes they need a weapon to defend themselves, they will always seek a weapon
 
9:57 PM
but it will be harder
so the % of weapons will be reduced
the problem it's to DESTROY all the weapons if you forbid them
but well, they are registered or something similar, right?
anyway, don't vote mr. donald
 
how will it be harder? it would only be harder if we completely remove all firearms from the entire country, which would be far easier said than done. (not to mention some communities will likely be stupid enough to revolt against it)
 
If I have a change keyup listener, and I create a new one for the same object, does it override the old one? Or will there be two listeners for the same thing?
 
@KevinB well, it would be harder if they stop selling them
I mean, in spain one does not simply buy a gun
 
@rlemon I sleep with a .45 under my pillow.
 

« first day (1916 days earlier)      last day (3050 days later) »