« first day (2012 days earlier)      last day (2919 days later) » 

2:00 PM
"We have updated our Terms of Service" *Clicks on [Accept]*
 
@TechTreeDev check console ...
ReferenceError: showPosition is not defined
 
Ok, I never in my life fingerpainted and napped
wait...
!!urban finger paint
!!undo
 
> Biggest lie in the world: "I have read and I accept the EULA"
 
whoa
yikes
 
@SterlingArcher you've never lived then
 
2:01 PM
In the end, the problem is the lack of a safe/proper/easy method to output data from snippets. A console.log expansion would go a long way in reducing the use of document.write. — Cerbrus 2 mins ago
@Cerbrus Agreed
 
@KarelG Oh, I was using the editors console, which was empty. Thanks
 
(can't add that as a comment, too short)
 
Damn random pointed mustache hairs
 
@rlemon Zero-width whitespaces were patched... :-(
 
I am ready for game of thrones season to start
 
2:04 PM
@Cerbrus accented whitespace?
 
@ndugger you didn't respond to my picture I texted you :(
I only send you my dankest memes and you straight swerved me
 
rlemon already put it in chat a couple days before
 
I send the offensive memes over hangouts
 
you filthy reposter
 
You got swerved!
 
2:06 PM
Should I post a beard-update? It's getting big
(shut up)
 
What does this mean? Don't forget to polyfill require if you want to use it in node. See webpack documentation.
 
I trimmed mine again
 
huh?
 
Every two weeks now
 
polyfill require?
 
@corvid polyfill probably isn't the proper word... overwrite maybe?
 
Downside of a beard: chugging a beer goes everywhere.
EVERYWHERE.
 
have you tried chugging better?
 
Hi
 
2:08 PM
Hey I can chug a beer in under 3 seconds D:
 
@SterlingArcher I have more mustache-related problems with that.
 
@SterlingArcher your mustache slowly begins to smell like milk, or at least mine does
 
Does Javascript have a Python like defaultdict?
 
I can beer bong a beer under 2. Cup chug is under 3
@Neil I don't drink milk, but I wash my face everytime I eat or drink just in case
Last time I had a beard like this I found a peanut in it after a night of drinking
 
@Andy Not built in, but the Map API is dead simple, so it would be trivial to write.
 
2:10 PM
I don't feel the need to chug my drinks. even when I was a young twenty
 
@SterlingArcher just in case you drink milk? ;)
 
Hi is it okay to put jquery document ready inside the function init() ?

function init(){
    some javascript codes here
	some variables initialize

	$(funcion(){

		//some jquery onclick handler

	});

}


<body onload="init()">
 
just enjoy your damn beer
 
@rlemon I feel that way about shots too.
 
@jemz that makes no sense
 
2:11 PM
@Neoares can you please clarify
why ?
 
I have a better time and get more drunk with mixed drinks.
 
@jemz init is called when document is ready already
 
@jemz I can't imagine a scenario where that makes sense
 
@jemz $(function(){}) is shorthand for $(document).ready which already waits for onload
you're being tripple redundant
 
just tell me why would you do that
 
2:11 PM
^
 
@Neoares, I really don't know the impact of that
 
@ssube I enjoy me some vodka+sprite
 
also, you don't need to wait for load, you can just place your script files in the end.
 
Lime is a must
 
2:11 PM
@ssube Awesome. Thank you. I'll go look at that.
 
@rlemon, thank you
 
@SterlingArcher vodka+sprite, vodka+ginger, rum+coke, whiskey+coke, and occasionally fancy ones like manhattans and stuff.
 
@jemz Not needed
 
@rlemon, I want to show loading icon before it renders all the html
 
It would work, of course, but what you're doing is the equivalent of assigning a click handler and triggering it, then promptly removing the handler in order to call a function
 
2:13 PM
I can only do whiskey when I'm trashed
 
I used to be really good at whiskey (as such things go)
 
@jemz that is going to be a different story all together then
 
Sometimes I order a vodka+diet coke so I can tell people I got a VD
2
 
lol
 
@rlemon, Okay thak you for the advice
@MadaraUchiha , Thank you
 
@SomeGuy ffdp is good
 
Yep! So much fun
 
@SterlingArcher what's a VD?
 
My favorite trick at a Halloween party is to tape a bunch of cigarettes to me. When someone asks what I am supposed to be, I pull one off. A cigarette lighter
 
@GNi33 Venereal disease
 
2:16 PM
@Andy jsfiddle.net/k2msw4x0 ought to do it
 
Or, alternatively, vodka+diet coke
@Neil Heh, nice
I love how confusing that is sometimes
 
Should have had a V8
 
@Neil I don't get it D:
 
@SomeGuy it is also cheap ^_~
 
@SterlingArcher Lighter, in terms of weight
 
2:17 PM
Oh god dammit
 
Hi, can someone give me a good tutorial for javascript that uses DRY ?
 
I'm typically an animal for halloween
 
please
 
@SterlingArcher You're an animal year round, fam
 
@jemz what did google show you
 
2:20 PM
@jemz you don't really teach DRY. Suffice to say that if you repeat the same code, you're not DRY
 
@jemz I'm not sure if this is the correct approach to the 'show loading while the page loads', but I have done this in the past jsfiddle.net/rlemon/t0kearoc
no one complained
 
@KendallFrey lol no I'm serious. I was a panda in DC one year... and literally every woman at the bar that was a panda wanted to dance. Then I was a dog... Don't be a domesticated animal. People get drunk and try to give you commands
However, they will feed you and pet you... so there's that
 
what about doggy style
 
@SterlingArcher they will never say no to a panda... you know ;)
 
0
Q: How does ES6 import / export play along with CommonJS exports / require

Tomas KulichSometimes you want to combine these syntaxes, most often when importing something that uses the commonjs syntax. Some cases were already discussed for example here: How to correctly use ES6 "export default" with CommonJS "require"? but there surely are more situations that can occur!

 
cv? there's no question there
 
@rlemon, thank you I will try this..
 
@KendallFrey did I ever tell you about the single most greatest block in the history of mankind?
 
was it a lego block?
> most greatest
 
I know what I said
 
2:23 PM
An adblock?
 
Ken Block?
 
Bloccoli?
 
So I was a dog last year for halloween. Went to Pittsburgh to see my buddy, and we all went out. Me, my brother, Mr. T, his buddy Adam, and Phil. Fucking unemployed, alcoholic Phil.
 
Is there some kind of weird behavior with instances ?
 
2:24 PM
Also, yes
 
sometimes Maybe
 
We go out, we get sloshed. This woman in a very skimpy army costume comes and sits on my lap, "I'm a slutty army girl!" (Yes, yes you are) and wants to take pictures with me.
 
I create two different instances of the same function
 
You can't create instances of functions
 
Damn terminologies...
 
2:24 PM
you either have the same function, or different functions
 
Fucking Phil.... god damn Phil thinks it's a smart idea to throw the entire table contents onto us, call her a whore, and shove her off my lap.
 
* puts down axe * posted my answer on that meta question
 
@KendallFrey orly?
 
To this day I curse the name Phil.
 
var LdmGrid = function (myGrid) {

    LdmGrid.prototype.jsonGrid = "";
    LdmGrid.prototype.id = myGrid.id;
var gridEnd = new LdmGrid(document.getElementById("gridEndereco"));
var gridTel = new LdmGrid(document.getElementById("gridTelefone"));
 
2:25 PM
you're setting the prototype inside of the constructor?
 
@KendallFrey what if I have two functions coming from the same literal?
 
@SterlingArcher them's fightin words
 
I've never seen that
 
@JanDvorak two references?
 
gridEnd.id returns "gridTelefone"
 
2:26 PM
Oh I cocked back but my brother stopped me
 
@AndréSilva show the entire constructor
 
your brother stopped you from cocking a back?
 
While Phil's closest friends laughed at my brother and said "You shoulda let Jordan punch him"
 
@rlemon Are you sure? I mean.. you might die in disgust..
 
@AndréSilva that's because both instances share a prototype
 
2:26 PM
@SterlingArcher s/stopped me/added himself to the list/
 
@AndréSilva can't debug code we can't see
 
http://codepen.io/TechTreeDev/pen/VadjBR
Does the location match now?
 
lol nah, I was drunk and I'm glad I didn't punch him
 
I suspect you're not adding to the actual prototype
 
@rlemon I'm pretty sure the problem is there
 
2:27 PM
I don't like hitting people
 
@KendallFrey so am I
but it could be two snippets merged for us
I don't make assumptions anymore
 
I'm putting in jsfiddle, one sec
 
Then why...
 
that's why I'm asking for further clarification
i.e. the entire snippet
 
Set the prototype outside the function, use this.id inside the function
I think
 
2:29 PM
bingo
but if those prototype stuff are in other places and he just screwed up the paste.. then not bingo
but unlikely
 
YouTube comments are literally cancer
 
> We used to have nine planets. Now we have eight and there's a giant red spot on Jupiter.
 
:( Don't hate me.
 
yea listen to kendall
you're setting the prototypes wrong
 
2:30 PM
@SterlingArcher figuratively
 
literally
 
l i t e r a l l y
 
:/ I'm trying to learn by actually trying
 
I will literally place my foot in your ass
 
2:31 PM
should help -- after you read that, read this blog.javascriptroom.com/2013/01/29/the-illusion-of-class
 
@AndréSilva You're already in the top 10%
 
I'm going to read about prototypes then... I was trying to do something similar to C# :X
 
Just don't even try
 
@AndréSilva the two links above (in order) should clear things up ( I hope )
 
Thanks :) I'm going to read it and fix it asap
 
2:32 PM
@KendallFrey you'd have to find me first
 
I have long legs
 
I know where-ish you are
 
@AndréSilva javascript isn't c#. It would be beneficial to your learning to accept that it isn't going to be exactly like something that you've already done
 
who am I kidding, my longest leg is the middle one
 
How do I add jquery to a jsfiddle now? It seem slike they changed their UI
 
2:33 PM
@KendallFrey apparently you're kidding yourself
 
@JanDvorak that's so ... atypical comment between others
 
@KendallFrey paraplegic? Sad sad
 
I use C# as base because I know a bit of concept about it, while javascript I know almost nothing...
 
does kidding mean giving birth to a kid
 
@Neil paraplegic still have legs, you're looking for amputee
 
2:33 PM
No
 
@Neil I don't think that means what you think it means
 
@Tuvia go to jsdiffle > external resources > add jquery
 
And what he said
> jsdiffle
 
wat?!
 
@KendallFrey omg found it... welcome Cancer youtube.com/watch?v=KZn4MuXwNhA
 
2:34 PM
@littlepootis There used to be a dropdown for it. I now have to add it manually?
 
found this while watching a bunch of DIY stuff
 
@Tuvia yeah
 
couldn't watch more than 1 minute
 
@littlepootis :-(
 
@Neil You're still implying he has normal legs, but they don't work... so you're saying he still has a big d- but he can't move his legs
 
2:34 PM
@TechTreeDev yes. it works fine now. :-)
remember to use console the next time. It's an useful tool
 
youtube.com/watch?v=PXRISN1RpLQ @ssube turn dat quality up
 
@AndréSilva I do believe you're right
 
@rlemon Don't watch DIY videos from women
 
@KarelG I will. Thank you
 
@KendallFrey I watch DIY playlists while gaming
it came up
:/
 
2:36 PM
Ok then...
 
> our literal, literal..
 
!! Urban literally hitler
 
@JanDvorak literally hitler The act of being Hitlery.
4
 
!!undo
 
@JanDvorak You do not have permission to use the command undo
 
sick burns from the Iceman
 
There is no coming back @JanDvorak
 
Did someone say "post youtube videos with awesome music?"
 
How do I parse links for each <a> tag? $("a").each(function() { ... url.parse(link).hostname }
 
2:42 PM
wat
 
so, after I finished what I had to do (and a bit more. I got paid more, not complaining), I asked my boss what's next. His response basically translates to: "Find something that looks fun/too-horrible-to-ignore and do something about it"
I love this :D
the time spent thinking about what to do is also accounted for
 
@towc *builds death ray*
 
That's awesome
 
morning :/
 
Wait, is that slash an and or an or?
 
2:44 PM
@towc are there any internal tools you could make?
 
problem is that sometimes I prefer to know exactly what needs to be done. Ever heard of "fear of freedom"?
 
maintaining them becomes a task
job stability
 
@towc write a backdoor
 
@towc aren't you too young to be employed?
 
@ssube I have one last question before I dig into this a bit more. Javascript is not my skillset, so please forgive the potential noobness here. In the constructor, it's expecting an iterable (I assume this should be an array?) and a factory. What is the factory? I'm attempting to make a dictionary like object where each key has a list of values so it'd look like this (stole from a python sample)
 
2:46 PM
btw, this is the last thing I made for him: towc.eu/prototype/eoxplore/inundo I really need to rethink a lot of things. Haven't shared it with anyone yet, wanted to see how good of a design job could I do. Answer is "not very much"
 
{
	'a': [1, 2, 3, 6],
	'c': [7],
	'b': [4, 5]
}
 
Like, it could use serious improvements
@SterlingArcher part-time
 
Do nothing and clock it as "reviewing existing code base"
 
If the explaination is to long, I'm happy to post a question too.
 
@towc At least you're being paid to improve on the job!
 
2:47 PM
@JanDvorak lol. "remove the 0s from the for loop"
 
did you research what a factory is in javascript? because if that's your question it's thoroughly documented.
 
in any case, what do you think of it?
 
> Not the best start to a marriage! The tyre-fitter and his bride at the wheel of the £240,000 Ferrari they rented for their wedding day then CRASHED - after his foot slipped on the accelerator sauce
not good for the wallet
 
"slipped on the accelerator" what does that mean
 
@Andy you wanted it to match Python's defaultdict, right? That uses a factory function (/callback) to produce missing values.
 
2:50 PM
@towc wait, is this why you were asking for that obfuscated url thingy? :P
 
@AwalGarg no, that's another project, not for him
and btw, did you just rotate the bits of the text or smth?
 
wat
 
I don't know what I'm saying
but it could be an idea
 
@towc now you're talking sense
 
which text are you talking about?
 
2:51 PM
@KevinB he used the accelerator unintentionally. Probably he want to use the brake pedal. Not sure. It can be that he want to show off but that it went wrong
 
nvm, I forgot the deobfuscation algorithm is also included :P
 
good morning everyone
 
@towc you can just hijack function.prototype with a userscript running @documet-start or something, but ok :P
 
@KarelG "let me start this wonderful marriage by doing something potentially dangerous and would cost us thousands of debt should anything go wrong. What's the worst thing that could happen? "
 
Death
 
2:57 PM
@AwalGarg the console is unusable when I am on that site... I guess chrome really doesn't handle monospace non-ascii well
 
getting hit by a train in a way you cannot finish the sentence you started and the workd to collapse because the thing was damn important.
 
I'd let you figure out the rest yourself, else it won't be much fun :P
 
@AwalGarg I remember managing to see the real source with all of the characters before chrome crashed... if that's enough
 
@Neil it's a part of their culture to show "richness" when you want to ask someone to marry
 

« first day (2012 days earlier)      last day (2919 days later) »