« first day (1776 days earlier)      last day (3173 days later) » 

5:00 PM
I had an interview with XYZ company they asked me Intersection using single loop to implement
Gotta go....Interview scheduled tomorrow.
 
@TributetoAPJKalamSir B.Tech?
 
BE IT @AwalGarg
 
DO IT
 
Bollywood?
 
JUST DO IT
 
5:03 PM
@TributetoAPJKalamSir oh, from?
 
YESTERDAY YOU SAID TOMORROW
 
@Nick actually he said tomorrow today
 
touche'
 
@Nick last face to face round scheduled on 28 Aug i.e tomorrow. IST
 
!!s/e'/é/
 
5:04 PM
@rlemon touché (source)
 
I don't have a fancy keyboard, leave me alone :(
 
@Nick alt + 0223
dude, commman
 
only on windows
 
@AwalGarg fair enough
 
5:06 PM
:(
 
Opps it works like charm
¬Z
 
i dislike JIRA
what a over complex joke
 
So do most people
 
On ubuntu, we have (surprisingly) something higher level. Compose key -> e+' = é
 
@TributetoAPJKalamSir I have too many 2's and too few 3's
 
5:09 PM
Lol
Closures,,,,Prototype..Object...AJAX....All Done...Ready for the interview
 
> problem with games is that they are only good if multiplayer. (news.ycombinator.com/item?id=10123922)
how intelligent
 
some of my favourite games are offline only
 
@rlemon Like stroke the badger?
 
pokemon yellow dude
 
pokemon yellow was my only gameboy game for a couple of years.
 
5:13 PM
@rlemon you sound like a flash games fan
 
I never did beat it... I get bored too easily
 
@AwalGarg some of them, yea
 
APJ Kalam was an interesting man
 
Sonny is fucking AMAZING
@FlorianMargaine dat hair doe
 
5:13 PM
@rlemon nice. I have been one for a while.
 
Prince....Dev...
 
@AwalGarg check out Sonny and Sonny 2 on Kongregate
awsm sauce
 
@rlemon I DON'T WANT TO GET BACK THAT ADDICTION
sigh
 
how come if I do this in the console:
window.onerror = function(e) {
  alert(e.lineNumber);
  alert(e.lineno);
};

and then
throw "t"

I don't get a alert?
 
@SuperUberDuper "t" is not an error, for one
 
5:16 PM
what about when I run

wkebweiufuwef
I get undefined error but not alert\
 
that's a parse error, not runtime
 
@AwalGarg no it isn't
but you can throw arbitrary strings
 
yeah you can, but error handlers don't detect it always.
 
throw "fuck this shit" is perfectly valid
 
how can I get a runtime error from the console?
 
5:17 PM
Because spec "says" it is undefined behavior
 
ohhh he's catching the errors
I need to start reading the code before commenting on it
:/
 
:D
 
Speaking of javascript method names that are terrible: developer.mozilla.org/en-US/docs/Web/API/Element/closest
 
can I get some help with this.. stackoverflow.com/questions/32218365/…
 
@SuperUberDuper first of all, code you run in console is not run in the window scope (not in the chrome console anyways). Second, window.onerror is virtually useless
 
5:21 PM
I know but I just need a line number, I have about 30 scripts and all I have to debug this ie8 error is an alert that says "stack overflow at line 0"
 
@feners you wait a decent amount of time, so I dont' really care, but I am kinda sad for you that you've been at this since Tuesday and asked at least 7 times in here without getting the answer.
 
Hrmph... I got a problem. Sometimes it seems like things are writing to a socket before the socket is "flushed" so they come out on the same line, is there a solution to this?
 
I don't know Angular, so I cannot help. Just an observation.
 
i also embered that onerror function to one script but no luck
whats the best way to tackle a massive corporate site with ie8 error:
stack overflow at line 0
 
@SuperUberDuper first go into development-in-production mode, remove all cruft, try to isolate the error to as less code as possible. Then show us that code.
 
5:24 PM
@feners sources expects Type: Array or String or Function( Object request, Function response( Object data ) )
however you are passing it a promise
that is the problem
 
2015 brings so many things to linux. Great year.
 
@feners hello?
did you post and run away?
rude.
you don't understand what the point of jsonp is
  var wikiService = {
    get: function(name) {
      return $http.jsonp('http://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&gsrsearch=' + name.name.toLowerCase() + '&callback=JSON_CALLBACK');
    }
  };
you're returning the promise the method returns.
you are not getting any data like this. you need to have a callback handle it
 
Will .split(/(:|\r|\n)/) split on ALL of those tokens?
 
I dumb... instead of adding my find[All] methods to document, documentfragment, and element, I can just add them to Node, and they all inherit from it. durr.
 
5:36 PM
BWAHAHAHA
@Loktar I wanna se Jacob do this
I can't stop watching it
 
@Nick You very dumb.
 
'err day
 
Hi. I have an array of array of integers... How to get a list of distinct numbers...?
 
Look at jQuery .unique().
 
@rlemon hilarious :D
 
5:53 PM
@deostroll so you have nested arrays?
[[1,2,3],[4,5,6],[1,2,3]] and you want [1,2,3,4,5,6] ??
var filtered = [];
filtered = filtered.concat.apply(filtered, inputArray).filter((el,i,arr) => {
  return arr.indexOf(el) === i;
});
something like that
 
Accidentally quadratic
 
Is element.children the only property/method that returns an HTMLCollection?
nope, some getElementsBy return one
 
<event>.path return them too
 
I really wish we didn't have this legacy htmlcollection garbage
 
6:14 PM
I hate long tests
time based test, takes ten minutes per run
:/
super annoying / boring
 
!!xkcd Code is Compiling
 
my lib is basically turning into a DOM modernization polyfill for IE8+
 
!!nudge 10 check test results
 
@rlemon Nudge #1 registered.
 
getDay !== getDate and there goes an hour of debugging
 
His is a little more involved than I'd ever be interested in going
 
@SomeKittens That....ow. Dude.
 
curious, why can't you short circuit a return?
 
@rlemon nudge check test results
 
6:29 PM
Anyone know of a way to simulate running a webpage as a machine with lower specs?
(Other than "use IE")
 
@Retsam Use Netscape
 
@Retsam It's not like it would be an expensive test rig
 
@Retsam yea, buy a rpi
or setup a vm
and try to limit it somehow
 
I might try the VM thing; I'm honestly just trying to track down why a test case sporatically fails on builds when it never fails on my local machine...
 
user1596138
@Retsam you could run your browser on only 1 core
 
user1596138
6:34 PM
 
user1596138
Right click -> Set Affinity
 
user1596138
But Chrome runs like a million separate threads haha maybe you can do it in FF or something with less? I wouldn't know
 
I'm on OSX so I don't know if there's an equivalent to that...
 
You can limit cpu usage for a process (at least on Linux)
 
user1596138
 
user1596138
6:37 PM
^ This is for linux maybe you can compile it for OSX
 
user1596138
7
A: Can I manually limit the %CPU used by a process?

farazcputhrottle is the tool you need. You can install it with Homebrew. You can monitor a series of processes by name by running the Bash script below. I'm not quite sure how to turn this into a login item since cputhrottle requires superuser permissions. Run it as a script, in an Automator workflow...

 
Yeah, I just saw that answer; thanks
I'll see how that goes...
If I suddenly drop out of this room in five minutes or so, assume it went badly.
 
user1596138
Idk how well any of these will simulate a "slow machine" though, probably just make it lag
 
yes > /dev/null & yes > /dev/null & yes > /dev/null & yes > /dev/null & ................
just load up your cpu :D
 
user1596138
^ AND set the browser to the lowest priority maybe...
 
user1596138
6:44 PM
I imagine the VM route would be more effective
 
I'll just launch a few instances of intellij and run the test again...
 
yes is a cpu intensive application that just prints 'yes' over and over very fast to load up the cpu
if you spawn a few of them you can eat up your cpu easily
 
polyfilling classList is a pin in the arse
yes... a pin...
 
Yeah, I know it's there
 
Okay guys. I wrote something a year ago, that now does not work in firefox only
Does anyone have any idea what could possibly be causing this error
_onSubmitComplete = function(response) {
        $("#alert-container").empty();
        console.log("done", response);
        if (response.first().isNumeric()) {
            document.getElementById("real-order-id").value = response.first();
            return document.getElementById("order-entry-form").submit()
        } else {
            NProgress.done();
            _displayErrors(response);
            return JL.scrollToTop()
        }
    };
This is the only occurance of first
 
@rlemon what yeast do you suggest?
 
@Nick a champagne yeast
1118 is pretty standard
 
found it
gonna buy a few
my brew at home is definitely not fermenting, so gonna start over
 
7:05 PM
@Cereal why the mix of vanilla dom and jQuery?
$('#id') but then getById later?
be consistent
 
@rlemon iirc, I was in the process of removing jquery as a dependency when they pulled me off it
 
what is response ?
 
It should be the response from an ajax call. Just setting up my local server now t oactually check
Ookay, prettified
Above function has nothing to do with error
_onDropdownClose = function() {
        var isEyeField, _ref;
        isEyeField = this.$input[0].id.contains(/right|left/);
        if (this.currentResults.items[0]) {
            this.$control.removeClass("focus-warning");
            if (isEyeField && !((_ref = this.lastQuery) != null ? _ref.isEmpty() : void 0)) {
                return this.setValue(this.currentResults.items[0].id)
            }
        }
    };
error is on isEyeField = this.$input[0].id.contains(/right|left/);
Same error
!!> "s".contains(/s/)
 
@Cereal "function contains() {\n [native code]\n}"
@Cereal "TypeError: Invalid type: first can't be a Regular Expression"
 
!!mdn string.contains
 
contains isn't defined in chrome ?
is this a prototype you guys have added?>?
 
It is not. I'm very confused as to why the site works on chrome
 
you guys must have added it in a util file
String.prototype.contains = function() {}
 
unless String::contains
	String::contains = (s) ->
		@split(s).length > 1
oh dear
 
!!> "s".split(/s/).length > 1;
 
7:14 PM
@rlemon true
 
not sure why that would throw an error
 
Can you reset a timeout by its id?
 
you can cancel it
 
It's throwing an error because .contains is defined in firefox
So it's not monkey patching it
 
lol
 
7:16 PM
Sometime between last year and now, firefox added a contains method
 
don't over-write native methods people :D
 
@rlemon So, just cancel it and start it again? Seems a bit odd
 
user1596138
@Cereal You mean includes or are we talking about Arrays
 
No, I mean a contains method
!!> String.prototype.contains
 
@Cereal "function contains() {\n [native code]\n}"
 
user1596138
7:17 PM
You should be polyfilling to .includes not contains...
 
@corvid I don't think it is odd. They give you the tools to control timers by starting and stopping them. a pause might be nice, but a reset would just be lazy
 
user1596138
.contains isn't new, it was in FF forever ago
 
^ dropped that during our interview
and I was like wut? nice!
 
Oh I am just trying to make it so that when data is received, reset the timer. But if no data is received for x seconds, time out. I feel like that must have been done before
 
user1596138
@Nick care to argue about why there isn't a String.doesNotContain
 
user1596138
7:19 PM
LOL
 
All function names should be in the affirmative
 
user1596138
Maybe String.hasThisStringInIt
 
!string.match(something)
 
That's why, but I don't know what you're referencing
 
@corvid yea
stop the timer and re-run it
 
7:19 PM
There is a string.contains in es6 I think
 
user1596138
@Nick includes
 
@Nick that is string.includes
 
Aye
 
user1596138
There is an Array.includes in ES7
 
literally, string.contains redirects to string.includes on mdn
 
7:20 PM
ypu don't need a "doesNotInclude"
jsut negate the includes with a bang
 
my underwear is riding down under my shorts.
it is uncomfortable.
 
user1596138
@rlemon It's funky because there used to be a spec page for contains, because it used to be an experimental tech for FF only
 
user1596138
But I guess they tried to wipe that from history
 
@EveryoneWhoSucksAtCLI codecademy.com/en/courses/…
 
..
 
7:27 PM
So basically like
let timeout = _.isNumber(arguments[1]) ? arguments[1] : 60 * 1000;
let timeoutError = new Meteor.Error('GalilError', 'CommandTimeout');
var timerId = Meteor.setTimeout(function () {}, timeout);
let refreshTimer = function (done, data) {
  clearTimeout(timerId);
  timerId = setTimeout(() => done(timeoutError), timeout);
}
 
user1596138
!!> [NaN, 2].indexOf(NaN);
 
@Jhoopins -1
 
user1596138
^ The only thing .includes solves for us... Haha
 
7:38 PM
looking for something like AvalonDock (avalondock.codeplex.com) but HTML, anyone seen anything like it? Closest I've found is github.com/fireball-x/editor-framework
maybe I'll roll my own
 
user1596138
@CuddleBunny Smoking thrills
 

« first day (1776 days earlier)      last day (3173 days later) »