« first day (2200 days earlier)      last day (2749 days later) » 

user1596138
3:02 PM
@SterlingArcher Oh man hahaha
 
user1596138
@SterlingArcher did you see the Audi drift last night
 
I did lol who tries to drift that fast in snow
 
user1596138
Lmao outside of a cornfield anyway
 
user1596138
We had my Ram out doing like 50mph in the fields totally sideways at Christmas hahaha
 
@ssube how do you get high grade runes? I barely have found any 2*+ runes
 
3:04 PM
@SterlingArcher the giant and dragon dungeons
 
what
I didn't know Cairo dropped runes
 
you get specific runes from the story levels, but the less common ones only come from the giant and dragon
 
Oh
I guess they're not good for rune grinding for the event then
 
if you run giant 5 or 6, you will get a 4+ rune almost every time
that's what I'm doing for the event
 
I'm not sure my mons can handle that
Though I did get Colleen to 5*
Her heal and attack boost is beast
How is Bella better than her?
Max lvl fiery dance takes like 3 turn cooldown
 
3:07 PM
bella can team heal, strip enemy buffs, def break, and is fast
 
Colleen can stop enemy heal, team heal for 50%, buff attack, and break enemy attack
 
I've been running arta, bella, galleon, and trevor most of the time recently (2 healers, 2 buffers, 2 atk mons, 2 speed mons)
 
Wait you play with 8 on a team?
I thought max was 5
 
no, each of those mons fills two rolls
 
Knu
3:09 PM
Someone got an alternative to while (!(foo = keys.next().done)) { in ES5?
 
between bella and galleon, the other team rarely gets a turn, and when they do, arta gets to counter attack
@Knu for of and babel
 
user1596138
I hadn't thought of getters this way before... Can someone tell me if there's anything wrong with this
 
isn't that a while loop looping over a generator's values?
 
Knu
and without Babel?
 
for in?
 
Knu
3:10 PM
@KevinB yup, I find it ugly
 
user1596138
I have an object that needs to have two identical properties on different keys (why is irrelevant right now). So obj = {a: 5, get b() {return this.a}}?
 
@Knu iterators are es6, there's no good way to use them without it
 
@Knu generators aren't ES5, so.... you're question doesn't make sense
 
Oh yay, @ssube good call. Just got a 3* powerful energy rune
 
@Jhawins that's pretty common, like when you rename a property but want to keep backwards compatibility
 
3:11 PM
I've been mostly grinding the Hall of Magic since it gives basically everything.
 
usually you'd log a "You've called a deprecated method" warning along with it, but that's optional
 
Knu
stylistic opinion: would a while (1) with a break; in the body be better?
 
user1596138
@ssube Yeah I mean it's sort of like that lol.
 
@SterlingArcher not everything, but most of the good stuff. Giant's have a much better chance of a mystical scroll and good runes. Story obvs drops a single specific rune for each level, although the last level of each stage can drop a 3* mon.
 
Knu
in short, what would you consider worse?
 
user1596138
3:13 PM
We used to have 2 separate states but now we've joined them under 1... But another area of the app doesn't know that yet, so I need to keep both just for now. Didn't want to literally duplicate the code
 
@ssube I need better runes at this point. I joined a guild so I can save for an Ifirit
 
@Jhawins a proxy getter is exactly what I'd do
 
And I'm doing more glory point battles so I can upgrade my mana production
 
user1596138
@ssube Cool. I didn't even realize I could do that until today, I've used getters but never to reference themselves. TIL
 
@SterlingArcher I just recently got into the guild stuff and have been spending all my points on legendary summoning pieces.
 
user1596138
3:15 PM
In such a simple way anyway lol
 
@ssube I haven't been in battle yet, so I'm just kinda sitting in the defense and getting points that way.
 
@Jhawins if you keep it as just a return this.a, the compiler should completely inline it as well
@SterlingArcher I'm in a farming guild, so we intentionally have no defense and fight other doods with no defense, so everybody always wins.
 
user1596138
@ssube can I shorten it like an arrow function, it's an odd syntax
 
user1596138
Like get copyOfB() => this.b
 
in Python, 4 mins ago, by davidism
This may be a rare time when I venture into the JavaScript room.
 
3:17 PM
@Jhawins no
 
Hey everyone.
 
user1596138
I mean I know you can't do it just like that... But there's no other way?
 
Everything on the Internet says that if I use Access-Control-Allow-Credentials true and xhr.withCredentials = true, then cookies will be sent with CORS requests. But it's only sending the cookies for the local domain, not the domain the requests are made to.
 
user1596138
Oh well, either way pretty nice.
 
The CSRF implementation in a library I'm using sets a token in the session cookie (which is signed), and adds a separately signed version of the token to the form or request headers.
The issue is that the cookie is not behaving correctly for AJAX/CORS requests.
Am I not correctly understanding what xhr.withCredentials is supposed to be doing?
 
3:19 PM
which domain are the cookies set on?
 
It's set by the domain the API is served from, meanwhile the frontend is on a different domain (or port for my local tests).
rv.headers.add('Access-Control-Allow-Origin', 'http://localhost.localdomain:63342')
rv.headers.add('Access-Control-Allow-Headers', 'X-CSRFToken')
rv.headers.add('Access-Control-Allow-Credentials', 'true')
Setting the CORS headers like this.
 
is the client sending any preflight (OPTION) requests?
 
Yeah, network tab shows preflight succeeds.
 
Can someone explain to me why the second approach throws? gist.github.com/oliversalzburg/9b61b6878909eedcbfead1e4a6e0380f
 
@davidism and what is actually being sent with the cross origin request? no cookies at all?
 
3:22 PM
what does it throw? that would probably make it pretty obvious.
 
Knu
@OliverSalzburg console.log.bind(console)
 
@KevinB Unhandled rejection TypeError: cb is not a function referencing line 6
 
Only the cookies set on http://localhost.localdomain:63342 are being sent when withCredentials: true, instead of the cookie that was previously set by a request to http://localhost.localdomain:5000 (the api port).
 
@Knu if this is node, not required
 
catch it and look at stack
 
Knu
3:23 PM
@rlemon I assumed that was in a browser
 
don't assume
 
Shouldn't promisify handle that anyway?
 
Knu
don't be a jerk :)
 
@KevinB Wow, if only I would have thought of that!
 
@Knu how is that being a jerk?
I mean, I can be if you'd like.
 
3:24 PM
Why would cb suddenly not be a function just because promisedBar is invoked differently?
And how is it even really different?
 
gets the token in the response body, as well as a cookie
$.get('http://localhost.localdomain:5000/', function (data) {token=data.csrf_token;})
sends the token in the header, but the cookie is not sent
$.post({url: 'http://localhost.localdomain:5000/', headers: {'X-CSRFToken': token}, xhrFields: {withCredentials: true}})
 
Knu
@OliverSalzburg what's the context?
 
in PHP, 3 hours ago, by Wes
@littlepootis http://i.imgur.com/PDqgTC0.jpg halloween avatar. i can't stop. sorry
 
@Knu You're looking at it. That is all there is and I'm wondering why there is a difference in behavior
 
Knu
3:25 PM
node or browser?
 
@Knu Node
 
@OliverSalzburg the first argument passed is the result
so you're passing "foo" as the cb
 
@rlemon Huh. That makes sense. I somehow assumed that the cb argument of a promisified function would somehow be reserved
 
as the last argument iirc
 
the name of the argument doesn't matter, it just looks at the last one
 
3:28 PM
@OliverSalzburg arguments don't have names
that, like everything else you believe, is fake
 
Jeeze, you guys...
 
who pissed in everyones cornflakes today
??
 
I'm still hungover from Saturday :D
 
I think the milk in my protein shake this morning was off.
 
Thanks @rlemon for helping and thanks to everyone else for explaining JS to me!
 
3:29 PM
been feeling ill since.
 
@rlemon maybe it wasn't your cornflakes...
 
@OliverSalzburg the whole nodeback to promise conversion is black magic to me, but iirc the only thing you can be sure of is the last argument gets assumed to be the cb, n arguments before it are just arguments.
Bluebird does a lot of voodoo
 
The only thing I thought might be interfering with the cookies was the browser denying third-party cookies, but even with them allowed I'm seeing the same behavior.
 
is LoremPizza.com down? :)
 
3:32 PM
!!pizza 800 600
 
Are you down?
 
LOOKS UP TO ME
 
I am down.
 
what a tasty pizza
 
3:32 PM
they're random
you are seeing your own pizza.
 
Yea, I wasn't serious. I was wondering if you'd bin my message :)
 
mine has eggs wtf
 
What happens if
pizza 8000000000000 600000000000000
 
try it
 
What you see in the pizza is personal and says more about you than it does the pizza.
 
Knu
3:33 PM
Do you enable this rule in your eslintrc?
 
caps at 1920 * 1080
 
They found one of the remaining pizzas I hid in the website at work, Im almost out now :(
 
Knu
(some kind of poll)
 
@Knu yes.
 
3:34 PM
More accurately, it's part of the recommended rules, which I enable.
 
the Luggage pizza
 
@Knu always
@BenCraig elaborate?
 
Knu
@Luggage if it wasn't part of these rules would you add it?
 
Yes.
 
@BenCraig placeholders?
 
3:34 PM
I think assignments inside conditionals can lead to confusion.
 
@ssube I hide lorempizza pizzas on different parts of the website at work, and people keep finding them and then I get asked to remove them
 
you hide the links, or just images of pizza?
 
Knu
stuff like Shouldn't this be ==??
 
@Luggage yes?
 
@BenCraig how many did you start with/have you done?
 
3:36 PM
@Knu yea. Or perhaps not even questioning it and just assuming it is == without looking to closely and realizing it's not
 
@ssube there was about 10 at one point, im down to two I think
 
Hi! Is there an open source easily-installable "chatroom" channel (in JS for example) that looks like this actual chat (ie SO's chat) ?
 
@Basj I'm curious, why?
 
@Basj plenty of all sorts. Mattermost is one of the popular new ones.
 
3:38 PM
@Luggage, I manage an open source project (samplerbox.org), and in addition to forum, I'like to have a self-hosted chat room that looks like this chat
 
Knu
@littlepootis cmon you don't know that
 
Knu
if you were answering the chat question that is :)
 
@Basj jsut use gitter or one of the others. off, yea, miao
 
Ah, well, miaou.
 
3:39 PM
 
Knu
:)
Id prefer cat pictures over pizza
doesn't make me hungry
 
Ok so it seems to be:

* mattermost.org
* gitter
* miaou
did I forget a good one?
 
Knu
I wonder what his voice sounds like in German.
 
3:41 PM
team rocket has a chat now?
 
@Knu should be an easy task to youtube that
 
lol
 
Knu
@jAndy scared of being disappointed
 
life is scary
 
3:45 PM
All these tools require sign up, etc.
Is there an open chat room-like solution?
 
this chat requires sign up
 
true :)
 
sounds like you want IRC
 
like a self-hosted very simple, minimalistic chat
like IRC but with web usage by default (instead of IRC client) + better text formatting (like here yeah)
 
are you sure you want to host an anonymous chat server?
 
3:49 PM
not really, but mattermost is like a 18-wheeler for my small purpose : docs.mattermost.com/install/prod-debian.html
> Set up 3 machines with Debian Jessie with 2GB of RAM or more. The servers will be used for the Load Balancer, Mattermost (this must be x64 to use pre-built binaries), and Database.
 
that's if you want your chat to be redundant, like if you're running it SaaS
I just ran it on one server because a cluster for chat is just silly
 
Could've sworn mattermost had a binary
 
I'm looking for a, say, minimalistic < 20 MB solution ;)
 
what do you mean "< 20 MB?" You won't find a chat server that runs in that.
not even ircd
 
20 MB + database
 
3:52 PM
20 MB of what?
 
it's just to give an idea, let's say < 20 MB package installer
just to say I'm not looking for a millions of users / 2 GB software installer which requires 3 virtual machines
 
those docs are for an HA cluster
if you want HA chat, you need a trio of 2GB machines
it's not a 2GB installer and you can run on a single machine
 
ok
 
if this is an open source project, just use an existing service.
no need to host your own..
 
3:59 PM
@BenFortune: does this binary run from CLI or is it a GUI tool (i don't have X window, it's a server only)?
 
CLI
 
@Luggage which one would you use?
 
gitter, freenode
 
yea.
Gitter is a good start. simple persistent chat, some github integration.
 
I'm getting this error using react-router
<Link>s rendered outside of a router context cannot navigate
 
4:00 PM
@JoeSaad true.
 
any idea why this is there.. i've done some googling and none seem to be the the issue
 
As designed. Without a router context, the link doesn't know how to work.
 
CLI .............................................................................. TORIS
 
briefly, i'm having App.js which is the bootstrapping javascript which contains the const routes defined in it.. then i have a <Navigation /> in it which contains the links to other components.. i think this is where the problem is
 
Hi, my name is Cliff Toris, but call me Cli
 
4:03 PM
export const routes = (<Router history={browerHistory}>
					<Route path="/" component={HomePage} />
					<Route path="/about" component={AboutPage} />
				</Router>);

class App extends React.Component{
	render(){
		return (
			<div>
				<Navigation />
				{routes}
			</div>
		)
	}
}
does this make sense?
 
sure
er.. no
<Router> should be your root.
 
i think i get what you're saying
 
/ -> App
    Index => HomePage
    /about => AboutPage
 
user1596138
 
then just create another component called layout, which includes a page with <Navigation /> .. am i getting this right?
 
4:09 PM
@Jhawins I don't car parking tips from you. :)
2
 
user1596138
@Luggage what lol
 
@Jhawins protip: park legally
 
My car may get repossessed
 
user1596138
Srsly don't listen to me lol
 
don't worry we don't :D
 
user1596138
4:11 PM
I'm never parking in that parking space again lol
 
user1596138
rocket.chat the constellation animation on this is so cool.
 
still the same error
 
@Jhawins yeah! But it would be cool if the demo worked : demo.rocket.chat/home
Currently it's impossible to connect with FB or Github (etc.) social login
 
probably shouldn't use their product, then
 
4:15 PM
@ssube i'm not saying that, but it's a shame the demo doesn't work ;)
 
if the demo is broken, why would you bother?
clearly they don't care
 
user1596138
@ssube it's not broken lol
 
user1596138
They have auth disabled it gives you a message about it
 
user1596138
Still... I bet the coolest thing about it is the star animation. Everyone wants to piggy back off what Slack did
 
Tronald Dump
Clillary Hinton
Sarnie Benders
Tronald Dump is a pretty cool name
 
4:24 PM
Is there way in which we can listen to every click event including anonymous on clicks in javascript
 
yes, unless they stop propagation
 
how can I change background color before alert box?
 
@Freddy Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
like for my code background color changes after someone clicks on "OK"
else if(user_input == answer){
  document.body.style.background = answer;

  alert_text = alert("Congratulation you have gussed the color!\n\n" + "It took you " + count + " guesses to finish the game!" + "You can see the color in the background");

  return true;

}
 
@ndugger can you please guide me? I'm trying to hide the default keyboard in android by listening to onclicks on the input field of
 
4:27 PM
@Freddy don't use alert
 
webpage
I won't use em too :)
thanks
 
@ssube what can I use instead of it?
 
@DineshVenkata use preventDefault, but I doubt it's on click that you're looking for.
 
preventDefault doesn't work actually in this case some how the events are propagated
 
@Freddy an absolutely positioned div
 
4:39 PM
Legit question, why does an asian first language, english second create such a thick accent like adding "ahhhhh" at the end of words and sometimes in between them?
 
because it wasn't configured well enough in their jquery plugin
 
@ndugger I am not sure what exactly you mean, But I am not allowed to use HTML(except script part in body).
 
@Freddy Well you can't change the background of the alert, so it sounds like you're out of luck.
oh wait, I see what you're trying to do
 
@ndugger no no i need to change background color of page
 
you need to put the alert in an rAF
after the next animation frame, which will allow the browser to redraw the background of the body, you then do your alert
Right now, your alert is happening before the browser has a chance to repaint the body
 
4:57 PM
@Luggage back about chat rooms, I tested a few of them now, but none of them is as cool (about GUI and UX) as this StackOverflow chat. Is it open source? ;)
 
no
 
user1596138
@Basj Yeah this SO chat is soooo cool.... Such a nice UX...
 
You may be spending time in the wrong place if you are trying to make an open source project successful.
 
@Jhawins simple but working, and no fuss, that's great.
@Luggage It is already : raspberrypi.org/blog/samplerbox-drop-and-play-sampler but now I need to find the right tool for more efficient talking between the devs (we have a forum, but a chat room would sometimes be more officient)
 
@SterlingArcher example?
 
5:05 PM
@BoltClock this woman in my meeting right now
Almost every 3rd word there's just.. like an extended auummhhh sound
 
racist
 
Is it like me saying um 30 times at subway?
also that
 
As a follow up to my question about CORS and cookies earlier, it turns out that you need to set withCredentials on the initial GET request as well, otherwise the browser won't set cookies that it receives.
 
filler word while she translates in her own head?
 
Could be? I can't quite make out what you're referring to tbh
 
5:07 PM
Dev tools really need better feedback about that. "warning: you received a cookie but withCredentials is false so it will be ignored"
 
@rlemon that's got to be it
The actual noise itself must come from the language
ok. i need some food. I'm 2 hours overdue for lunch
 
I mean, if you had to order at subway in mandarin you'd probably say umm 30 times.
 
Is Wikipedia slow as shit for anyone else?
 
I'd starve :(.
 
Weird, as soon as I said that, it started loading instantly.
 
5:45 PM
@Luggage Don't Starve!
 
don't starve, or go insane, or light yourself on fire, or get frozen, or trampled by giants
in fact, just don't play that game because you will die
 
Starve Alone.
a.k.a. Don't Starve with Friends
 
I never got don't starve together to work.
 
together, thta's it
 
@rlemon This attempt at a joke did not leave me in stitches.
 
5:50 PM
I did it once. Was OK.
 
guys dumb question. How can you get the bounding box of a dom node relative to its parent node?
 
You're asking how to get a child element's bounding box based on the parent?
 
yes, so it's left, right, etc properties are not relative to the document, but to its parents
 
Uhh, don't think there is. getBoundingClientRect is based on the viewport itself.
 
@corvid get its offsets, get its parents offsets.
do some maths
 
5:54 PM
Well, that was going to be my next suggestion if he didn't feel like being lazy. Not that he has a choice.
 
Bleh, can't iterate on the keys of a ClientRect
 
Well uh, no
@rlemon So I took your suggestion Saturday and put some lemon on the steaks I was grilling. Actually makes it pretty nice, especially if you put a sprig of rosemary on top.
 
mmm I should pick up some steaks.
 
what's happening
 
@Mahi Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
6:01 PM
@rlemon I've got a three different batches of pickles going in my fridge right now. They have four days left and I'm itching to try them.
 
What did you pickle?
 
@Trasiva I made pickled eggs yesterday
 
@Luggage Just some pickling cucumbers I found at the farmer's market.
@rlemon I should do that. I just picked up three cartons of eggs on saturday for 85 cents each.
 
@Trasiva Basically, this?
    getRelativeBounds(domNode) {
        const node = findDOMNode(domNode.input).getBoundingClientRect();
        const parent = findDOMNode(domNode).parentNode.getBoundingClientRect();
        console.log(node, parent);

        return {
            width: (node.width / parent.width),
            height: (node.height / parent.height),
            left: (node.left - parent.left) / parent.left
        }
    }
 
@corvid Did you run it to check?
 
6:04 PM
@corvid if this needs the bounds from its parent, why does the parent magically not need the bounds from its parent in turn?
 
why are you dividing?
 
i.e., did you even try?
 
@ssube Everything within this container is placed relatively, and programmatically determined where it should be
 
cv-pls stackoverflow.com/questions/40224749/… ("Can anyone help me to write this script ?")
 
6:47 PM
^ amazing lol
 
@Trasiva so good but after a few in the thread i realised they were fakes :(
 
@bitten Well, duh. My neighbors sure as hell don't have my cellphone number. Mostly because then it'd be evidence when I put their heads in the mulcher across the street.
 
@Martin "2 spaces – for indentation" why
 
@Martin lol
 
6:51 PM
yuck
4 spaces to rule them all!
 
> One JavaScript Style Guide to Rule Them All
what a bunch of trolls
> No semicolons – It's fine. Really!
 
@ssube lol yeah for sure
 
who clearly don't use JS
 
I felt an ulcer grow from reading that page.
 
2 spaces?!
 
6:55 PM
I use and kind of prefer 2 spaces, but the "don't worry about ASI, it's fine" bit is obviously bullshit
 
1 tab
 
> Wrap conditional assignments with additional parentheses.
 
> Use single quotes for strings except to avoid escaping
 
also, they encourage assignment in conditionals
 
maybe i'm just being picky but that's just being inconsistent
 
6:56 PM
it's kind of feeling like whoever made that package has never written code
 
Who do these clowns think they are?
 
@bitten it is
 
This is how ISIS writes their JS.
 
@ssube yeah that's strange
 
still not the worst style guide I've seen
Google has some pretty bad ones, either for their C or Java
 
6:58 PM
all style guides are bad
apart from your own
that's the law
 
not all of them, plenty are pretty middle-ground-ish, but those tend not to be strict enough to be useful
 
It's unreasonable. Unless they can convince everyone to switch styles (they can't), then you should be in favor of eslint and other rules configuration, because at least that can make a project stay consistent.
 

« first day (2200 days earlier)      last day (2749 days later) »