« first day (1570 days earlier)      last day (3384 days later) » 

3:06 PM
function alert_timer() {
    return {
        start: function (alert_timer, time) {
            time = time || (2000);
            this.alert_timer = setInterval(alert_timer, time);
        }
    };
}
console.log(alert_timer);
 
no error but start method... errors
any pointers?
 
@Corbo152 0x003322 0x003323 0x003324
@BartekBanachewicz old, and silly :D
 
@BenjaminGruenbaum 0xdeadbeef
 
3:08 PM
@BenjaminGruenbaum eh?
 
@Corbo152 Remember this scoping.
 
@Corbo152 pointers.
 
theres no alert_timer method of this coz its referring to the window?
which does not have a method of .alert_timer
?
 
I give up on your question.
You should really read a tutorial, or a book :/
 
Or pay someone
 
3:10 PM
Was there a question in there?
 
Man, there are kids today who have never seen a pointer. Makes me feel old (or educated, but we know that's not true).
 
my question is where am i going wrong?
 
@Corbo152 What are you expecting to see?
 
@ssube stuff you don't actually need to be a programmer anymore :D
You can be a solid programmer without knowing what a pointer is, funstuff.
 
happy friday
 
3:14 PM
it returning an interval value of 2000 to the timer when alert_timer.start(func) is called
 
@RalphWiggum ITS NOT FRIDAY OKAY
 
@BartekBanachewicz It could be Friday, if you wished hard enough.
Friday is a state of mind, and a seat you take.
@BenjaminGruenbaum yeah, it's a bit weird. I still think the basics of how systems work (memory and interrupts and the like) should be a required class before you start working.
 
@ssube my head hurts
I just wish for it to stop
 
HAMMERTIME!
 
3:17 PM
fuck you Cap, not today
 
@ssube why? What would a Rails or PHP developer gain from knowing how interrupts works?
 
well, fuck her today or not?
oh btw @BartekBanachewicz I stole your identity today chat.stackoverflow.com/transcript/message/21302607#21302607
3
 
@BenjaminGruenbaum a headache
 
@BenjaminGruenbaum perspective. Knowing how the stack works and why a function call is expensive is useful even for people above the JITter.
 
@BartekBanachewicz I agree :D
 
3:19 PM
Interrupts specifically, maybe not so useful, but good to touch on.
 
interrupts are a retarded low-level mechanism
 
@ssube the function call overhead isn't a biggie in IO bound apps which is basically all the web.
 
@FlorianMargaine hmpfh
 
@BartekBanachewicz do you prefer synchronicity?
 
3:20 PM
oooh btw @BenjaminGruenbaum did you read the reddit link on colors?
 
You're not going to be a worse programmer for knowing the lower level stuff, but it's not a necessity for many programming jobs. The higher level abstraction is essentially shielding people from having to know or think about that. They can be fine programmers without knowing it (but not great ones :-P)
 
@KendallFrey I prefer not writing low level code
 
@BenjaminGruenbaum not on the front-end or REST layer, but if you get into services further back or start doing any kind of batch stuff, it can be.
 
@FlorianMargaine link?
 
3:21 PM
Oh, I think knowing interrupts and pointers is important - just not essential
 
Unless you want to box yourself into just doing IO-bound tasks and styling UIs your whole life, knowing how things work and what will be faster comes in handy.
"Faster" in a vague sense, not micro-optimizing.
 
You underestimate how many programmers don't give a shit.
4
 
@RoelvanUden No, I know full well, and it bothers me every work day, which is why I'd like them to learn the basics of their trade and become competent individuals.
We have "Java consultants" here who didn't know how to use Maven.
 
@ssube that's most of programming, just saying
 
is this a good way to start a social network?: groups.google.com/forum/#!topic/firebase-angular/EBO74Af-9C8
 
3:23 PM
lol start a social network
 
@BenjaminGruenbaum Really? It's a lot, but there's still a ton of backend stuff going on.
 
backend does not require you understand pointers or performance or threading or interrupts
 
gone back to my old code which throws no errors but the timer does not stop
 
HAMMERTIME!
 
I think I am doing something wrong... syncronous bsync works fine for my problem, but asyncronous bcrypt is not working as intended
 
3:24 PM
Otherwise the internet would not be 20% wordpress
 
If you're doing backend stuff, I feel like threading definitely becomes important, and performance often is.
 
hopefully threading is abstracted...
the link I just gave is very relevant
 
@FlorianMargaine Hopefully not
 
@FlorianMargaine which has some pretty dramatic performance implications
 
not necessarily...
 
3:26 PM
@ssube Meh, most back-end stuff is just about how to get data where and in what form, and how to get it back. It doesn't actively involve thinking.
 
Good morning gents
 
> not on the front-end or REST layer, but if you get into services further back or start doing any kind of batch stuff, it can be.
 
@FlorianMargaine meh.
If a program steps out of its boundaries by performing IO or an OS call I want it to be explicit. I like having functions that return a Task (Or Promise) that I can await.
 
@BenjaminGruenbaum Could you link me to the ML course you were talking to Zirak about?
 
finally! I have a honeymoon booked!
woohoo!
 
3:28 PM
I'm taking the one on Coursera, but if I have the time, I'll use the other one to supplement this one
@DrogoNevets Congrats!
 
I didn't watch the superbowl, but I'm glad that pats won
 
old code
 
I watched the last 5 minutes on Twitter :/
 
3:30 PM
I was blackout drunk during the last quarter so I had to re-watch it this morning
What a terrible play call
 
which
 
@SomeGuy this one is pretty good: youtube.com/watch?v=mbyG85GZ0PI&hd=1
(See fb also)
 
Throwing the ball 5 yards out on not-3rd down
They should have rushed it in. Lynch is a powerhouse he would have made it
 
user2620028
@SterlingArcher where did you watch it? I am trying to watch the whole game lol
 
You can't stop that man 2 plays in a row with the superbowl on the line
 
3:31 PM
@BenjaminGruenbaum Sweet, thanks
 
@HatterisMad recorded it :D
 
Have you worked with ML?
 
I didn't think I'd be able to record a game but it worked
 
/me was disappointed there were not actual seahawks fighting actual colonial patriots
/me is disappointed /me does not work
 
@SomeGuy yes, several times - why?
 
user2620028
3:33 PM
@SterlingArcher damn ok lol. I ended up getting sick last night and couldn't watch it
 
I was at the bar with my brother, his gf, and his old co-worker. Got her number somehow, don't remember, and she asked about me this morning to my brother lol
 
@BenjaminGruenbaum Just curious. I know I can come to you if I want to impose questions on you :P
 
user2620028
the old coworker or your brothers girlfriend? I need a clarification here lol
 
\EMBER RULES!
 
3:35 PM
I'd tell you what I don't like about ember but people I know that work on it might find out and get offended :P
 
the coworker lol
 
tells us!
 
@SterlingArcher Was she old?
 
Actually no. She's a year younger than me and has a motorcycle and dyed her hair from blonde to black
 
@BenjaminGruenbaum why would they get offended by technical reasons?
 
3:36 PM
You said she was old ;)
 
user2620028
@SterlingArcher Do you remember what she looks like pre drunk?
 
Who said anything about technical reasons :P
 
@KendallFrey old as in they no longer work together
Oh
 
I'm a giraffe
 
3:36 PM
lol you dick
 
HOLY SHIT THERE IS A NEW SEASON OF ARCHER HOW DID I MISS THIS?
 
@HatterisMad yeah lol quite hot
 
!!afk be back after watching every episode that came out in this season
 
user2620028
wait what since when benjamin?
 
@BenjaminGruenbaum That's EXACTLY how I felt 2 days ago
 
3:36 PM
@BenjaminGruenbaum there have been commercials for weeks!
 
I think @mikedidthis needs to do a better job of reminding us
 
Not in Israel
 
spoilers
I've seen it, but still.
 
I like terrible acting
maybe I should see it
 
spoiler alert:
 
3:39 PM
spoilers suck
 
weren't you gone watching archer anyway?
 
Spoilers about movies that are absolute garbage should not be a bad thing
 
@KendallFrey that doesn't spoil anything, you can't make a WRX worse
 
@ssube Gold wheels.
 
@mintsauce still no. There's nothing you can do.
 
3:41 PM
@BenjaminGruenbaum ah
 
0
Q: How to add tool tip for x axis labels in nvd3

NithsI am working with nvd3. Here I want to make the x-axis labels with dotted lines when it goes more. Also the labels should show [the tool tip of exact word]. How can I do this? Please help..

 
user2620028
@BenjaminGruenbaum car spoilers do not suck when used correctly.
 
WHERE DO I GET THIS SHIRT
I'd change it to -Rosa Parks, 1955, probably
@BadgerCat by the way, I drunk saw youre invitation on LinkedIn and I gotta warn you, I haven't updated my address in there
;)
I applaud the effort though!
 
I may have found your address
 
@SterlingArcher So your address is not the one on LinkedIn?
we'll get it eventually, by process of elimination
 
3:53 PM
@KendallFrey no sir, it is not. I haven't touched LinkedIn for over a year
> One house at a time, we will find you.
@rlemon oh?
 
do you have reddish shutters?
 
I'm going to level with you on that one
I don't even remember if I have shutters
 
are you the second house from the corner?
 
...wat did you just ask
Which corner? ._.
 
well I don't wanna list the intersection
 
3:57 PM
Hello Guys
 
@Mohit 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.
 
@rlemon you have my email right?
I will confirm if you get it right
And if you really do ship me vape juice, I shall reciprocate when my bank is no longer being held hostage by the federal government
 
@SterlingArcher 1600 Pennsylvania Avenue ?
 
Negatory Sir French
 
not surprising
you don't even recognize the address? terrorist
 
3:59 PM
Is that the white house address?
 
I am a newbie in Knockout, I want to use Observable array i am copying an example on JSFiddle and it is supposed to show me list of the Array in resulting pane but it is not showing anything
 
Nah I live in the Greenhouse
 
This is why we should never have legalized pot. Kids these days living in greenhouses and not even knowing where the whitehouse is.
 
I can't figure out what i am doing wrong.
 
4:01 PM
@rlemon I live in a townhouse sir :) And I think you're looking in Washington State, whereas I work in Washington DC but reside in Virginia
 
@SterlingArcher the northern side of VA? I was born in a city there, although I'm not sure which one.
 
imgur.com/Ow7uEE0 @SterlingArcher
 
@Mohit Hit F12. It's not displaying because knockout is getting an error first
 
@ssube yeah!
 
That's a trait of knockout. once it hits an error, it stops processing the template
 
4:03 PM
Thanks @Luggage
 
I grew up in northern VA, and went to college in the south and my parents moved to central VA, where I miss the country life so much, and now I'm back in the north
Fairfax County
 
@Mohit now the hard part. Finding the error. It might involve commeting out code, etc. The erro lin number is just going to be some part of knockout internals and not too helpful.
 
done some reading... is the issue because i need an object for this to work?
 
#1 shitty thing about knockout (I love knockout).
 
"this"*
 
4:05 PM
ha ha ha Yup i agree, On Console i see some strange Errors.
@Luggage
 
It's the template, somewhow. Remove the tempalte and do it inline and it works
jsfiddle.net/uc8ohvmc I don;t know what the error was. It LOOKED correct.
 
found awesome javascript only code for CYK algorithm
 
@Luggage it is giving error in Knockout.debug.js
on this line
 
anyone able to download the page as html and run from hdd?
 
var elems = jQuery['clean']([html]);
 
4:08 PM
yea. that's useless. knockout doesn't even require jQuery so I don't know why
 
@Luggage Thanks for that fiddle, as i can get continue further
you know i was copying the content from pluralsight, and it was strange when i get this errors usually pluralsight content runs smoothly
Thanks Again
btw I am Mohit Sharma from India, ASP.NET MVC Developer
 
doxxing time
There's probably 15 people fitting that description :(
 
@Mohit You are using a REALLY old version of knockout
 
I am using 2.2.0
 
@SterlingArcher I lived in Manassas and somewhere else, either Arlington or near Fairfax.
 
4:13 PM
3.2 is current and it fixes the tempalte problem
 
I should probably get my mom to tell me what city I was born in.
 
hi, plain jquery $.ajax with jquery 2: how do I get upload progress events
 
Oops!!!
 
@ssube Just like your conception, she was blackout drunk and has no idea.
 
4:15 PM
stackoverflow.com/a/27030092/918959 guess this one <-, need to override xhr in settings
 
buh. Having some trouble with angular... how would one make a directive for adding an error to a bootstrap form-group anyway?
 
that's just adding a class, .has-error. Know how to make a directive to do that?
 
@ssube dude I'm literally like 10 miles away from Manasas
Maybe 20 from Fairfax City/Arlington
 
Done @Luggage
Thanks for pointing out
 
yarp
 
4:19 PM
I live in Herdon, which is probably the most central of north va because I'm 20 minutes to everything
 
thanks @Luggage once again
 
Arlington? do you sell propane and propane accessories?
 
ok, ok.
stop thanking me, it makes my computer beep.
 
Ok
 
:)
 
4:23 PM
@SterlingArcher did you see my messages in OkCupid too?
 
@SterlingArcher lol yeah, everything is pretty close together out there.
 
@BadgerCat creep
 
How do i find the position of an element
relative to some other element
var node = element;
var self = this;
while( node != self && node !== null ){
  computedOffsetTop += node.offsetTop;
  node = node.parentElement;
}
console.log(computedOffsetTop);
where self is the parent :-/
this gives me offset of 580
on a screensize of 480
 
@SterlingArcher is it Fairfax?
 
4:29 PM
TIL Javascript files are legal Win32 PEs
-4
Q: Get assembly version info from javascript file

user3613107I have a task to get assembly version of dll file from javascript. The javascript file is a part of .net project which assembly version I'd like to know. Is there a way to do it?

 
@darkyen00 account for scroll too
 
How would you pass a variable from the link function to the controller in a directive?
 
mnoring gntse
 
@FlorianMargaine eh how ?
 
;0
 
4:30 PM
@darkyen00 window.scrollY
 
// i actually want to find how many pixels to scroll the self element so that the child element becomes visible in the client viewport.
 
hm, maybe your wouldnt want to
 
@FlorianMargaine == 0
 
alright
 
@darkyen00 If you want the child visible in the viewport, you should fixed it
 
4:30 PM
@darkyen00 maybe getBoundingClientRect?
 
let me find how I did in a recent project...
 
@Zhegan How's it going?
 
@ssube no this is a scrollable div
 
@Zhegan <3
 
4:31 PM
@copy it's going well, I hope
 
Cool :-)
 
@BadgerCat hi :)
 
@Zhegan Are you really from Belarus?
 
@BadgerCat yes
is it something unbelievable?
 
Awesome, nice to see you here :)
 
4:33 PM
thanks
 
@Zhegan Nope, I was just wondering
 
Hello
I'm looking for a JS function/library to build a palette of 5 colors out of an image source.
 
@Azevedo what 5 colors?
 
Interesting. What's google turned up, anything?
As in it takes an image in, and returns the 5 most 'unique' colors.
 
4:37 PM
That right?
 
it is something like this
but less complex
 
posted on February 02, 2015

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} New BAHFest day! Subscribe to receive updates on new videos! We h

 
@Azevedo I doubt you'll find anything simpler
 
:-/
@FlorianMargaine I don't understand lisp
 
4:40 PM
but thats for finding if the element is in viewport
and not how many pixels to scroll for it
 
@Luggage i can't find a live demo
 
var node = element;
var self = this;
while( node != self && node !== null ){
  computedOffsetTop += node.offsetTop;
  node = node.offsetParent;
}
console.log(computedOffsetTop);
@FlorianMargaine ^ that works
 
for svg manipulation github.com/wout/svg.js
 
@darkyen00 y u self = this?
 
it was actually this.getDOMNode()
but then that becomes irrelavent if you aren't reactive.
 
@SecondRikudo planes will drop cargo
 
-3
A: Replace a double quotes in javascript

Bhojendra NepalYou can just do: string.replace(//*Quote here*//g, '"')//no need to use `&quot;`, just use `'"'`

> string.replace(//*Quote here*//g, "&quot;"; not working? try string.replace(//*Quote here*//g, '"')
Don't fix the broken part, change the output so it's all useless.
 
@BhojendraNepal your answer there is incorrect.
You might want to fix it.
Also, OP has a serious XY problem.
@RoelvanUden would it be possible to steal some of your time some time to do an interview question we're trying out? I want someone with a .NET background that is relatively new to JS to try it. It's totally fine if you don't want to.
 
@BenjaminGruenbaum yeah, it's an awful question.
 

« first day (1570 days earlier)      last day (3384 days later) »