« first day (1782 days earlier)      last day (3161 days later) » 

11:00 AM
@VeeeneX page.evaluate looks asynchronous to me
Nvm, looked it up and it's not
 
@BenFortune But return response always returns body
 
Why are you using regex for that, when you have access to DOM methods?
 
@BenFortune What do you mean?
 
!!tell VeeeneX mdn dom
 
ok, but I just want to remove style and script and have rest of html
 
page.evaluate(function() {
	[].forEach.call(document.querySelectorAll('script'), function(script) {
		script.parentElement.remove(script);
	});
});
Wow, really sublime?
 
What's wrong with that?
 
@BenFortune thanks I found this too :gist.github.com/sindresorhus/1993156
 
with(new Option){ :((((((
 
11:12 AM
ok I will use your version
 
I'm not saying don't use it, just change it a bit
 
@Feeds Might as well fill in that thing :P
 
@BenFortune but it removed whole DOM :D
 
@VeeeneX Whups, change remove to removeChild
script.remove() might work too
 
@BenFortune And how to connect NodeList?
 
11:24 AM
@VeeeneX What?
 
@BenFortune document.querySelectorAll('script') returns NodeList presented as array and I want to replace style and script.
 
@VeeeneX It's not an array, it's a NodeList. And use document.querySelectorAll('script, style')
 
@BenFortune Thanks I was trying to convert it to array :D
 
@VeeeneX It's an array in the code above...
[].forEach.call(...) creates an array from the nodelist.
 
Yes, I was googling for it :D
And is it fine? pastie.org/10391541
 
11:29 AM
what about <link rel='stylesheet'..>?
 
workin on it :D with style=""
 
@BenFortune it doesn't really create an array, does it?
 
@JanDvorak No, but I'm tired and pissed off, and couldn't think of another way of explaining it.
 
oh.
 
11:32 AM
@BenFortune But it has great comment :D
 
user3119231
11:49 AM
can someone do me a favour -> go in my website bm-designs.de from smartphone and tell me if the orange '+' button is shit, too.
 
@Maurize It's misplaced..
 
Can't I just assert so without actually visiting the site?
 
user3119231
@RoelvanUden Can't figure out why.
 
user3119231
It is a relative design.
 
@Maurize Truth be told the orange '+' is the least of the problems :-)
 
user3119231
11:52 AM
@RoelvanUden why? :D
 
google has a new logo
and new favicon
 
Does there exists a function in lodash or underscore to extend an object from another object, but only with the keys that are in the original object?
 
@Maurize All the dynamic content and images (based on scrolling and whatnot) is waaaaaaay too slow on my mobile device. But, it is a Windows Phone device so who knows what Android/iOS does.
 
user3119231
@RoelvanUden thanks for the hint. I will reduce image size to improve performance.
 
user3119231
at first I need to fix this ugly button
 
11:54 AM
@Neoares Noticed that. Not a fan so far
 
{ timeout: 5000, debounce: 200 } // original
{ timeout: 2000, name: "Cats" } // new object
{ timeout: 2000, debounce: 200 } // result of "extending" original object with new object
 
@corvid I think not. Sounds like a very specific request. I'd extend and then filter the keys
 
Hm, don't people do something like that for configurations? For example:
 
Usually they just leave the extra keys there
 
Scheduler = {
  config: { timeout: 5000, debounce: 200 }
};

Scheduler.configure = function (conf) {
  check(conf, Object);
  _.extend(this.config, conf);
}
 
12:00 PM
hi
I need help with a JavaScript bubble up / bubble down sort.. if I am reinventing the wheel (or TRYING) could you share a known good src?
http://jsfiddle.net/obhLdq4v/
 
user3119231
@Jojo full code please. And choose jquery as framework
 
user3119231
wtf instead of edit deleted?
 
$(this).attr("id").replace("div", "") wat
 
@JoJo wat is that?
 
12:08 PM
not advanced enough.. any suggestions?
 
user3119231
hahahah :D let me see.
 
$(this).attr("id") is bad.
also, $(this).attr("data-contentid") is bad. Use $#data
next up, use console.log for debugging, not alerts.
 
user3119231
I thought in this case we can do it without jquery - Console doesn't say anything.
 
Lastly, I still have no f*ing idea what's it for
 
kk
 
user3119231
12:10 PM
He want to resort cells in a table(?)
 
@JoJo This doesn't do what I think you think it does
 
yes a RadListView
 
user3119231
Ah, now I get it.
 
user3119231
Can you put an example view in the html section on jsfiddle?
 
"ie 1 moved to 3 so deal with 2" -- do you mean e.g. (exampli gratia), not i.e. (id est)?
 
12:12 PM
also, as a general rule, anything considered to identify a component or instance in a program should never change even if you can change it.. html ids are no exception
 
i got it!
 
@BenFortune ty.. wow.. so silent..
very little code
 
user3119231
@BenFortune think he is a ecmascript sensei. >:)
 
12:14 PM
@JoJo do read the "characteristics" part. It's slow as hell.
 
ahh
I still want to make my home-made one work of course..
 
OK, the code is bad. while(swapped == true) -- really?
 
where is that part ?
 
@JanDvorak It is bad, but it gives you a general idea of a bubble sort
 
@KarelG in the second place you would expect a while
 
user3119231
12:16 PM
instead of acting like a half god and saying things like: "this is bad, this is wrong" tell a solution to improve the script.
 
just entered the room, it's from that link
i have learned my algorithms from Sedgewick book
 
@Maurize don't use bubble sort, use Array#sort
 
user3119231
excellent work.
 
Array sort makes sense ... hmmm
 
lol
 
user3119231
12:17 PM
^
 
@Maurize I would have advised that sooner but I wasn't sure if Jojo's code actually attempted sorting an array.
 
user3119231
Yeah, true. It was unclear, what the script is supposed to do.
 
Looking at it as an array is probably much easier than dealing with the idea of a bubble sort or reverse bubble sort..
 
O-o
 
Okay, now I'm lost
 
12:20 PM
well in my approach I being to specific is what I mean
 
but it IS close to working fyi
 
@KarelG Tin-foil hats everywhere
 
user3119231
what a great part: youtu.be/Vnoz5uBEWOA?t=3m3s
 
^-- don't unzip ur pants
 
user3119231
12:24 PM
I just mean the way she dance is awesome. It is not up to the music or her
 
best comment all year:
			// this is kinda bullshitty.
			// but it works.
			// are you starting to see a pattern here?
 
I've got one saying // TODO: Figure out why the hell this works
 
@BenFortune scariest comment ever
I take it that the programmer that wrote that wasn't the one who originally wrote the program
 
honestly, I have code I wrote I don't understand
 
12:30 PM
@Neil It's mine :(
 
@BenFortune Scary not for the comment but for the code it refers to
I don't envy you, Mr. BenFortune
 
user3119231
false == undefined    → false
false == null         → false
 
user3119231
u don't say
 
I had a bug, someone told me to do this, so I did that and it fixed it.
 
@Maurize a lot of points in there are moot or poor examples of why js is bad
 
12:32 PM
Don't know why, never had time to dig any deeper and have a look
 
user3119231
@rlemon the whole page sounds like, that he just searched for a reason to hate js
 
Lol, half of those are user-errors
 
yup
 
baz = 20; // Misspelled "bar" ("baz") is now a global variable.
 
shouldn't one be using === rather than using == ?
 
12:33 PM
or "I don't understand function scope, and you should hate it because I do"
 
@BenFortune It's relative I suppose
 
not to mention, the time the article was written, let was already proposed.
@AmoghTalpallikar yes, but pretty much everyone agrees == is a mistake. it is beating a dead horse now.
 
Maybe he just meant that that could genuinely create problems when normally you wouldn't be allowed to do that
 
I am tired of reading rants.
 
But really it is no different than allowing if (variable = true)
 
12:34 PM
They don't do any good.
 
some do.
but not many
 
Linting, that is all.
 
my sortOrder needs to be reset
back to the base sortID value and then incremented or decremented
 
But when it comes down to JS. Why rant, you know things there take time. Community process. Browser vendors then upgrades. We need to deal with it.
 
function foo() {
    return // Point of Insertion.
        {
            bar : "test"
        };
}
Who the fuck writes JavaScript like that?
 
12:36 PM
@AmoghTalpallikar nah, javascript needs a bit of an overhaul that would render it incompatible with previous versions
But they obviously don't and I completely am thankful for that
 
EcmaScript 6 is that overhaul right?
but then we also get 6>5 compilers
 
no, it is still compatible with ecmascript 5
to my knowledge
 
Any Angular users here?
 
I think most of the regulars used angular at one point or another
 
@Neil "don't break the web"
 
12:37 PM
They are doing some serious overhaul
 
es6 is a huge step forward and in a lot of places is not compatible.
es7 will be even different.
but we must always still keep the mantra "don't break the web"
so we will have backwards compat for a LONG time
 
So.. this class is ES 6 with inheritance still internally uses prototype chaining right ?
 
wouldn't want to break the geocities pages made in 1995 ;)
 
I wonder how much chaos would ensue if the developers of the world stopped backwards compatibility and everyone had to upgrade.
 
with text flash and annoying dancing baby gifs
@BenFortune Lots
Businesses would fail.. economy would take a significant hit across the world
You'd be surprised
 
12:40 PM
But it would be better in the end!
 
Just got to get past the dark ages phase ;)
 
FF now supports Chrome extensions. MS Edge supports is. Opera is essentially Chrome. We are seeing some pattern here.
 
edge supports shit all atm
 
I was talking about this the other day with my colleague.. Python completely redid their language in 3.3.. not backwards compatible with 2.7 and nobody uses it practically
 
@AmoghTalpallikar Not quite
 
12:41 PM
@BenFortune Not quite as in ?
for what?
 
you can't just change how a language works without a contingency plan
 
Extensions
 
my function body is 112 lines long. 78 of those lines are comments explaining why the other 34 lines aren't that bad.
 
12:43 PM
Just curious, I saw this the other day.. are any of you experts making use of it? modernizr.com
 
Happy Birthday @AaditMShah!
9
 
> Porting add-ons to and from other browsers should be easier.
Doesn't mean it's directly compatibile
 
Is there any more efficient way to decrement a field by the the documents value other than finding the document, THEN updating it?
 
Firefox to Support Chrome Extensions
 
@AmoghTalpallikar aye,.. FireFox's death gasp
 
12:44 PM
extensions are lame.
no one actually uses them
 
ad blockers ?
 
ad blockers are super lame
don't get me started on ad blockers.
 
in short, you are not entitled to content. Ads pay to keep free content free.
blocking them is lame because you are taking money from the pocket of the person making the content you are enjoying.
 
Oh.. ethically
@JoJo: I respect Mozilla for what they do but they are lagging behind.
They tried doing too many thing at once. FF OS :/
 
12:47 PM
@rlemon Except ads that ruin your life
Looking at you, pre-roll ads
"Oh, you logged in? Here, watch 3 minutes of ads again"
 
so you feel entitled to the sites contents without following their revenue model?
I agree it is a shitty model, but you don't get to decide on it. you only decide to go there or not
 
Then block those who run adblock, many sites do already
 
I don't make money on the web.
 
@rlemon You are saying as if you have never used pirated content ever in your life.
 
so I don't feel it.
@AmoghTalpallikar I am a developer, I support other developers
 
12:49 PM
!!s/Then block/Then they should block/
 
@ivarni Many video players do that. you stop ads. they stop video.
 
why is @Loktar never around for this?
 
"I am a developer, I support other developers" - Now that you say that makes me think about it.
 
My adblocker is off by default, but I have it turned on for certain sites
 
@rlemon That's the thing. I Don't go there without adblock
 
12:51 PM
You bet your ass I'm adding you to the blacklist if you show a fullscreen 3 minute ad
 
Has anyone visited Forbes?
 
Looking at you Gizmodo, you bag of dicks
 
Sometimes I stumble in there from twitter on my phone, see a fullscreen ad and hit back
 
btw guys what tech blogs do you follow ?
 
12:53 PM
@AmoghTalpallikar twitter
 
Medium will be in for a shock
 
I let other people do the screening and rely on them to feed me links
 
@ivarni: When I joined twitter I followed bucket loads of celebs and anyones.
and now my feed is shit
 
So unfollow them
 
i don't use adblock either ... if these ads (ofc some websites are exaggerating with that ) annoys you, then you don't deserve to enjoy the "free" internet
 
12:55 PM
I use edge a lot, so I don't use adblock by default
 
@KarelG Your internet is free? :P
 
"free" dude .... "free"
 
I know I know
 
But going on twitch without adblock is bleh. I do subscribe to the people I watch though, so Idon't get ads from them
 
free as in freedom or free as in free chocolates ?
 
12:56 PM
@AmoghTalpallikar Free internet
 
I don't like ads, but I don't like paywalls even worse. so I accept the ads as a consequence of how things work.
with that said, I would gladly pay a monthly subscription price to remove youtube ads.
a portion of my monthly payment gets split to the videos I watched or something
 
user406009
@rlemon You could just install an adblocker.
 
Google music half does that
 
user406009
Then they all go away.
 
@Lalaland gtfo
 
12:58 PM
@rlemon Yeah that's what twitch does. Monthly sub for all ads removed, or you can sub to channels for less for ads removed from those channels
 
@BenFortune yea, I love google music.
 
@rlemon Their android app is fucking dire, I've moved to spotify now
 
really? do you pay the $9/mo sub?
 
I did yeah, since it came out
 
because that allows you to dl all your music for offline play
 
12:59 PM
i ike the android app but i'm a very casual user
 
I listen to the artist radios mostly
 
so I just dl everything I listen too and listen on a third party player
that was the selling point for me.
 
Their app would crash at least 5 times on my morning travel
Every single day
 
download for offline play
I used the app while working out
never crashed for me.
 
Like I said, I use the artist radios. I'm always looking for new bands/music
Having to download every time I find something new just seems a pain
Spotify is just as nice though
 
1:01 PM
yea I don't change playlists too often.
so for me it is perfect
 
@BenFortune you're a hero for those starters in music business
it's difficult to sell an album if you have to compete against known groups/singers. Spotify encourages new bands/singers while that new platform (that one from Jay Z) doesn't ...
 
Unless I absolutely love something, I love listening to something new
 
tidaly ?
 
Meg Myers makes me moist
 
you kids and your rock music
 
1:04 PM
ah it's "Tidal" ...
 
@KarelG Overpriced tripe
Especially if you're listening on a phone without a dedicated amp
 
Has anyone used rebase option with git ?
once I have pushed to remote, can I squash that commit to new one and push again
 
yea, but i'd have to re-read the docs to rebase again. it's been a while
ideally you do your squashing before you push to a remote.
 
Oh.. I just pushed something.
Now I realized I had to make a small change :/
 
check your pants
 
1:06 PM
lol
 
just noticed that google has changed its logo o.O
// 2 days of internet = no good idea
 
@KarelG which country you are from
 
Death to serif!
 
@KarelG yea it is ugly af
@Sajeetharan based on his picture
Belgium
 
@Sajeetharan my country is Absurdistan : Belgium
you can find many absurd things here :)
 
1:11 PM
@rlemon it's because we are used with the old logo
it is actually nice
 
@Sajeetharan no, it is because I think it is ugly.
 
even the paging with goooooooooooooooogle
 
good thing subjectivity exists amirite?
 
@rlemon why do you say it is ugly? just look at the history of google logo, it has evolved well
 
because I do not find the multi colored G attractive as a logo
 
1:12 PM
whenever its ugly or not is subjective ... but i have a question about the use of rainbow color to fill the G
not a modern design
 
where is the multi colored? i can see only blue
oh cool, i just noticed
 
!!finish work before company goes under or finish TD game
She ded
 
!!info
ugh.
the chat is consistently locking on the refresh page
:/
 
Anything in the console?
 
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data


...al:5e3,init:function(e){function t(e){e=JSON.parse(e),bot.log(e),n.openSocket(e....
@Zirak
 
1:16 PM
@BenFortune : TD ?
 
Can't log into SO from edge, wtf
 
user3119231
maybe a form problem?
 
user3119231
It worked for me, btw.
 
Eh, can't login from chrome either
 
user3119231
so it is so problem.
 
user3119231
1:19 PM
You figured it out yourself, concratulations.
 
WebSocket connection to 'ws://qa.sockets.stackexchange.com/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
 
perhaps you're on a blacklist :p
 
user3119231
You got banned, that's it.
 
Oh, works now
I think their servers went down
 
In this code, properties of Employee are not inherited but created as a copy in instance of Manager. am I correct? Because we say Employee.call(this);
function Manager() {
  Employee.call(this);
  this.reports = [];
}
 
1:25 PM
@BenFortune check network logs
I see a block of xhr in between two websocket events
so maybe the ws server went down?
 
It's all fine for me now
 
user3119231
Maybe a timeout from serverside.
 
Actually, main WS server is down but chat is still up
 
We ran into a keepalived issue serving some sites - we are investigating now.
 
Well, there it is
 
1:28 PM
That was a quick update
 
!!youtube lil dicky white dude
 
user3119231
 
user3119231
1:32 PM
Seems like shit is down, huh?
 
> Image server
 
user3119231
Better?
 
damn, wrong spinner.
 
MEM
If we remove the focus on a parent element, will all his children loose focus to?
not sure how to check if the children had or not had loose focus. hence, the question.
 
user3119231
focus isn't accessing child.
 
1:38 PM
hi guys pouchdb or lokijs is good for browser caching?
 
MEM
Maurize: focus isn't accessing child? I don't understand. What do you mean? ty.
 
user3119231
 
user3119231
Now you must understand.
 
@MadaraUchiha happy happy birthday anime boy! :-P :D
 
just post it here cause the grill
 
1:41 PM
@Maurize copy pasta from w3schools ? Oh come on... you are better than them
 
user3119231
@KarelG Calm your butt. Is already edited :D
 
just don't visit that site anymore :)
 
@Neoares Is that oag?
 
@Maurize The damage is already done
 
stop talkling to the tiny-avatar people
 
1:42 PM
@Cereal is oag that maniac girl?
 
user3119231
@BenFortune let me fix it with a nice picture
 
user3119231
 
New Thimble and bramble Editors from mozilla
 
@laina622, Texas
AKA Overly Attached Girlfriend • Instagram: lainaOAG • Snapchat: laina622
7.3k tweets, 239k followers, following 676 users
her
 
1:43 PM
What the fuck it inlines twitter profiles
 
her
 
@Neoares Overly-attached girlfriend
 
o.O
I don't know
 
@Cereal The fuck
 
1:46 PM
dat low tolerance
 
^-- get VLC bro
 
@Cereal well .. shouldn't locker rooms be separated based on sex ... as in: what inventory the person has?
 
@Cereal that's not Canada for sure
 
@tereško today, i saw a SO answer which uses mysql functions :P
 
1:55 PM
@BenFortune they follow foxnews on FB
did you expect intelligent discussion?
 
@Cereal It does not matter whether you identify as little purple unicorn or not. If you have come equipped with a dick, you must go and dress in a room with "boy" on it.
 
I see mysql() functions. Really ? — KarelG 35 mins ago
 
@KarelG that's what you see in majority of answers still
 
yeah... sad
 
people use w3schools to "learn"
 
1:56 PM
@tereško But W3Schools uses MYSQLi
 
@tereško what about post-op
 
Actually they use everything but mysql_*
 
the comment next to mine says that he learned that by his uni
i was like "wtf ??"
 
@rlemon do you have the necessary equipment?
that's the only criteria that should matter
it's the pragmatic approach
 
@tereško so pre-op, nope. post-op, okay. ??
 

« first day (1782 days earlier)      last day (3161 days later) »