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

5:00 PM
phrasing
 
Oh no, the phrasing is correct.
Cereal bent us both over and made us his bitches.
 
@Trasiva used a full tub of astroglide and still got friction burn
 
@Cereal Dude, I'm still shitting pancakes. It was like getting fingered by an elephant.
You just had to go and crack the table with your e-peen.
 
I'm willing to try 3v1
 
I need help! Please help me!
http://stackoverflow.com/questions/34795363/in-angular-2-router-isactiveroute-not-working-for-the-first-time
 
5:04 PM
@PeterTang It sounds like your life is in danger, perhaps you should call someone?
@PeterTang SO is also not your personal debugger
 
www.getmehelp.com
 
oh, really?
I am not a native English speaker
 
@ton.yeung ABC? All 'bout Caring?
 
I don't know why you say that.
Firstly, I think SO is where we share knowledge and help each other.
I've just want to find someone who can help.
And I don't talk to you who are not willing to help. Thanks.
So never mind. I won't do that again in this room
 
@PeterTang You came in here screaming about how you need help. You posted code, didn't explain what you tried to do to fix it (which you clearly didn't), so don't expect us to just bend over backwards.
 
5:12 PM
I've tried and I couldn't fix
 
Show that in your question.
 
Show the errors that are occurring, explain what is happening and what you want to happen instead. do some debugging.
As it stands now your question is off topic.
 
> I use router.isActiveRoute to determine which routes is active. But It doesn't work for the first time. Please tell me why and how to fix it?
 
sorry my English is not good
I've just editted
 
5:24 PM
May I know why this simple code won't work?
 
@AvinashRaj because you're not including jquery
 
How to include jquery on that page?
 
@AvinashRaj Click the gear next to 'Javascript'.
 
On the previous design, it's on top-left.
@Waxi u mean settings?
 
crl
!!> var doge=(a,b,c)=>--a--b--c--; doge(,'such','wow')
 
5:28 PM
@crl "SyntaxError: expected expression, got ','"
 
crl
ah too bad it doesn't work for skipping an arg..
too lazy to type null
 
@AvinashRaj No, in the js quadrant, hit the gear button that says Javascript, it's in the top right of the box.
 
ya, got it..
 
Hello, I need some help (I will give upvote )
 
1 message moved to Trash can
@Bravo Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
5:36 PM
oh ok thanks, I will try
 
Urge to smash my computer is rising. NOW my included Javascript doesn't want to cooperate and wants to say that it doesn't exist.
 
boolean isFounded(int[] inputData, int x)
{
    if(inputData[7] == x)
    {
        return true;
    }

    return false;
}

the complexity is O(1) or O(7) ? thank you
 
Why do you have types in your code?
 
Oh sorry just ignore that.. :D
 
@Bravo O(1) and O(7) are identical. I guess the answer is "yes".
 
5:39 PM
so they are just O(constanta),?
 
yep
 
sorry I'm confusing..
but is it even correct if I said O(7)?
 
not technically wrong, but O(1) is convention
 
@Bravo java?
 
5:40 PM
Navajo, bro
 
no, just ignore the type
 
but for this case, O(1) is the correct answer
 
Have lava? bravo
 
Ok thanks @KendallFrey @DiegoFaria
 
5:41 PM
@KendallFrey is having a stroke, call the Bondulance
 
no matter what is the input, the program will run in the same time
 
-1
A: How to call this promise chain right

oshnapsIf you need stepOne to happen before stepTwo does, you should do something like: stepOne.then(function () { console.log("[SUCCESS] Step 1"); }).then(function() { return stepTwo; }).then(function () { console.log("[Success] Step 2"); });

how did that get accepted (cc @MadaraUchiha you have an answer there)
 
not literally same time, but practically
 
@SterlingArcher Never jovial, bruva
 
STAY WITH ME KENDOLL
 
5:42 PM
avast
 
@BenjaminGruenbaum ew
avast is a shitty anti-virus
 
Thanks guys, votes shipped..
bye.
 
@SterlingArcher The distance between your mom's legs is avast one
 
Speaking of shipped, I still haven't gotten my hacktoberfest t-shirt
 
@Cereal 6-8 weeks
 
5:44 PM
It's literally been over a year
 
!!s/weeks/parsecs/
 
@SterlingArcher @Cereal 6-8 parsecs (source)
 
@BenjaminGruenbaum Downvote and vote to delete
I'm not in a position to delete it myself (both because mods don't deal with incorrect answers, and because I have an answer there myself)
 
@MadaraUchiha you don't say...
 
I already have a downvote on that.
 
5:54 PM
@MadaraUchiha of course you're not in a position to delete it, I was bringing it to the room's attention for discussion.
And pinging you to participate since you are a relevant party.
I didn't expect you to delete "competing" answers.
 
@BenjaminGruenbaum Yeah, I know.
Normally I'd vote to delete but...
Also, don't "you don't say" me if you don't vote to delete like I said :P
 
@MadaraUchiha I downvoted, votes for delete aren't for answers that are not factually correct.
 
5:57 PM
Am I missing something with writing a sort function for dropboxes based on the text? jsfiddle.net/Trasiva/023ooLrb
 
@rlemon super dark.
 
@BenjaminGruenbaum I think there's a special case to be had here if the incorrect answer is accepted.
 
@Abhishrek what are you doing?
 
Normally, an incorrect answer can be downvoted to oblivion and outvoted by the better answers
But when it's the accepted one, it still gains the most visibility, even when it's got -1000
 
@AwalGarg writing a shim for nodes 'http' module
 
5:58 PM
 
that allows you to use any tcp module module.
 
@rlemon Nice :D
 
@Abhishrek come to miaou, I need to talk code stuff and hangouts/skype ain't that place.
 
@rlemon Abhishrek checking if he has any porn tabs open on his second monitor
 
already testing it to run in runtime, duktape.
 
5:59 PM
 
@Abhishrek dystroy.org/miaou/346 this
 
@rlemon jesus
 
Oh man, I didn't know Snape died :(
 
AGE
question: how do I request a question, which was closed and flagged as duplicate, to be reopened if I believe I have a good answer?
yes RIP Snape
 
6:01 PM
@AGE you don't
if the question was a dupe, add your answer to the linked question?
 
@AGE bring it up on Meta.StackOverflow. However, just because you have an answer doesn't mean the question will be re-opened
 
AGE
is it impossible? I had fun coming up with a very solid answer until I refreshed and saw it had been flagged as a duplicate
ok ty
 
so add your answer to the question it is a duplicate of
 
AGE
6:03 PM
@rlemon I like that
 
@MadaraUchiha I disagree, I downvote when I feel the answer is not helpful. Deleting is for harmful content. A -100 accepted answer is a warning sign. MAybe I'm wrong.
 
@BenjaminGruenbaum From speaking to people who browse Stack Overflow as casuals (i.e. not participators), they almost never look at the score if there's an accept mark.
They didn't know what the accept mark meant until I told them.
 
var element = '.unselected';
var list = $(element);
$(list).html($(element + ' option').sort(function(x, y) {
  return $(x).text() < $(y).text ? -1 : 1;
}))
$(list).selectedIndex = -1;
 
It's not particularly obvious to people who haven't actively used the site.
 
Why would this not properly sort a dropdown list?
 
6:04 PM
Therefore, an incorrect accepted answer is "harmful"
 
$(list).html($(element + ' option').sort(
the fuck?
$(list).selectedIndex = -1;
 
!!jquery sort
 
@Trasiva .sort() isn't a thing in jQuery...
Why did you expect it to work?
 
@Trasiva that's terrible :D
 
6:06 PM
^ lol
 
(the code that does $(element + ' option') part, not the sorting, the sorting can be easily fixed @Trasiva )
 
@ton.yeung I've considered using a razor when using jQuery
 
[...select.options].sort((a,b)=>a.textContent < b.textContent);
 
@Trasiva Yeah, don't use that site anymore....
 
6:06 PM
@ton.yeung hah I guess both actually but meant for you initially
 
I learned when interviewing last week about String.prototype.localeCompare was impressed.
 
I'm still trying to find more time to learn jQuery, but these guys just don't give me any learning time, lol.
 
@Trasiva Don't learn jQuery.
 
that tutorial is horrid
 
Learn JavaScript and DOM
When you have a good, solid grasp on both, jQuery should come naturally.
 
6:07 PM
@ton.yeung that's fine if all your machines are high end and no one ever uses mobile or an old browser - but client side rendering is bad for SEO and for old machines.
 
@ton.yeung I agree, my comment was referencing a real razor a metallic object to cut my wrists with
 
jQuery is just a library that hides away the DOM, and makes it prettier
You don't even know "prettier than what?"
 
@BenjaminGruenbaum the SEO issue is frustrating
 
For most apps today, in at least 80% of the cases, you don't need jQuery at all.
 
Can't believe it's still an issue nowadays.
 
6:09 PM
@Loktar It's not just the SEO for me.
Server should serve, and client should behave as a client.
Unneeded logic on the client-side === bad UX.
 
@MadaraUchiha right, who is saying to do that though, thats silly
 
For most of everything I see today, React is overkill, and Angular is overkill, and frankly, even jQuery is overkill.
 
@ton.yeung it shouldn't have been an issue since like 2013 when Google said they supposedly index all JS content.
 
@ton.yeung shouldn't is the key word here.
 
!!s/React .+jQuery/JavaScript/ 28130849
 
6:11 PM
@MadaraUchiha anything but full page reloads unless you need high performance is "overkill" :p
 
@AwalGarg For most of everything I see today, JavaScript is overkill. (source)
 
Sites that serve static content empirically do better in search results.
@Loktar Use the cache, full page reloads can and should take under 50ms
 
@ton.yeung oh really :D
@ton.yeung static content solves the problem.
Our website actually works without JS :D
 
@BenjaminGruenbaum Works? Or is readable?
All interactions work?
 
as it should, or you should strive to.
 
6:12 PM
(Or most)
 
www.tipranks.com , seriously, run it with javascript disabled. It's pretty reasonable. (Good work by @Mosho - in case you're wondering)
 
@ton.yeung damn really?
 
@MadaraUchiha links work, search will work on the next version.
 
@BenjaminGruenbaum Nice, you're an angel among shit demons.
 
@MadaraUchiha haha
 
6:12 PM
@ton.yeung even more reason for them to "work" without JS enabled right?
 
@BenjaminGruenbaum Doesn't work
 
@BenjaminGruenbaum I turn off JavaScript for most pages on my mobile device.
 
you are the 2%!
 
I registered a 60% (!!!) improvement in battery life.
 
@BenjaminGruenbaum It is taking a shit load of time to even load. With JS disabled, I expect most pages to load under 5 seconds even on my shit connection.
 
6:14 PM
@Loktar I'm forced to.
 
 
Mobile ad blocking isn't as mature as on desktop (even though I have a hosts file on my phone)
And even with ads mostly blocked, I still get tons of crapware I don't need intended for strong desktops.
 
Only content I block by default are plugins, like Flash
have to click to enable
 
@Loktar I have a hosts file that's updated with git with a cron from here github.com/StevenBlack/hosts
 
@MadaraUchiha oh interesting
 
6:17 PM
nerds
 
I would only block known malware or phishing sites personally
 
Also, I manually add hosts that annoy me if they aren't blocked.
 
but that is a pretty cool/easy idea
stars
 
Works wonderfully, and unlike ABP and other extensions, it can't be cheated, it can't be bribed, and it doesn't slow my browsing down.
Seriously, ABP is horrible. Don't use ABP.
 
I don't use any of them anyway :p
 
6:18 PM
@ton.yeung I have the same setup on windows
With git and the scheduled tasks.
@ton.yeung hosts
 
its so simple though
 
Just need to make sure to run git as an admin.
@ton.yeung It's incredibly simple and safe.
Especially because git will warn you about conflicts.
 
host file is even more basic than a config.sys from the old days :p
 
@BenjaminGruenbaum concur with copy (now that it has loaded). doesn't work at all
 
6:19 PM
Could always manually update it
 
Right, dinner time.
 
@MadaraUchiha Sure it can be cheated. I thought it causes problems with some websites that use google analytics api, for example
 
see ya @MadaraUchiha
 
@BenjaminGruenbaum did you read what I wrote on the ES room?
 
It seems to me that popups have evolved recently, I've noticed some sites opening the popup in the original tab, and opening the link you clicked in a new one.
 
6:19 PM
@MadaraUchiha Also use ublock
 
@copy On those sites, you just wouldn't have GA api.
@copy ublock is the only one of them that's currently worth anything
ublock origin (not ublock)
 
@KendallFrey one of the sites I frequent does that
 
@MadaraUchiha Yep
 
It's essentially a hosts file, only it also catches other patterns in the URL.
 
@rlemon Uhhh, that doesn't work, but I'm also reading up. I think I got stupid and greedy.
 
6:20 PM
@Trasiva sure it works.
 
@MadaraUchiha Yep, and then the other JS doesn't run
 
sort algo's are probably not what you want
 
@rlemon Nevermind, I'm dumb.
 
@AwalGarg That's an ongoing Azure problem (cc @copy ) from the last 2 days.
 
@rlemon Well, good it's not just me then
 
6:20 PM
but you can change those
 
ABP works by applying 20k CSS styles on the page, out of which, maybe 5 will be matched, and unmatched CSS files are the most expensive ones (because they need to go over all of the DOM).
 
crl
@rlemon b.textContent - a.textContent
hmm wait
 
ABP will slow the page down by 0.5 seconds on a very strong computer, and 1s or more on normal computers.
 
@crl really doesn't offer much more
 
@rlemon Yea, gives me something to work with, thanks. We can have anywhere from two values to almost a thousand plus....sooooo yea.
 
6:21 PM
if you wanna get serious return -1/0/1
 
Not to mention, ABP has a bribe system that allows companies to buy their way into a whitelist
 
Oh wait, we turned it off since we swapped to a version to test something (cc @MadaraUchiha , @copy etc)
 
@MadaraUchiha It has been improved recently though (by Firefox)
 
@Trasiva so as little work as possible in the sort method then
DO NOT introduce jQuery there
 
(Source, I'm in the ad tech, figure it out)
 
6:21 PM
@rlemon Yea, that's what I'm aiming for
 
especially re-wrapping elements
 
preprod2.tipranks.com would work (cc @copy @MadaraUchiha @AwalGarg )
 
crl
@rlemon it's Kendall that always bark at me that sort expect something that returns positive or negative nulber
*numbers
 
Although we still serve static files very slowly because Azure logic.
6s for all our JS
 
Okay dumb question. If you have an object such as obj = { thing: undefined }, and you use if (thing), obj['thing'] should be falsey, right?
 
6:22 PM
46 secs ago, by rlemon
if you wanna get serious return -1/0/1
@corvid no
 
crl
ok :)
 
objects are not falsey
 
@rlemon Sorry, corrected that
 
@BenjaminGruenbaum is there a secret cheat code to search for something? :-P
 
@ton.yeung ?
@AwalGarg search works in staging without JS, it's not like it's our top priority or anything :P
 
6:24 PM
@ton.yeung Something like: let myObject = { 'thing': undefined }
 
@rlemon So is the [...object] a javascript thing I haven't come across? Or a Babel thing?
 
yeah, I just mistyped it. obj['thing']
 
@BenjaminGruenbaum also, so only the landing page works without JS XD
 
@AwalGarg and the Top25 page and the pages it refers to, and the glossary, pretty much everything that's React.
 
@Trasiva ... is the spread operator
look it up
in that case, I'm using it in place of Array.from()
 
6:29 PM
Oh I found the problem, this is kind of strange... group is a property on child of an object, but the parent object has a group() function
 
@rlemon Yea, I wasn't familiar with spreaders, looks like an ES6 thing?
 
@Trasiva yes.
 
no, it is a es2015 thing
#thatGuy
 
crl
it's a last year thing
 
@rlemon Well, either the spreader or Array.from() work in IE, so I'll be doing more homework.
 
6:33 PM
@Trasiva [].slice.call(nodeList)
 
@rlemon Hah, I just found that.
 
hi
 
@Amete Welcome to the JavaScript chat! Please review the room pseudo-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.
 
howdy
 
I think the biggest problem with this job is there's no real downtime for overall job growth. I probably just need to spend more time reading up at home and not having @Cereal kicking my ass.
@ton.yeung No, we were playing SC II last night.
@ton.yeung I'm not aware of it either.
 
6:36 PM
The Mythical Man-Month: Essays on Software Engineering is a book on software engineering and project management by Fred Brooks, whose central theme is that "adding manpower to a late software project makes it later". This idea is known as Brooks' law, and is presented along with the second-system effect and advocacy of prototyping. Brooks' observations are based on his experiences at IBM while managing the development of OS/360. He had added more programmers to a project falling behind schedule, a decision that he would later conclude had, counter-intuitively, delayed the project even further....
 
@ton.yeung In the military we just found courses we wanted to take that were career related and the government paid for them, haha.
 
Anyone used docker ?
 
@ton.yeung A lot of those jobs are outsourced in all branches, yea. The joke for devs in the Air Force was that you did four, waited a month, and came back to the same job as a contractor with an extra zero on your paycheck.
 
and now ?
full pants ? or half ?
Why would a guy get three PhDs ?
He can go for a Post Doc
 
@CapricaSix not a bad book at all
 
6:41 PM
http://www.commitstrip.com/en/2016/01/14/a-story-about-timestamp-and-timezone/
CommitStrip
A story about timestamp and timezone
CommitStrip
1452796443
 
The Multidimensional guy
 
@ton.yeung sweet, thanks.
 
so.. uhh .. why is make install building the system again?
... that took like 3 hours the first time
fuuuuuu
 
Well I have a very stupid question. If I build/run a docker image in my VM is that image always synced with the actual image on docker hub ? or my data inside that image is private unless I intentionally push the image ?
is it even worth to ask such simple thing ?
 
6:45 PM
in SO or serverfault ?
:(
 
@ton.yeung bullshit
there are plenty of stupid questions
@ton.yeung because you touch yourself at night
 
@ton.yeung because you touch yourself at night
 
@ton.yeung that's just by definition
 
> Thank you for teaching me the value of native JavaScript.
@JohnResig lol
 
@SterlingArcher all natives have value
 
6:48 PM
@rlemon >=|
 
@BenjaminGruenbaum gosh why doesn't it die
 
@ton.yeung you can expand that to whatever you want - it's just a convention
 
@ton.yeung When the sun goes behind the clouds.. what does it do? does it smile? does it show its dick? because if the suns showing his dick that's something I'm trying to see.
 
Umm, excuse me, the Sun is female
 
@rlemon How's this look? jsfiddle.net/Trasiva/023ooLrb/2
It does work.
 
6:59 PM
it loses the first option that you first stripped
 

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