« first day (1411 days earlier)      last day (3553 days later) » 

5:00 AM
@m59 a punch?
:D
 
m59
You really need to study and experiment! And seriously give yourself a name at least
avatar is nice
people are less likely to ignore you that way.
Dress for the job you want and all...
 
Remember not to put your real name... try an anagram like me. It is pretty cool :D
 
ignore that^ guy
 
that === jan dvorak :D
 
m59
haha
More like an analgram @AwalGarg
 
5:02 AM
dunno why but anagrams interest me a lot
 
@AwalGarg perhaps you actually liked the "anal greg" thing?
 
don't make me disrespect you. please...
 
then don't troll our newcomers
 
m59
If you can't take a joke, no one really cares about your respect.
 
not obscene ones please
 
m59
5:08 AM
What's obscene?
 
at home, wud talk later
 
Friends, have the heard the Good News about the gospel of Python?
 
m59
does u grmr?
;)
 
I hate you. Like, more than a friend
 
m59
How have you been @monners?
 
5:14 AM
Bored
Keep getting through my work too quickly
 
m59
well, you could attach to a window during the zombie apocalypse.
buh dum TIS.
 
:blinks:
 
welp, I'm giving up
 
m59
Nooooo, you've still got your whole life ahead of you!!
Gosh...can I ever be serious?
I guess being tired all of the time gives me that "tired high" where everything is funny always.
 
@SomeKittensUx2666 Dibs on your wife
4
 
5:23 AM
YOU'RE GAY
 
and a pimp
 
More specifically, I'm giving up on getting the HOTAS system working.
DO I GET A SAY?! (SomeKitten's wife)
 
I use the HOTTIES system
 
m59
Tell that lazy *!#!@ to get a job.
THE HOTAS system!!
not your wife!
 
@SomeKittensUx2666 We have a formal complaints department in HR
 
m59
5:25 AM
LOL THE FAILZ!!! sorry if that came across wrong!
 
@SomeKittensUx2666 I did actually hear that your wide is lazy, @m59 said it.
 
m59
when puns go wrong
 
@phenomnomnominal my wide?
 
Yes.
#shudup
 
I feel a divorce a-brewin'
 
5:35 AM
Dibs on @SomeKittensUx2666
 
m59
HOTAS LOOK WHAT YOU'VE DONE.
#anotherMarriageRuinedByHotAs
G'night guys!
 
function el(id) {
  if (document.getElementById) {
  return document.getElementById(id);
  } else if (window[id]) {
  return window[id];
  }
  return null;
}
guys what does the second else here do?
 
it tries to grab a global variable of that name
 
why name? why not id?
 
5:43 AM
assuming that browsers that don't support getElementById stick DOM nodes with ID to the global scope
read: IE5 or so
!!mdn getelementbyid
 
so I copied this from gmail, can I use this function in my code?
 
why would you? Unless you mean to support IE5
IE5.5 already has GEBI
 
:( i don't have to write document.getElementById and better browser support, so... just thinking.
 
m59
bad thinking =D
 
5:46 AM
var $ = document.querySelectorAll.bind(document)
 
!!mdn bind
 
m59
it's setting the context so that the this pointer will always be correct when you use it.
 
if you need ES3 support, var $ = function(q){return document.querySelectorAll(q)}
 
ah, that makes sense.
 
5:49 AM
or var $ = function(q,ctx){return (ctx||document).querySelectorAll(q)}
 
m59
ok, bed for real. Had to listen to music
 
what is ctx?
 
Hey Guys, anybody work around with Karma-Jasmine and Jasmine-Jquery ?
 
@AwalGarg context
 
@JanDvorak is that global or would I have to pass it while calling the function? If the latter, then what to pass?
 
5:52 AM
@AwalGarg that's when you want to QSA inside a DOM subtree
 
@JanDvorak ok thanks :)
 
@Abhi ...you're testing jQuery code?
 
@SomeKittensUx2666 No actually it is angular js, i am using Karma and Jasmine. To read html files in test.js i am using Jasmine-Jquery. but issue is cant able to load html file
 
6:28 AM
@m59 no idea, I didn't publish or anything, just had difficulties downloading it so I may have tried a couple things that didn't go well with Azure :X
I blame MSFT
 
6:46 AM
@rlemon I don't expect someone named Robert to understand the pain of repeating your name 4 times every time you introduce yourself
 
0
Q: promises and deferred in ajax and jquery

user3722514function getPromise() { var deferred = $.Deferred(); $.when( getPromiseother() ).done(function() { deferred.resolve(); }); deferred.getPromiseother() } function getPromise() { var deferrednext = $.Deferred(); $.when( $.ajax(somefunction) ).done(function() { deferrednext .resolve()...

 
@Mosho I go by my middle name, so I have to correct everyone the first time they meet me.
 
:sympathy hug:
though I bet they don't assume you are a girl
 
in EcmaScript, 13 hours ago, by canon
kittens isn't a chick?
 
;o
 
6:50 AM
Aug 22 at 23:25, by towc
but really, I've always thought you were a female
 
@Mosho so how do you like Israel? :)
 
I can assure you, he is most certainly male. ;P (KittensWife)
 
:lol:
I'm tired... I'm tired and nervous because this is a new job I just learned promises... I don't want them to fire me but their going to fire me. I'm all the way in Tokyo so I'll be stranded and homeless 1000's of miles away from home if I'm fired. Thank you very much and I apologize — grasshopper 4 hours ago
2
 
@SecondRikudo same as when I left
 
@Mosho When was that?
 
6:53 AM
almost 2 years
 
Morning.
Three months without freakin' Internet. :-/
$ tmux a
Hey, still logged in to IRC :-)
 
7:10 AM
@Mosho that export/restore takes a hell of a long time huh?
 
@BenjaminGruenbaum did u solve the ajax crawling prob ?
 
@BenjaminGruenbaum "I just am not a good coder and don't want them to find out." I do really feel bad for that guy :p
 
@RoyiNamir no, we did not. We're dropping the escaped fragment and letting google deal with AJAX crawling, it's fair at that but it's harder to reason about for us.
@WillemD'haeseleer most coders have days they feel like that - I do.
 
It's the first time I've heard about imposter syndrome
I can really relate to that
 
@RoyiNamir if you have any experience with it I've love to hear it.
@WillemD'haeseleer know that coder at your company who thinks they're awesome and are the best coder but are not very good? That's even more interesting - it's the Dunning Kruger effect. Basically - the same skills are used to solve a problem and to know your solution isn't very good - so good programmers usually think they're worse and bad programmers thinks they're good.
The Dunning–Kruger effect is a cognitive bias manifesting in unskilled individuals suffering from illusory superiority, mistakenly rating their ability much higher than is accurate. This bias is attributed to a metacognitive inability of the unskilled to recognize their ineptitude. David Dunning and Justin Kruger of Cornell University conclude, "the miscalibration of the incompetent stems from an error about the self, whereas the miscalibration of the highly competent stems from an error about others". == Proposal == The phenomenon was first tested in a series of experiments published in 1999 by...
 
7:25 AM
And average programmers think they're average? :P
 
@BenjaminGruenbaum Well confidence doesn't heard off course
 
@WillemD'haeseleer I think I'm a good programmer. I don't think I'm an awesome programmer but I think I'm pretty competent.
I'm no Norvig but I definitely think I'm worth my pay.
 
Programming is a humbling profession.
 
I just think it's good to maintain humble, there is so much out there we haven't learned yet
( I think that better expresses my point)
 
Yeah, I guess I agree with that.
@RoyiNamir I could really use your help on that SEO thing if you're experienced with it by the way :D
 
7:29 AM
Thinking you are a "good programmer" indicates that you have lost perspective of what you don't know yet, that is the worst possible scenario to be in
 
if i dpn't make a commit in 3 hours i'm bye bye lol
 
know that i'm reading about dunning-kruger, I feel like it sort of helps my point
"If you’re incompetent, you can’t know you’re incompetent."
So the only way to be competent, is to know that you are incompetent
:p
( But perhaps that's the impostor syndrome speaking :p )
 
Then you are a competent imposter!
 
@WillemD'haeseleer: You can still think you're a good programmer while being aware of your limitations
Heck, I think you're a good programmer when you're aware of your limitations, even
 
@Cerbrus I guess that is somewhat the middle road you have to find for your self
 
My point is: By your logic, you'd have to be a "not good programmer" aka a "bad programmer" to know what you don't know yet. Or am I misinterpreting things again? :P
 
You're confusing self-awareness with your capacity to program
 
@Cerbrus I think you are misinterpreting, it's the other way around
 
not knowing you're capacity doesn't make you a bad programmer in itself
There is a strong correlation perhaps, but lets not generalize
 
Fair point, @Neil
 
7:37 AM
@Neil that's true about programming it self
 
Hm, it's too early for philosophy for me :P
 
But how are you going to prevent your self from getting into a situation where you are not competent, if you don't know your capacity
 
Experience has taught me that what makes a good programmer is one that doesn't simply be content knowing the one way he knows how to do something, but rather searches for new ways of doing the same thing
 
Familiarize yourself with what you're getting into
 
That's a somewhat rare quality I should add
At least at my workplace, unless I'm asked to redo something, it's fine as is :)
I suppose that's an endeavour you do at home in your free time
 
@SecondRikudo closed and...
 
why do anti-scratch eyeglass lenses scratch unless you use anything but the tiny little cloth they give you to clean it?
Why even call it anti-scratch?
You're apparently lying
 
maybe it's an anti-scratch tiny little cloth instead?
 
Then it's purposefully misleading advertisement. *grabs the torch and pitchfork*
 
morning all
 
7:48 AM
how do you make pitchforks in minecraft?
 
Morning
 
Morning
 
Does anyone use dafari? I know, it is a silly question :)
 
why do you ask if you already know the answer?
 
7:51 AM
@Magikaas that's more expensive than an iron sword!
 
Well, it is for a noble purpose, you can't expect to bring forth change for just a stick and 2 measly iron ingots
 
@FlorianMargaine :) Because I still have a question about tracking print action there :)
 
o/
 
@FlorianMargaine updated the spreadsheet with yesterdays and todays activity :)
 
8:01 AM
you guys are way better than me :P
 
running gets better really fast
struggled on my first 4 km run like hell, today I could've easily done a few km more
 
@GNi33 how long ago?
 
about 1 year, but I had a time inbetween where I didn't go running very much
getting back into running on a regular basis now
 
try to run about 20 mins straight on a regular basis, you'll start to feel better day by day
 
8:04 AM
20 mins is too long right now
 
if it's getting hard, maybe walk a little, but don't quit
 
I was dying after 10 mins
 
@GNi33 That's what she said.
 
gotta push the border a little, 15 mins would be great too
 
lo all
 
8:04 AM
And running in the morning before work is pretty much the best thing ever :D
 
yeah it feels pretty good
 
* Sleeping
 
Still, I get up at 06:30 and think "oh fuck no, I don't wanna do this today"
but then you do it, and it just feels great
still, I have 75 crunches to do today, not looking forward to that :/
 
why so much?
 
trying to do the "100 crunches a day for 3 weeks" - challenge
did 25 in the morning, but then I had to go to work
 
8:09 AM
you're insane
but well, you're already quite sportive I guess
 
@FlorianMargaine if you want to have a little plan around running, you should check out "Couch to 5k" (c25k.com)
seems to be a well designed plan to get to running 5 kilometres
 
Is there any performance penalty on querying dom again and again, instead of storing values to a variable ?
 
@CustomizedName yes
 
always been a little sportive, but now I'm taking it seriously. My main problem is endurance, but it's getting better already
 
IE 8 is not setting height of any of my element using JS, would it be because I didn't set any min or max height for the divs ? my layout works for IE 9 + and Chrome
 
8:17 AM
is it possible to get pass data from one controller to another in angualr?
is it a good idea to?
 
this runnable code snippets is a great thing
 
We0
$("#cart span span")
#cart is a <a> and in it there is 2 spans
when I use above I get undefined
How would I select that?
 
this selects a span inside a span
do you want span ~ span or span + span?
 
@CustomizedName Do you really need to care about IE8?
 
he doesn't
nobody really needs to care about IE8
 
8:23 AM
@ThiefMaster yes, it's a necessity of the project, otherwise I hate it 2 times more then you do
 
We0
<a id="cart" href="/cart" data-role="button" class="ui-btn-right ui-btn ui-shadow ui-btn-corner-all ui-btn-up-a" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" data-theme="a"><span class="ui-btn-inner"><span class="ui-btn-text">Cart (4)</span></span></a>
 
!!tell we0 format
 
@we0 Format your code - hit Ctrl+K before sending and see the faq
 
We0
<a id="cart" href="/cart" data-role="button" class="ui-btn-right ui-btn ui-shadow ui-btn-corner-all ui-btn-up-a" data-corners="true" data-shadow="true" data-iconshadow="true" data-wrapperels="span" data-theme="a"><span class="ui-btn-inner"><span class="ui-btn-text">Cart (4)</span></span></a>
tried control k
did nothing
Anyway
pastebin
 
it is a freight train of code???
I'm not reading that
 
We0
8:27 AM
it is essentially <a id="cart"><span><span>Some Text</span></span></a>
 
that should match
 
We0
$("#cart span span")
?
 
yep
 
We0
So I was actually correct? FFS why am I getting undefined then :(
anyway
back to drawing board
thanks guys
 
@We0 timing issues?
 
9:07 AM
I fixed the issue of height in IE8
 //var n = Math.floor((window.innerHeight - 160) / 2);
    var n = Math.floor(($(window).innerHeight() - 160) / 2);
Why there isn't much info graphs for Javascript ?
like the way it works
 
Maybe it's just too deep magic and nobody has figured it out yet.
 
This site pretty much has all you need developer.mozilla.org/en/docs/Web/JavaScript
 
@Psychemaster thats what i realized when i was watching chapter 1 of douglas crockhead
 
I wonder does Safari work differently under Mac? Since 5.1 version for Windows, which is last doesn't eve have a native developer panel.
 
@Eugene Yes. Works differently.
Moreover, Chrome works differently under a mac.
 
9:24 AM
can't find an online REBEL interpreter
only games and articles show up
anyway: next up: brainfuck IDE
 
http://stackoverflow.com/questions/25523438/how-to-load-video-files-‌​to-unity3d-game
 
@towc there is a js brainfuck interpreter copy.sh/brainfuck
made by @copy
 
@FlorianMargaine made one myself yesterday codepen.io/MateiGCopot/pen/ECtxv
 
bookmarklet: javascript:(function(){$('#input').val('[tag:cv-pls] ')})()
'cause I'm lazy
 
 
9:38 AM
0
Q: How can I force in javascript to excute a line before moving to next one

Customized NameI have few filters that show or hide table rows in a table and then checks if there are no rows visible then add a message to the table saying no row exists. This is how I am trying to do it, but fails miserably, maybe I am not aware of with the way JS executes lines, maybe asynchronous always ?...

 
I may be wrong, but is chat really the place to advertise your questions?
 
@Cerbrus Whats wrong with that ?
 
I would say yes, given enough time has passed without getting many responses
 
Oh, nope. The rules in the chatroom description have this to say:
> Do not spam. This is a fairly simple rule, do not repost questions because you did not get an answer right away. It was likely we read it and just didn't care. Tough luck. There are times when the room gets carried away with images or oneboxes, but this is no excuse to make a habbit of it.
That question is just 13 minutes old.
 
I didn't posted here to get attention, I posted here as if anyone would like to discuss it further
 
9:41 AM
it's alright as long as it's not spam
2
 
@FlorianMargaine: Understood :)
@CustomizedName: How is that not "getting attention"?
 
Let's be honest, most of the people in here watch the JS tag anyways
It's not getting much more additional exposure
 
^ that
 
@Psychemaster uh... I know most regulars don't even go on main, most of the time
 
@Cerbrus I had discussion about this problem yesterday here, few people are still here whom I talked to, but I didn't had time to yesterday to put it down as a proper question, which is why I did it today, i don't know how is it a big deal for you :S
 
9:44 AM
Then you might want to tag those people, @CustomizedName. Not everyone reads back the chat logs
 
@Cerbrus thanks for advise, will do, sorry if posting my question offended you :-)
 
Also, there are a few comments on your question, you may want to reply to those.
I'm not offended or anything
I was just wondering what the "verdict" was on things like this
 
@Cerbrus yup, edited the question for first one, and not sure about second one though
 
He means: how do you know what code executed when, how did you check that?
 
Checked it using developer tools, mentioned that already in question :-)
 
9:49 AM
excute was also fine @CustomizedName, like ex-cute :D
 
hahaha, true
 
As in ex-parrot?
 
xD
!!mdn textContent
 
> Moreover, this avoids an XSS attack vector. (source: above link)
how?
 
9:53 AM
I have a function in the global scope, function testMe(){}, and window['testMe']; does not call it. Any reason why?
I'm doing this to try and figure out how to call a function from a string :)
 
> Because the text is not parsed as HTML,
That's like, the sentence before the one you quoted, @AwalGarg
 
@Cerbrus someone can put JS, CSS... parsing as HTML doesn't count in that case.
 
@tmyie: window['testMe']();
You'll still need to parse the <script> tag
... as html
 
hmm...
 
Just checked
document.getElementById('test').textContent = "<script>alert(1)</script>"
 
9:58 AM
aah, i think because i'm calling it in jQuery(document).ready(function($)
 
That literally inserts that as text
 
@Cerbrus would all browsers exhibit the same behavior?
 

« first day (1411 days earlier)      last day (3553 days later) »