« first day (942 days earlier)      last day (4231 days later) » 

21:00
@phenomnomnominal I sleep naked.
@rlemon not necessarily
@Zirak Hangman doesn't work in the EL&U room
!!/refresh
21:00
As we get closer and closer to the singularity, surely we get closer and closer to the point where we can live forever
@AmaanCheval Someone probably started a game some time ago. Just do a guess
@phenomnomnominal You think she's like Benjamin Button?
aw c'mon...I should really disable the refresh command...
and before I go. bash.org/?104383
@OctavianDamiean, yes
21:01
seen this one before, still funny as shit
also, @FlorianMargaine, that's hawt.
bah, i need to leave for work
too sleepy
Really? REAAAALLYY!? REA-FUCKING-LLY!?
No
Who's flagging that shit? Seriously.
Be a man and step forward.
@OctavianDamiean flagging what ?
21:05
What if the anonymous flagger is a she-flagger?
The link Robert posted.
@Zirak Then she should still be a man and do it.
What if it's a dolphin?
Then it should be a shark and do it.
What if it's a mermaid?
Then it should be a mermaid and do it.
21:10
Touche
What if it's a horse ?
Mermaids ... pfff. Just horny sailors believing a walrus is a hot maritime hooker.
@dievardump Then it should be a unicorn and do it.
What if it's a Magikarp ?
@dievardump Then it should be a Gyarados and still do it.
21:15
@dievardump Then it should become a magic Filet-O-Fish so I can eat it.
Sorry I wanted to find something you would have some difficulties to get an answer
That would make my poop become all magic.
I guess I'd fart glitter.
Thanks for all the details
It was your fault.
so the $ in javascript is not a reserved token, what else isnt?
21:18
Everything except the reserved ones.
i can't find any more that are usable?
only $
And _
!!> var _ = 'lulz'; console.log(_);
@AmaanCheval "undefined" Logged: "lulz"
ooo
is that it?
I think so.
21:20
:(
jQuery basically stole $
> <JonJonB> Harry took the wang. He felt a sudden warmth in his fingers. He raised the wang above his head, brought it swishing down through the dusty air and a stream of red and gold sparks shot from the end like a firework, throwing dancing spots of light on to the walls
I'm crying.
@Connor $ used to be conceptually reserved, but not practically. Now it's just a regular identifier.
im kinda new to javascript and i am having trouble finding out how to achive something like this

say i have these functions

function get(element){
	return document.getElementById(element);
}

function hide(element){
	element.style.display = 'none';
}

how do i rewrite those so that they can be used like this?

get('mydiv').hide()
what shall i search for?
@AmaanCheval Apart from all the reserved words that don't do anything. :-(
@Connor jQuery? get just needs to return an object that has a hide method.
I just puked a little laughing so hard at that.
21:29
@OctavianDamiean at what, exactly?
> <JonJonB> He ran onto the field as you fell, waved his wang, and you sort of slowed down before you hit the ground. Then he whirled his wang at the dementors. Shot silver stuff at them.
Those guys are so sick.
8 mins ago, by Octavian Damiean
hahaha http://bash.org/?111338
Oh god.
That's hysterical.
The parts with the trolls are hilarious.
Element.prototype.hide = function(){
this.style.display='none';
}
function get(element){
return document.getElementById(element)
}
however, it's generally not a good idea to extend the dom on the fly like this. it is likely to override thirdparty javascript includes
@adkatrit Thanks for the help, so what do you suggest i do better?
@Connor it's ok to use Element.prototype to create custom dom functionality, but keep in mind it's not supported everywhere. That's why there are third party libraries which have done everything for you. consider jQuery.
!!> (function() {console.log(this)}).call(1)
@JamieTreworgy "undefined" Logged: 1
posted on May 15, 2013 by Victor Rodriguez

After exit from suspend mode cpu cooler running very fast Skylab: NASA Commemorates 40th Anniversary of America’s First Space Station More Incredible Images from the Space Station ‘Emergency’ EVA

!!> (function() {console.log(this===1)}).call(1)
21:42
@JamieTreworgy "undefined" Logged: false
anyone know why that is...
@adkatrit ok thanks
@ja
@JamieTreworgy what are you trying to accomplish
@Connor can you please star my answer?
@adkatrit wondering why passing a number as a binding context results in it being wrapped in a Number object, is there a rule that the context must be an object?
> [...] ToObject is applied to all other [non-null and undefined] values and that result is passed as the this value.
@Zirak ah ok... looks like it's been changed in ECMA5 to act like I want it to.
@OctavianDamiean Yes, I've read bash.org :P
@Zirak beat me to it
@Zirak you read all the things?
You won't something in the top 300 I haven't read
21:54
"use strict" is for sissies
@phenomnomnominal apparently visual studio handles building automatically, so I don't have to worry about it. Keeping true to my word and writing my first big CoffeeScript app
@Zirak won't find*
Thanks for "correcting" me on something obvious that I'm very well aware of and can't fix
You're welcome
!!> (function() {"use strict";console.log(this===1)}).call(1)
21:56
@BenjaminGruenbaum "undefined" Logged: true
@JamieTreworgy ^
@BenjaminGruenbaum heh.. right.
@AmaanCheval I'll kickstart the remote face stabbing device, you gonna pledge? :D
Sure :p
I didn't realize he couldn't edit it now, though
@BenjaminGruenbaum, oh that's nice, so you just save and it works? I like livereload because you don't even have to refresh. What are you making?
21:58
Answering semi-obscure but technically viable js questions (as in, "spec questions") sucks. I get 2 upvotes and no babes.
But answering the cookie-cutter questions... shudder
@phenomnomnominal Yep, just save and it works, can set it to auto-save when it works, apparently visual studio does this (with a plugin that it installs with automatically) with less, sass, and CoffeeScript. Amusingly, TypeScript support is lacking
@Zirak Just share the damn question
No! I don't want the "hurr durr I got 7 upvotes because I linked it to this room"
@Zirak Wait you can get babes on SO? I've been doing it wrong then ...
Even MS know TypeScript is dumb
@OctavianDamiean :earm tp read. damn it! I got no babes!
22:00
@Zirak I feel you man, stuff like stackoverflow.com/a/15648868/1348195 gets two upvotes where "How derr jquery global" stackoverflow.com/questions/16435512/… is an instant +7
@BenjaminGruenbaum it's just the sad reality, a lot more people listen to Katy Perry than... say... Frank Zappa
Probably, but I never got all the instant +1s for an answer users 'can relate to'
@Zirak Okay, I'm not trying to be annoying. I don't get what :earm means / could mean.
People should upvote stuff that is genuinely useful and can't be found in a google search
@AmaanCheval Hint: m => n
22:04
Ah
@BenjaminGruenbaum That was a pretty good answer. Now mine pales...
2
A: Object.prototype.valueOf() method

ZirakLet's look at what valueOf (that's a link) does: Let O be the result of calling ToObject passing the this value as the argument. ToObject: String Create a new String object whose [[PrimitiveValue]] internal property is set to the value of the argument. See 15.5 for a description of...

It's a catch 22.. if it can't be found in a google search, it probably doesn't come up much. I always thought the "too localized" reason for closing was odd... seems to say "if your problem is hard to find an answer to, most likely because your particular situation doesn't come up much (and therefore you couldn't find it with google) then it's not appropriate"
@Zirak Doesn't matter, I'm sure it'll reach souls looking to get started in writing readability tools. SO rep isn't a good indication of anything, otherwise I'd be answering jQuery, Regex, and CSS questions all day. I like answering good questions, I don't care if they don't get appreciated by the masses
It helps me formulate my thoughts and I try to answer questions I was unsure how to solve before
I immediately regret running this: for (var i = 0; i < 100000000; i++) { a += 'abcdefghijklmnopqrstuvwxyz' }
@JamieTreworgy I guess no one came with a better system. Too localized questions are usually like "Why doesn't this work?" which gets "You forgot to put your code in document.ready"
22:08
@BenjaminGruenbaum yeah yeah, I know the rep meaninglessness. Just felt like ranting.
@Zirak @BenjaminGruenbaum it should be inverse weighted by tag popularity
@adkatrit probably not
@BenjaminGruenbaum how else can you account for that problem?
@Zirak I wouldn't say meaningless, just not a good indication. A really bad developer is unlikely to have high rep but the other way isn't always true
@adkatrit You don't, you accept that easy questions are a lot more popular than hard ones
There should be a maximum rep possible for a question
22:11
@phenomnomnominal that would help
@phenomnomnominal There is, after getting 200 reputation you stop getting reputation for that question for that day
yeah but that's per user
If 10 people answer an easy question, the rep would get split
vs 1 person answering a hard question
I guess that's why it's called "Reputation" and not "Expertise Level"
I don't think the system is broken really, I just don't like it very much
(Well reputation, I love so)
Too bad there's not some better way to distinguish quality from popularity on SO.
I can't really think what it might be, other than giving more weight to people who have higher reps.. which of course is a popularity contest (or a measure of how much time you spend on SO)
22:19
The problem is that "quality" is difficult to measure. Is a short and concise answer quality? or is an exhaustive answer quality? It's relatively subjective
user1596138
Somebody make the chatbot do something cool.
@adkatrit I agree
user1596138
!!/hang stuff
  +---+
  |   |
  |
  |
  |
__+__

---------
  +---+
  |   |
  |   O
  |
  |
__+__
stuff
---------
user1596138
I'll go to a sandbox..
22:22
!!> JSON.parse(JSON.stringify(undefined));
@phenomnomnominal "SyntaxError: JSON.parse: unexpected character"
That feels like shitty behaviour
!!> console.log(document.cookie)
@adkatrit "ReferenceError: document is not defined"
derp!
22:28
If you want to go somewhere, goto is the best way to get there. [ken]
Last one today.
> <Fashykekes> Capitalization is the difference between "I had to help my uncle Jack off a horse.." and "I had to help my uncle jack off a horse.."
My server is sending Access-Control-Allow-Origin:* but I can't make AJAX requests to it, any ideas why?
NVM, figured it out
22:45
22 messages moved to Trash can
There's always a better solution than a regular expression but the regex one will make you look smarter
23:23
any node + mongo gurus here?
help me with my question please: stackoverflow.com/questions/16576541/… :)
How to clone db from host to host using node mongodb native driver
Did you try to rtfc?
If I recall correctly, you can't in one driver and you can from the other but shouldn't
nice. Adobe Edge is pretty sweet
@BenjaminGruenbaum, I don't even want to imagine the code that that generates
Shouldn't be too much worse than coffeescript :)
I bet a million dollars it's a billion times worse
Dreamweaver anyone?
Not really the same thing, if you produce a canvas you can go nuts for all I care, you're not damaging page structure
Your damage is confined to a single element
If I want to create a small animation that isn't trivial in CSS3, you bet your ass I want to use a tool like Flash and not start hand-crafting my animations
23:54
Keyframed animations hell yeah
hello
is there any way to set value of one label or span each time is loaded by ajax
@begiPass yes
23:58
how
:)
have you googled that sentence?
in client side
@begiPass how would you know when the AJAX was loaded?
use a templating system
I want to put the value of one input to my span or label
23:59
@begiPass that's awesome , what have you tried?

« first day (942 days earlier)      last day (4231 days later) »