« first day (748 days earlier)      last day (4199 days later) » 

7:00 PM
grabs popcorn troll fest!!
 
@Vivix it...can make debugging harder? idk
 
I've got a ton of sub-pub functions in public- nothing security risky abou the site, but- having people write admin messages in console to chat wouldn't be fun-
 
there is this argument about hiding stuff in JS snook.ca/archives/javascript/no-love-for-module-pattern
i kinda buy it
but i still hide stuff
/eternally confused
 
Hm- I dunno- I want to hide it to avoid people using some of the sends and receives for joking or trolling
 
@FlorianMargaine I assume your question has been answered?
 
7:03 PM
@Zirak yeah, I don't see why it has a name though
 
i would hide it for the same reason, and also just it feels neater
but idk if that's best practice
 
I mean... it's logic
 
So, did you make it better?
 
and I don't see why you're making so much code
 
Can you elaborate?
 
7:04 PM
@tuff That's the thing. I guess as long as I don't break it, it should be fine.
 
@FlorianMargaine you mean it seems obvious so why give it a special name?
 
@tuff yeah
@Zirak nah, lazy
 
Does a div trigger onresize event?
 
@FlorianMargaine I wrote code until the problem was solved, then I rinsed and re-wrote until I couldn't think of anything else. So, from my point of view, I've written the necessary amount of code. That's part of the reason I've asked for a review.
 
8
Q: How to detect DIV's dimension changed?

William ChoiI've the following sample html, there is a DIV which has 100% width. It contains some elements. While performing windows re-sizing, the inner elements may be re-positioned, and the dimension of the div may change. I'm asking if it is possible to hook the div's dimension change event? and How to d...

 
7:07 PM
@FlorianMargaine Then why give anything trivial a name? Loops don't need names, isn't "going over something" obvious and logical? And functions, and variables, and seconds, and ...
 
> Only the window object generates a "resize" event. The only way I know of to do what you want to do is to run an interval timer that periodically checks the size.
 
Memoization has a name because sometimes you do it, and sometimes you don't. I suppose
 
Memoization has a name because it's a thing.
Dude dafuq with the images?
 
@Zirak no, I mean, it's caching, why does it have a special name...
 
1 message moved to recycle bin
 
7:08 PM
But it's not exactly the same? I didn't read it
We're posting cute ears!
 
We never, I repeat: NEVER!, link w3schools in the js chat room.
2
 
@FlorianMargaine because its a special kind of caching i guess
 
8
Q: What is the difference between Caching and Memoization?

JohnI would like to know what the actual difference between caching and memoization is. As i understand both involve avoiding repeated function calls to get data by storing it.So whats the difference between the two ? Thank You

 
i know that feel tho, that sometimes extra names are redundant
 
Memoization specifically talks about functions. Caching is the broader term.
 
7:09 PM
but that's mostly just because i'm slow and have an easier time remembering concepts than names
 
Sometimes, but just like legaleze, sometimes there's a difference for a reason
 
alright...sorry...first timer
 
like, a function is a method is a proc is a subroutine...right?
 
lol well now you know
seriously, it's a horrible resource and more often wrong
 
yes I do!!
 
7:09 PM
like in this example
 
 
yes you're right
 
I heard a ping
 
2 mins ago, by rlemon
> Only the window object generates a "resize" event. The only way I know of to do what you want to do is to run an interval timer that periodically checks the size.
@Vivix Zirak likes to bin old conversations that have already made their way past the current viewing area
it's his daily power trip ;)
just like when I bin w3schools
 
Ooh- and the edit / removal of a ping makes it go ping?
 
7:10 PM
oh like check the size every one second..
 
All our cute ears vanished?
 
@tuff They're subtly different, but really, now, everything's a function. If you wrote Assembly or possibly Fortran, you'd have cared about the difference
@rlemon It bothers me that it exists
 
@Moiz yes, or listen to the window resize, or you know, because you are the one with the programming knowledge, you should know what and where would cause the div to resize and listen there
like if the div takes some user input, while the user is inputting check the div size
there should never be a case when you don't know what is causing the resize
 
I am working on a plugin for dojo and I don't know who and when whill they resize the plugins div...
 
but you know how?
 
7:12 PM
there will be either a handle, with some drag properties / events
you listen there
idk dojo so that is a guess
 
Basically, if you know how, you might know where. Vague as that is
 
yes there is but I will have to use another widget for that
 
thus is life.
 
lol
 
don't worry, it's turtles all the way down.
 
7:13 PM
a div won't resize unless A) it is reflowing in the document, meaning window was resized, meaning you can listen to window.resize B) you made some way to resize it
 
just wwanted to make sure there is no other way
 
or i suppose for A, some other content was resized/added, and you can listen there too
 
it will resize if another div of fixed size is added to the container
 
How don't the turtles fall?
 
7:15 PM
"Turtles all the way down" is a jocular expression of the infinite regress problem in cosmology posed by the "unmoved mover" paradox. The phrase was popularized by Stephen Hawking in 1988. The "turtle" metaphor in the anecdote represents a popular notion of a "primitive cosmological myth", viz. the flat earth supported on the back of a World Turtle. A comparable metaphor describing the circular cause and consequence for the same problem is the "chicken and egg problem". Another metaphor addressing the problem of infinite regression, albeit not in a cosmological context, is Quis custodi...
 
yes, more content being added, so listen to that
 
because it is turtles ALL THE WAY DOWN
 
That seems like a very stupid way to stack turtles.
 
well sometimes it is there but hidden...several variables
 
Dude, I can't balance 2 bottles on one another, I think I'd have difficulty balancing an infinite number of bottles
 
7:16 PM
only need 1 turtle
 
just consiering all the use cases
 
Where's the elephant?
 
(and 4 elephants)
 
What if the turtles are held in a force-field?
It reeks of Sith
 
like this?
 
7:17 PM
<3
 
That turtle looks a bit distressed
 
Like some other turtle behind him owes him an explanation
 
^ Zirak, I found a better way to stack them
 
pfft, shop'd. Cheater.
 
7:18 PM
how do you do that awesome wikipedia quote thing
Yertle the Turtle and Other Stories is a picture book collection by Theodor Seuss Geisel, published under his more commonly-known pseudonym of Dr. Seuss. It was first released by Random House Books on April 12, 1958, and is written in Seuss's trademark style, using a type of meter called anapestic tetrameter. Though it contains three short stories, it is mostly known for its first story, "Yertle the Turtle", in which the eponymous Yertle, king of the pond, stands on his subjects in an attempt to reach higher than the moon—until the bottom turtle burps and he falls into the mud, ending his...
oh. haha
 
Pop Quiz: How is Dr. Seuss pronounced?
Also, what's his first name?
 
zeus?
 
zeus
 
his first name is doctor
obviously
 
Ha funny
 
7:20 PM
Theodor Seuss Geisel
 
just like dr who
 
Theodor Seuss Geisel (; March 2, 1904 â€“ September 24, 1991) was an American writer, poet, and cartoonist most widely known for his children's books written under the pen names Dr. Seuss, Theo LeSieg and, in one case, Rosetta Stone. Geisel published 46 children's books, which were often characterized by imaginative characters, rhyme, and frequent use of anapestic meter. His most celebrated books include the bestselling Green Eggs and Ham, The Cat in the Hat, One Fish Two Fish Red Fish Blue Fish, Horton Hatches the Egg, Horton Hears a Who!, and How the Grinch Stole Christmas!. Numer...
 
Seuss is pronounced soyse
 
soy sauce?
 
And his name is Ted Geisel.
 
7:21 PM
If I may repeat my earlier request, make this better: tinkerbin.com/4HRcQBMv
 
his name was Ted Geisel /solemn chant
 
I don't like it
 
@KendallFrey zeus, and Theodor bitch!
Teddy to his friends.
RLEMON FTW!
I am master of the google-fu
 
wow.
Pronunciation hub?
 
;)
 
 
tinkerbin was hard on my eyes, because javascript was on the bottom in that way
 
you can switch it to fullsize js
click the tab
 
wow, it appears he actually didn't go by ted or teddy but "theo"
 
He went by Dr. Seuss, moron.
 
He usually went by foot
 
7:25 PM
Theo, long time since I've heard anyone with that nickname
I guess..it's only suitable, seeing as he's old too
 
I'm talking about the author, whammy!
 
I don't even know what I just said
 
I went to school with a girl named thoedore and we called her teddy
 
@Zirak Marvin K. Mooney, you can go by crunk-car if you wish...
 
never known a man with that name
 
7:26 PM
Surprisingly, I don't even drink alcohol, yet manage to look like an idiot most of the day
 
@rlemon thats cute
 
Huh- never heard it used as feminine name
 
@rlemon What did you call her teddy?
 
@tuff she wasn't
 
Teodor Felgen
 
7:26 PM
@KendallFrey Teddy is short for Theodore
idk why
like Dick is short for Richard
 
@rlemon im sure she had other redeeming qualities
 
@tuff she was good at sports.
 
Did my joke just go out your other ear?
 
@KendallFrey I read what as why, my bad
 
7:28 PM
I just thought you were being thick like usual ;)
 
Look in the mirror, buster.
No, your face :P
 
The best response to a troll I ever heard, despite being silly and not that clever, was: "Don't you have a neck to shave or something?"
Why did I write that: your face reminded me of "Your face is beard"
 
slinks away in defeat
 
ahhh, nice and snug
 
7:33 PM
ah that's scary
 
on that note, brb
 
posted on November 02, 2012 by Victor Rodriguez

Discrete FPGA will probably win the 7400 logic competition Computer tracking of billiard balls Ubuntu: No more alphas, just one beta Los mejores gadgets inspirados en la ciencia ficción Los videojuegos y el arte se dan cita en Buenos Aires

 
hhh
Does someone recall the social smile-sweet-guy website that as openourced the code?
 
Netscape?
 
7:42 PM
grr, I hate compiling node. v8 compilations takes the majority of the time.
 
hhh
No, it is the thumb up site, nerd-biased
Very popular
 
Reddit? Digg? StumbleUpon?
You've got to give us more info.
 
8:01 PM
social smile-swet-guy?
@rlemon saved D'aw
 
Yawwwwwwwwwwwwwwwwwwn
 
hhh
SomeKittens thank you, it is reddit.
 
click here to browse doesn't work
[x] buttons don't work
 
8:13 PM
its just a UI skeleton. i dont expect it to work anyways btw thanks for the click here i almost forgot it(XD)
 
I'd tone the red a bit- but it looks really swanky and clean. The UI that is.
 
aigght now lets make the baby roll with some more js ;D
 
Which colour is better here? Blue or purple?
 
Not grey and spinny
 
IMO: Blue
 
8:20 PM
IMO BLUE
 
purple reminds me of clicked links. Makes them less visible in a quick eye-scan.
 
The blue/purple ones are files included with "pre-processor" commands
And thanks, blue it is
 
wat
 
I can't stop watching that
 
8:25 PM
o.o...
 
found it on reddit with the headline "Someone over inflated the wildlife again."
 
Gives a whole new meaning to the term Balloon animal
 
@Zirak ubuntu, how I miss you
F U Notepad++
Fold XML node, select the folded code, delete, only deletes the top line o_O??????
twitch...... twitch
 
8:49 PM
heh, sucker
 
9:03 PM
in C#, 2 mins ago, by rlemon
  ___________
 /=//==//=/  \          "memory leak"
|=||==||=|    |           A tale of wonderment
|=||==||=|~-, |            and one mans quest for
|=||==||=|^.`;|             eternal happieness.
 \=\\==\\=\`=.:
  `"""""""`^-,`.       - by Robert Lemon
           `.~,'
          ',~^:,
          `.^;`.
           ^-.~=;.
              `.^.:`.
with that, i'm off
 
Is this a proper way of dividing a string or is it better to use slice();?

start.substring(0,(start.length/2));
(into two equally large pieces)
 
Looks okay to me
 
How does substring handle decimals?
Quite nicely, it seems
 
@Zirak It rounds up to nearest char, I guess? :O
 
beer mdn String.substring
urngh
Welp I broke the bot. Whoops
 
9:14 PM
"urn" and "gh"
Why do Java developers need glasses?
 
facepalm that was terrible
 
... Because they can't C# ! haha
 
Future-seeing Zirak is once again correct
 
That's why I like the JavaScript chat ;)
 
It's functional? badum-tsh
 
9:19 PM
Knock, knock... who's there?
--- long pause ---
Java :)
 
I've got a great knock-knock joke! You start
 
Knock, knock
 
Who's there?
 
JavaScript
 
beer!/mdn String.substring
@Zirak Y U NO MAEK SENSE!? Could not understand mdn String.substring
Awesome. Let's see if I managed to screw other things up
beer!/define cow
@Zirak Could not process input. Error: Object [object Window] has no method 'urlstringify'
 
9:23 PM
JavaScript 2.0
 
That looks quite errory
 
Wish there was a real compiler for JavaScript
 
And I thought I could get away with using this({ ... }) sigh Well, beauty has no place here
I just have to look at you to realize that
beer!/define cow
 
Anonymous functions. Why?
 
@Zirak cow: The mature female of other large animals, such as whales, elephants, or moose. (source)
beer!/google foobar
@Zirak Could not process input. Error: args is not defined
facepalm
 
9:27 PM
What makes programming so fun? You build your own things (hobby mostly) and solving problems
 
I like the part with the squid, too
 
I have mixed feelings about JavaScript
 
what is the css top in javascript ?
is it marginTop in javascript ?
 
I'm pretty sure that corresponds to margin-top in css
 
i get in firebug top so what is it in javascript ?
 
9:30 PM
Perhaps it's just top?
 
in css i know there is margin-top and in javascript marginTop but what is top ?
 
How about just top?
 
yes
 
Yes what?
 
style.top
 
9:31 PM
just top
top: 0.120px
 
...exactly, just top. In both css and javascript.
!!/google foobar
 
what diference between margin top and just top?
 
That the former is a margin, and the latter is a position?
 
ok thanks
 
var ever;

for (ever) {
};
 
9:33 PM
You'll get a syntax error
//if you want it to make any sort of sense:
var ever = 1;
for (; ever ;) {}
The syntax error isn't because of semicolons, it's because of your invalid for construct.
for (start; condition; step). You skipped start and step without denoting it.
 
I still have a lot to learn :)
 
Plus, undefined is falsy, so your loop wouldn't have met the condition
 
When I program, mostly there are small things that has nothing to to with the function. For example, I said if instead of else if.
 
Sometimes I go "Oh, I wish there was an unless or except if statement," but then I realise how silly that is.
 
!!/mdn splice
Booya! (@AmaanCheval, @FlorianMargaine)
 
9:51 PM
yay :)
 
The /mdn definition is ridiculous now: github.com/Zirak/SO-ChatBot/blob/master/source/…
Now, what happens if there are no results...
!!/mdn asdaghsduiafnsafudisa
yep, errors everywhere
 
Travelling sucks. I'm friggin' tired.
What doesn't suck is that I'm friggin tired in Florida
 
Congrats!
 
o/
return rlemon;
 
everyone dies
 
10:05 PM
lol
 
hangs head in shame and walks away slowly
 
vultures start eating our putrifying flesh which is poured everywhere, like Legos a disgruntled child threw away
 
You really do need a therapist
 
You were the one who murdered us
 
... that escalated quickly ...
 
10:15 PM
I think what bothers me most is the plurality of 'Lego'.
Here, 'Lego' is it's own plural, like 'sheep'
 
*Lego bricks
Happy?
 
Yeah, that helps =P
 
but but legos
 
@rlemon we're not interested in your sex life...
2
 
10:17 PM
24 secs ago, by Kyle Trauberman
some of us are.
 
...
thanks @rlemon
:P
 
you can't hide from me Trauberman!
 
lulz
 
only because you have italics
 
10:18 PM
and because i'm looking at you through the window over there. nice polo
 
... wtf
 
how did you know
 
room owners have italics
 
what color is it?
 
10:19 PM
orange
 
NOPE
not me
 
ROFL
 
negative
 
blue
 
10:19 PM
ding ding ding
 
That would have been my first guess
 
i'm color blind.
 
Mostly because I fscking hate blue
 
Now that we've deduced what I'm wearing, what's next?
 
Also @FlorianMargaine guessed it first :-P
 
10:20 PM
but that doesn't hinder my ability to wield a knife
</sarcasm>
 
@KyleTrauberman You're wearing just a blue polo?
I see rlemon got the whole package
 
and jeans
 
...so to speak
 
LOL
 
10:21 PM
:D
 
10:58 PM
 
11:19 PM
@FlorianMargaine Well, we can establish that no new matter is being added, so in no way will you gain weight
Assuming that the act of consuming yourself somehow didn't kill you (which it will), and somehow, your bodily functions remain the same, then you'd turn some of your food-self into fat & muscle, but a reasonable portion will be broken down to other ingredients
If you somehow instantaneously eat yourself, then you'd probably be turned inside-out and die
Mind isn't so blown
 
yeah the answer kinda sucks
the questions is just interesting though
 
The answer is actually "neither". You don't disappear (conservation of mass) nor do you become twice as big (also conservation of mass.)
It's much more interesting if you imagine that as a snake eating its own tail
 
11:36 PM
Captin Merica
 
!!/google mdn appendChild
!!/mdn appendChild
 
@Zirak [Node.appendChild - Document Object Model (DOM) | MDN](https://developer.mozilla.org/en-US/docs/DOM/Node.appendChild)
@Zirak [Node.appendChild - Document Object Model (DOM) | MDN](https://developer.mozilla.org/en-US/docs/DOM/Node.appendChild) ; [Dynamically modifying XUL-based user interface | MDN](https://developer.mozilla.org/en-US/docs/Dynamically_modifying_XUL-based_user_interface) ; [document.createElementNS - Document Object Model (DOM) | MDN](https://developer.mozilla.org/en-US/docs/DOM/document.createElementNS)
 
neat. sorta.
 

« first day (748 days earlier)      last day (4199 days later) »