« first day (2040 days earlier)      last day (2922 days later) » 

6:00 PM
evenin
 
Thread.sleep(6hour)
 
eh, if @SomeGuy and @Abhishrek loves each other, let them be. I don't mind such relationships.
 
Good night guys
 
@SomeGuy Medical issues
 
Ah. That sucks
 
6:02 PM
cya kids
 
@Learning throw WrongChatForThatJokeExceptionFactory.createNewWrongChatForThatJokeException("Jav‌​a", "JavaScript");
 
@Learning killall -u Learning
 
killall -9 java
 
@KarelG ???
 
@Learning See, it works!
 
6:05 PM
@KarelG what does that command do?
 
@Learning look it up in the manual
 
Ok in regex, is there a way to specify two tokens, but not include the second token in the match?
 
define token
 
do you want lookahead maybe?
 
6:07 PM
@Hypersapien capture (groups)
@KendallFrey he wants to parse escape sequences
 
For instance if I have "d[^d]" if will find d's that are not followed by a second "d", but I only want the "d" itself returned in the match.
 
@Hypersapien yes, you want lookahead
 
Lookahead, yes. I think so. I'll google that.
 
@SterlingArcher ohh that last one hurt
 
6:10 PM
lol
 
@SterlingArcher I just puked a little.
 
> Also have a bath with your toaster once a month to clean it properly.
 
For anyone that likes RethinkDB: horizon.io/#1.0-release
 
@KendallFrey Don't forget to make sure it's plugged in so you can clean your electricity too.
 
user1596138
@SterlingArcher lmfao!
 
6:16 PM
@FlorianMargaine duuuuuude! you play with callCC stuff in lisp?
 
user1596138
@SterlingArcher @Loktar see message this is a DR to
 
I didn't tag him so he wouldn't murder me D:
WHAT HAVE YOU DONE
 
user1596138
@KendallFrey Isn't that a crappy old GPU
 
if it starts with GTX, yes :D
 
user1596138
lol said the Supra driver
 
6:18 PM
it's a Supra GTX
 
also I've never owned a toyota
 
user1596138
Supra GTX 570 Turbo-A
 
user1596138
@ssube Just playing
 
it's the 570T All-Wheel-Turbo model, tyvm
 
6:19 PM
Are they kidding me?
Those Sela people really suck
 
each wheel has an individual turbo
so the faster it's spinning, the faster it spins
 
user1596138
> (Note: Chrome is no longer supported)
 
user1596138
Yes they are kidding you
 
@Josiah And this is a link to view video recordings from a frontend conference
 
@MadaraUchiha nice
 
6:20 PM
Of which the ticket cost around $300
 
user1596138
@MadaraUchiha Lmao this is terrible
 
Does javascript not have a negative lookbehind?
 
Correct
 
damn
 
if you think you want negative lookbehind, you actually need a full blown parser
cause you're well past regular expressions and into contextual grammars at that point
 
6:22 PM
You shoulda looked behind, cause now you got a full blown foot in your ass.
 
@Neal You are.
Math.random is a function
 
@Neal You're being pedantic and arguing something nobody said.
You can't multiply a object of type "function" with 100. You can multiply its output. Math.random * 100 --> exception. Math.random() * 100 --> no exception. — codenoire 2 mins ago
 
Math.random() is the number.
 
@ssube that said, most regex engines do include lookbehind
 
6:24 PM
@MadaraUchiha Yes I know that
 
!!> Math.random * 100
 
@MadaraUchiha "NaN"
 
But no exception is thrown if you accidentally multiply a number by a function
 
user1596138
@Neal That kid doesn't understand basic javascript syntax
 
@KendallFrey most? I think it's some.
 
6:24 PM
@MadaraUchiha see? No exception.
 
user1596138
!!> {} * 1
 
@Neal ugh, except it's behavior no one wants
 
@Josiah "SyntaxError: expected expression, got '*'"
 
@ssube Well, most of the ones I know
 
So again, pedantic.
 
user1596138
6:25 PM
Oops I suck too
 
!!> ({}) * 1
 
@MadaraUchiha "NaN"
 
user1596138
^
 
@MadaraUchiha I said that in my comment ;-)
 
JS being stupid and confusing people is bad enough, you don't have to intentionally make it worse.
 
6:25 PM
I was just trying to explain that there is no exception thrown. you have to check the return value.
 
It may be valid, but multiplying a function by a number is useless.
 
Ugh, you forced me to make a fiddle where I had to change so much of the structure, rendering this answer totally useless. — HHHome 5 mins ago
wut
 
!!afk keep slayin boi
 
user1596138
@Neal why you suggest :eq and why in such a gross way :O #nitpicking
 
@Neal Why not just downvote/close these shitty questions instead of giving them intentionally confusing answers?
main encourages closing over trolling, pretty sure
 
6:26 PM
@MadaraUchiha .... I just saw that comment.
 
user1596138
$(".child:eq(" + i + ")") OR $(".child").eq(i)
 
@ssube Huh? I answered the question. Some other person was making invalid comments. Not the OP
 
user1596138
Or did they change that? I swear .eq was a function for jQ
 
Also $('.child').each()
Instead of the for loop
 
user1596138
$('.child')[i] // grossest
 
6:28 PM
@MadaraUchiha I did not want to change the OPs code too much
@Josiah lol that gets the DOM element though
 
@Neal You should have gone with that one ^^
$($('.child')[i])
:D
 
user1596138
@Neal Oh ok how about $($('.child')[i])
 
user1596138
@MadaraUchiha You beat me hahaha
 
@Neal your answer is correct, but has bad practices in it.
Fix it, don't force me to answer a jQuery question.
You're querying the DOM N times for no good reason.
 
oh wow...
$($) gets you in an infinite loop apparently
 
6:30 PM
@MadaraUchiha as will your $(...).each answer ;-)
 
@Neal Nope.
 
the value that gets put into the loop is the DOM element and not the jQuery object
 
@Neal and your pedantry led to arguing with the OP in comments again. gj
 
(unless they changed that recently)
 
$(..............).each()
^ query once ^    ^ iterate
 
6:31 PM
@MadaraUchiha Ya. then how do you do the css updates?
 
@Neal Wrapping an existing DOM element with $() does not query the DOM
 
@Neal Also, I use style.order = 1 like a sane human being
And not being a degenerate to use jQuery for this petty thing
 
@MadaraUchiha I would like to do that too :-) but ive been told not to answer with vanilla if the person asks in jquery
 
@Neal Yeah, that's why I didn't mention that as a solution.
You asked me how I would have done it.
But yeah, $(...).each((i, el) => $(el).css(...)) is perfectly acceptable.
And even without .each()
const list = $('.child');
for (bla bla bla) {
  list.eq(i).css(...);
}
Query the DOM as few times as possible
DOM querying is expensive.
 
6:34 PM
@MadaraUchiha I updated my answer.
 
@MadaraUchiha You dog, I hear you like querying the dom, so I put a dom query inside your dom query.
 
yo dawg, we put a DOM in your DOM so you can reflow during reflows
 
@MadaraUchiha fancyness ;-P
 
user6225166
hello every one :)
 
@Neal That's not fancy
[...document.querySelectorAll('.child')]
  .forEach(el => el.style.order = ~~(Math.random() * 100));
That's fancy.
Alternatively
 
6:37 PM
even reading many properties of the DOM cause reflows/repaints... It's a really gross API
 
@MadaraUchiha ~~?
 
for (const el of document.querySelectorAll('child')) {
  el.style.order = ~~(Math.random() * 100));
}
@ndugger No
Reading after DOM change is what causes reflows.
Repaints are caused by nearly every DOM change though
 
hi
 
When you ask an element for its height, and the DOM changed since last checked, the browser will cause a reflow
 
@MadaraUchiha what about Array.from(document.querySelectorAll(".child"))?
 
6:38 PM
Repaint is caused whenever you change the width of any element, for example
@SterlingArcher Also possible. Not as fancy.
 
But which is faster
 
@SterlingArcher Who cares, how many elements are you expecting?
 
@MadaraUchiha I fail to see how me leaving our every detail of the fact makes me wrong. Reading the dom does infact cause reflows; I never specified when or when not.
 
(I don't know, btw)
 
forEach is always gonna be slower, since it has to call a function
 
6:39 PM
@ndugger Reading the DOM can cause reflows. it doesn't happen every time.
 
I care! The world cares!
Show me the most optimized!
 
@ndugger I think he's talking about [...foo] vs Array.from(foo)
 
Also ew, ~~
Hello job security though
 
@SterlingArcher It's short and I'm writing it here in chat.
~~ is fairly common methinks
 
What does ~~ do? (n00b)
 
6:40 PM
Ah; I prefer Array.from so that other devs can read the code faster. I tend to to opt for readability vs terseness
 
Shorthand (per se) for Math.floor @Neal
 
@Neal ~ is the bitwise "not" operator
 
!!tell neal eval ~~100.9876543210
 
@neal 100
 
~~ is "not"ing twice
 
6:41 PM
122
Q: What does ~~ ("double tilde") do in Javascript?

Shane TomlinsonI was checking out an online game physics library today and came across the ~~ operator. I know a single ~ is a bitwise NOT, would that make ~~ a NOT of a NOT, which would give back the same value, wouldn't it?

notnot
 
found something odd
 
This is what happens when people want to get that pretty karma instead of actually helping people. — HHHome 1 min ago
I am done...
 
@KarelG Did you finally look in the mirror
 
tl;dr it's a decimal truncation
 
I genuinely wanted to help... but now I am done...
 
6:42 PM
@MadaraUchiha can you clean up the comments on that answer? It's devolved into calling people rep whores.
This is what happens when people want to get that pretty karma instead of actually helping people. — HHHome 2 mins ago
 
apparently there was a typo in that production code: github.com/open-source-parsers/jsoncpp/blob/…
 
@ssube yep...
 
@Neal that's what happens when you rep whore bad questions instead of closing them :D
there's no good way to answer a bad question, so it will always end up being a mess
 
@ssube you rep whore
 
I'm just whore
 
6:45 PM
@SterlingArcher I only answer bad questions on Fridays! D:
 
user1596138
I can't remove my thumb up from this comment stackoverflow.com/questions/37283150/…
 
user1596138
I can remove it from other comments above or below
 
@Neal : keep your answer.
 
user1596138
I mistakenly clicked it lol
 
@BenFortune through a cludge of python and bash I've got it working bypassing any need to learn that node lib :D
 
6:46 PM
@ssube It was not a bad question....
@HHHome You question is the first one I have answered in almost a month. I have no interest in this "karma" I just happen to gain it every day due to 5 year old posts. I genuinely want to help. I was trying to get you to write a clear concise question that can be answerable. And I think I helped you do that. I am sorry that something changed in your code that made it so it does not perfectly balance what you have, but what you gave did not work and I tried to help to the best of my ability to fix it. — Neal 54 secs ago
 
user1596138
/me sends raw POST to unthumb because wtf
 
user1596138
Ohh it's because @MadaraUchiha locked it lol. Now he will think I agreed with him forever..
 
lol his edit history ...
 
@Josiah but it still wasn't enough to stop the comment war...
 
Don't downvote his question. It was a perfectly fine question.
 
6:49 PM
@HHHome You provided a fiddle. The edit merely includes the same code from the fiddle into your question. So I don't understand what's the point of this rollback war. You provided this code. If you were misunderstood and have gotten answers that do answer you question, but aren't what you intended, please open a new question, linking to this one, and explain exactly what you need different. Please include code samples and explanations in the question body along with any relevant links like jsfiddles. — Madara Uchiha ♦ 9 secs ago
Seriously, don't start a rollback war against a mod...
 
may i do a barrel roll with u ?
 
You may try, but my food is here
So laterz
 
* puts madara in a barrel *
 
Later :-)
 
@MadaraUchiha ONE TWO THREE FOUR I DECLARE A ROLLBACK WAR
 
6:50 PM
* kicks it of the hill *
 
@SterlingArcher ONE TWO THREE FOUR I DECLARE A SUSPENSION WAR ... I WIN
:P
 
Pft, impeachment war has been declared
 
@MadaraUchiha gonna get back piercings and see which of you can hang from the ceiling longer?
 
@MadaraUchiha how else are you gonna have fun though... besides try to out answer jon skeet
 
@MadaraUchiha it's best to lock the whole thread
comments is going on
 
6:51 PM
@KevinB I did actually identify a problem with .css("order", X) not updating properly, at least in chrome. .attr("style", "order : " + X); Behaved as expected though. — HHHome 37 secs ago
lol wut?
 
Good lord, fucking jquery developers...
8
 
I AM DONE
haha
I have not used jquery in a while now...
 
@ndugger lolright
 
wait so OP fucked up Math.random() you pointed it out and now they are saying that isn't the problem?
but then in the comments later saying it is?
 
starting a comment war and then not giving up after mods delete it three different times
three different times
 
6:52 PM
worth to mention that Neal is responding
he could not
 
cause of that sweet, sweet rep
 
@rlemon apparently that was part of the fiddle, but not the original code
 
and that is the fault of who?
 
@Quill There was no "original code" I had to get it out of him...
 
:P
 
6:53 PM
Whatever no point
Who wants a 500 rep bounty on an answer?
Give me a link and ill bounty the Q
 
@rlemon OP fucked it up, somebody else commented about it, Neal started a flame war in response to that, Quill joined, Madara deleted it, and repeat.
 
first come first served....
 
@Neal don't do that
 
@Neal why are you offering bounties on random questions? That's not how that system works.
 
you answered some question you made up. Not mine. — HHHome 14 secs ago
lol wut?
@ssube I want to "Reward an existing answer"
That is a valid bounty reason :-)
 
6:54 PM
@rlemon Nice, did you actually need it for node?
 
64
A: What exactly is "artificial inflation of reputation", and where is the line?

Shog9First off, I gotta say that I really detest bounties. I hate that we have a bounty system, and generally-speaking I hate that people use it. All bounties are artificial rep inflation! But I also recognize that bounties are sort of a necessary evil, like gambling or usury: if folks are gonna do ...

 
no I'm just putting together a SD card cloner
put the sd card in one end, hit a button, clones to 6 sd cards on the other end
commercial units are crazy over priced
 
and that's where babies come from
 
@Quill It is allowed
> Using bounties as a means to pay / reward someone for something apart from the quality of their work can be fraud if you don't let on that that's what you're doing.
I am letting on what I am doing.
 
@rlemon oo nice, could you not just use dd though?
 
6:57 PM
Bounties allow me to give away my fake internet points that I don't care about to someone that does care about them; nothing wrong with that. The only people that are gonna complain about bounties are the ones that care about their fake internet points.
 
Whatever i am done with that...
 
@BenFortune automated
I am using dd
 
@Neal don't expect a cheerful response to rep whoring
 
@ndugger :-) Sooo you want some? I dont care about then and I gain thousands a month...
 
No, I don't care
I just said that
 
6:58 PM
@ssube eh? I don't give a darn about rep
 
needed to identify the usb locations, the source card, needed to spawn the dd processes
 
if I cared, I'd have hundreds of jquery answers under my belt
 
Just want to help @ssube :-)
 
Ah fair enough
 
so I'm using bash AND python to do it because I don't know enough of both to do it in one :D
 
6:58 PM
@ndugger I have those from years back...
 
You could probably write a regex to convert normal js into jQuery
 
@Neal Don't bounty to prove a point.
 
@Quill Or you could just not write bad code with bad libraries. Just a thought.
 
@ndugger Technical debt is my favourite kind of debt
 

« first day (2040 days earlier)      last day (2922 days later) »