« first day (976 days earlier)      last day (3974 days later) » 

4:00 PM
I already knew about this one:
2010: Jimi Heselden, British owner of the Segway motorized scooter company, was killed when he accidentally drove off a cliff on a Segway at his estate at Thorp Arch near Boston Spa.
 
1816: Gouverneur Morris, an American statesman, died after sticking a piece of whale bone through his urinary tract to relieve a blockage.
2
 
@AmaanCheval There's nothing there about me!
 
O.O
GUYS
... and girls
Somebody just bought a $350 SlickText plan :-D
:dances:
 
Congrats!
 
what does that even mean?
 
4:06 PM
It means my business is getting another $350/month
:-D
 
@Benjamin I did not.
 
nice
 
@Ryan I'll get on it
 
@RyanKinal that's you ? slicktext.com
 
@dystroy yep
 
4:07 PM
@BadgerGirl dafuk ?
 
2013: Ryan Kinal, an American, fell off a building while dancing a celebratory dance.
 
@rlemon You better
 
@RyanKinal woa woa
@Zirak hes a "Canadian"
iirc
 
Damn Canadians, living in the US.
 
I'm not quite Canadian
There was a lake between me and Canada growing up
 
4:08 PM
im canadian! yay :D
 
Let's say a user is annoying and you want to bin everything he says. When you post a message instead of posting it it does the following:

- Auto bin all his messages
- edit the bin message generated by binning those messages to contain the original content you wanted to post
 
The last of us.... fans see it
 
@Darkyen I've seen a bit of it played. Seems pretty sweet.
 
dude theres a guy masterbaiting in the game
 
4:11 PM
in Mos Eisley on The Stack Exchange Network Chat, 23 secs ago, by Neal
To all Whovians and Doctor Who fans alike: http://goo.gl/BTR5N :-)
:-)
 
@Connor that's because it's "jQuery" and then the jQuery instance ID...it uses the SAME attribute for every single DOM element, it's the value that is different. The values are the unique ID numbers for THAT jQuery INSTANCE. Therefore, you could theoretically have an infinite number of jQuery instances that all have separate data objects maintained for the same DOM elements because they use a unique ID specific to that jQuery instance
@BenjaminGruenbaum pfft, yea ok :P
 
@Neal I like how someone is being as immature as I wanted to be by s/Wong/Wang/gi
 
@Shmiddty idk who kept making it Wrong
 
i want panera.
 
@KevinMurphy why?
 
4:22 PM
because it's delicious
 
disagree
 
when I ask for a bagel, I have to pay like $1 for a dinky little cup of cream cheese
when I get a panini, the bread is too chewy
etcetc
 
omfg I'm 3 paragraphs in, and that story is just horrible to read
 
> “Well sorry, I don’t know any” Clara says sarcastically as she wraps her mouth around The Wang. They both laughed.
you're welcome
 
4:25 PM
@RyanKinal where on my collab?
@Shmiddty wtf stop it
 
@Domenic 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.
 
why do u have to be an ass ?
 
@Neal cause is an anus or maybe hes anal :?
 
@Neal light-hearted humor === being an ass?
 
@Shmiddty please dont ruin it for everyone. Thank you
it is assinine. what are you? Five?
 
4:28 PM
I wonder which anonymous animal I am
 
@Neal Yeah. Sorry. I just think there's a very specific flavor to Doctor Who, and it's going to be very hard to replicate for basically anybody.
 
@Neal Was it ruined? Was it really?
 
@RyanKinal yea I know. but it would be nice if people did not add random crap to it that is not needed.
 
Can you ruin a puddle of urine?
 
@Neal Yeah. Agreed.
 
4:30 PM
@BenjaminGruenbaum Do I have to tell you when you get mail, or...thing
> From a distance Clara saw a speeding object, almost like a shooting star, whizzing past them, barely missing the TARDIS
How can she see it from a distance, but at the same time, it barely missed them?
 
@Zirak so fix it. not all the writers are native english speakers
 
Did you see Beta Gamma 7 transform to real greek?
 
@Zirak yea. im gunna change that back... its hard to read...
 
You pussy
 
@Zirak Nope. All Ball
s
 
4:34 PM
"Pussy" is a personality
 
@Zirak baaah
 
What does that mean!? Why do you occasionally mutate into a sheep?
 
yea. it's a family disorder.
 
Well, maybe you mutate back into a sheep
 
That may be
 
4:36 PM
0
Q: How can knockout archive this?

MistersI just dont know where to ask. I've seen something that really suprissed me when i saw it. It was this with kockout.js <input type="text" data-bind="value: firstName" value="Light"/> function myfunction() { alert(this.firstName);//display 'Light' } ko.ApplyBindings(new myfunction()); How cou...

 
> 762: Li Po (Li Bai), Chinese poet and courtier, supposedly tried to kiss the reflection of the Moon beside the boat in which he was travelling, fell overboard and drowned.
That's a manly death
Befitting of @Neal
 
m59
Does anyone have any official idea whether crawlers actually consider display: none?
 
Crawlers don't understand css
They don't care about it. At least, most crawlers you'll see.
 
^ not true
Crawlers do, in fact, consider display: none.
 
4:39 PM
@BenjaminGruenbaum but then you need to post a message
I mean, I could do it.
 
If you mean "crawlers" like the Google pagerank algorithm.
 
but I don't see the benefit of it
 
m59
@RyanKinal sigh, that's so unfair.
 
The average crawler doesn't go to the effort of parsing css and building a tree
 
Not really
 
4:40 PM
Google isn't your usual crawler
 
m59
It's not hiding it to cheat, I really just need the content hidden a moment.
 
If search engines didn't consider CSS, then it would be remarkably easy to cheat.
 
@m59 then have it shown by default with css and hide it with js
crawlers know nothing of the js alterations to the DOM (normally)
 
<div style="display: none">porn, sex, xxx, free porn</div>
<div>My page about me</div>
^ omg first on Google for everything
 
!!/google porn
 
YOU LIED TO ME
 
how would you define js alterations? if there is a timer or chat connection that pulls messages from server and shows them in the dom? how long should it wait?
 
lol
 
<div id="google">
  porn, sex, xxx, free lesbians
</div>
<script>
$('#google').hide();
</script>
 
m59
Yeah, I get that, but it seems like the crawlers are completely at odds with the best stuff we can do lately.
 
4:42 PM
Google, these days, also understands JavaScript.
 
yea google is a bitch for not letting us cheat
 
well yea just use a headless browser
 
m59
If ^ that is true, then that would be a win.
 
but still, how long you wait
 
But Google rank (also) comes from links, etc
 
4:44 PM
Well yeah, that was google's innovation
 
jQuery peeps.. say I have some click events already defined for an element. how would one go about forcing some code to execute before those already defined handlers?
 
anyone here have a twitch.tv acocunt?
 
@rlemon you can't just restructure the code?
 
for the chat
 
afaik, jQuery doesn't support binding to the capturing phase, so you'd have to use a vanillajs solution
 
4:53 PM
close ?
1
Q: Javascript closures and recursion

cereallarcenyI've been reading more specifically into the closure concept of programming, particularly pertaining to Javascript. I'm not quite there yet in understanding how it's any different from the Javascript code I've been writing for years though. I understand the concept of recursion as well, but I'm w...

 
So fucking unity has a fucking ripoff of javascript
which is fucking turnoff :-(
since they call it JS
 
:-/
 
@Darkyen your sissy was in here yesterday. Are you feeling better? Did you get the whiskey/orgasm/cigarette situation worked out?
 
@Shmiddty no
i went for a walk at 2 am in morning
came back at like 4 and passed out
had to vent myself out :P too much stress
 
> The Doctor screamed like an excited fangirl.
No. Just no.
 
4:58 PM
lol
 
:sigh:
 
Fanfiction is the lowest form of literature, just saying.
 
Yep. Pretty much.
 
(if you can even call it literature)
 
Anyway... time for a change of location. This lack of SSH is getting annoying.
 
5:02 PM
Is this dirty code?
for(var i=0; i<100; i++){
  switch(0){
    case i%15: print("FizzBuzz"); break;
    case i%5:  print("Buzz"); break;
    case i%3:  print("Fizz"); break;
    default:   print(i);
  }
}
 
Seems reasonable.
 
the output isn't correct though
 
That switch (constant) is pretty sketchy
 
hrm
 
> 2010: 20 crew and passengers died in a plane crash near Bandundu, in the Democratic Republic of the Congo, when a crocodile, being smuggled by one of the passengers in a sports bag, freed itself and panicked the passengers who all ran towards the flightdeck. The tiny Filair L-410 Turbolet became unbalanced and crashed, despite the lack of any technical failure. One passenger and the crocodile survived.
 
5:06 PM
@JanDvorak dafuk
@Shmiddty lol
Are people starting to plan their deaths :?
now
 
> 2012: Uroko Onoja, a Nigerian polygamist businessman, died after being forced by five of his six wives to have sex with each of them. Onoja was caught having sex with his youngest wife by the remaining five, who were jealous of him paying her more attention. The remaining wives demanded that he also have sex with each of them, threatening him with knives and sticks. He had intercourse with four of them in succession, but stopped breathing before having sex with the fifth
 
user1596138
while(Jhawinsss == single) {
$('.bitches').betterWatchOut();
}
 
You're causing a huge overhead and running an infinite loop
 
Jhawinsss.isSingle
 
var foo = 5;
In the above example foo will automatically be inferred to be an integer value. Thus Unity can apply a lot of compile time optimizations, without costly dynamic name variable lookups etc. This is one of the reasons why Unity's JavaScript is on average around 20 times faster than other JavaScript implementations.
v8 can suck ass eh ?
 
5:09 PM
Bad joke, horrible implementation. 0.5 out of 10
 
also, Jhawinsss.foreverAlone always evaluates to true. strange.
 
user1596138
:(
 
Jhawinsss.isSingle is a constant :c
 
user1596138
Haha, was supposed to be getting married this year.. Funny how bitches work, I guess.
 
@Jhawinsss You're 18, right?
 
user1596138
5:11 PM
@Shmiddty Yeah. That's why I'm cool with not being married right now...
 
user1596138
That would suck.
 
The fact that you ever proposed...
 
@copy the more i am reading about unity's javascript the more i am getting against using it
 
user1596138
It happens... We were together for years.
 
@Suja if you are around say something pls -_- // now its her turn to play the hiding game i guess
 
5:12 PM
@Darkyen I was talking to Jhawsomething
 
ah okay
Implementation :?
 
And I'm personally for more type-strictness
 
@copy but in javascript :?
 
"use stricter";
 
i like type strictness but in a languages like CplusPlus
 
5:13 PM
No joke, I'd like that
 
i'd hate that :P
PS isnt asm.js kind of like that ?
 
user1596138
@copy 0.5 > 0 ;)
 
1771: Adolf Frederick, King of Sweden, died of digestion problems on 12 February 1771 after having consumed a meal of lobster, caviare, sauerkraut, smoked herring and champagne, topped off with 14 servings of his favourite dessert: hetvägg served in a bowl of hot milk.[36] He is thus remembered by Swedish schoolchildren as "the king who ate himself to death.
 
Get rid of everything except for Number -> String conversion (and 2-3 more)
 
holy food
 
5:15 PM
hi
 
Access with dot is an error if the key is undefined
 
hi all
 
user1596138
@FathahRehmanP hi
 
i need a small help
 
user1596138
@FathahRehmanP hi
 
5:16 PM
what does this do?
!function () {...};
 
@Connor returns false
 
http://pnrapi.alagu.net/api/v1.0/pnr/1234567890
result of above http request is a json object . i wanna know how to request for above data and how to process it
 
@KendallFrey @Jhawinsss thanks
 
i wanna know how to do it javascript
 
5:19 PM
@FathahRehmanP are you using jQuery?
If not, look up XmlHttpRequest
then JSON.parse
If you're using jQuery, it's just $.getJSON
 
1 message moved to Trash can
 
Also note that there are severe restrictions accessing cross-domain URLs
!!tell fathah format
 
@fathah Format your code - hit Ctrl+K before sending and see the faq
 
1 message moved to Trash can
@FathahRehmanP indentation please
I hope your code doesn't look like this
 
just a second
 
5:24 PM
Can anyone point me in the direction of a light-weight wysiwyg (not HTML based output) that doesn't have dozens of dependencies?
 
@Incognito see if TinyMCE satisfies your needs
 
@JanDvorak TinyMCE does something other than HTML output?
 
o/
 
Was?
 
5:26 PM
oh. sorry, misunderstood
 
@FathahRehmanP please use pastebin
2
 
@rlemon \o
 
@FathahRehmanP or at least less indentation, so that it doesn't line-wrap
 
Oh man. Is that allman style indenting?
That's awful.
 
5:28 PM
@Incognito I think it's an effect of line wraps
 
man is this chat code ever stupid
@Zirak I feel for you having read a lot of it
 
and yes, please use the egyptian bracket style (control word { \n \s content \n })
 
1 message moved to Trash can
@FathahRehmanP looks good; you don't do anything with the result, though
 
5:31 PM
Is there no light-weight wysiwyg that doesn't spit out html?
:(
 
@Incognito ... just kidding ... wpf :$ :$
 
@Incognito what's the point without HTML?
 
@JanDvorak - but
document.getElementById("content").innerHTML = xmlhttp.responseText;
should print something right?
 
user1596138
What's everyones favorite indentation style.
 
@Incognito What do you want it to output?
 
5:33 PM
@KevinMurphy I want markdown or some other format.
 
@FathahRehmanP when are you setting the innerHTML?
 
@Zirak Something that doesn't let someone just send me <script> tags or <b/onclick=alert()> tags
 
Maybe SO's editor?
 
@Zirak how do you programatically edit your last message on the chat?
 
@Zirak Yeah I saw that one but it's not exactly abstracting the markdown.
 
5:34 PM
the bot can do this yes?
 
@JanDvorak - its in html body
<div id="content"></div>
 
g+ does it in a clever way using json
 
user1596138
@FathahRehmanP It has no innerHTML.
 
@FathahRehmanP I mean, where is the call to ... .innerHtml = ...
 
@rlemon It doesn't edit, but IIRC that wasn't too much of a problem
(bleur)
 
5:35 PM
hrm.. i've been going over there obfuscated code for like 20 minutes now
can't figure it out
 
yeah, you just send a POST to /messages/msgid, with fkey=your_fkey&text=new_text
 
@FathahRehmanP if you're doing it outside the response callback (onreadystatechange), you're doing it too soon
 
damn, I didn't expect it to be that wasy..
 
if (xmlhttp.readyState==4)
								{
									document.getElementById("content").innerHTML = xmlhttp.responseText;
 
should work
except if the JSON contains HTML
then the HTML will be treated as such by the browser
 
5:37 PM
@Incognito So you want something which displays html and stores markdown?
 
@Zirak Basically, yeah.
 
@JanDvorak- pnrapi.alagu.net this is the site which providing that api
 
I've seen things like hallojs.org but it's kind-of buggy and has a bunch of deps.
 
@FathahRehmanP is that your website?
 
@JanDvorak - no
 
5:40 PM
The API doesn't support cross-origin resource sharing, and you're not at the same origin either. The browser won't let you, then.
Look up "same origin policy"
 
@Zirak I like the way G+ does it, sends an array with tokens for highlighting and messages as strings. Pretty slick
 
@JanDvorak - I'm not good in javascript. Please tell me how to collect that info
 
It supports JSONP: you create a global function, and then create a script tag that loads a piece of javascript, which then calls your global function.
 
I don't need full-on HTML editing, just bold, h1, stuff like that.
 
Or, you can use a server proxy.
 
5:42 PM
is it complicated?
 
@Incognito Support for oldies as well?
 
0
Q: Map building - Tower Defense

Dan KBefore diving too deep into my question, let it be known that I am learning as far as java script goes and figured a simple Tower Defense game would be an excellent way to learn things. So I have found a simple background image with a path drawn on it and my question is how would I go about buil...

 
@FathahRehmanP the JSONP URL is well documented, and creating script elements is not too hard
 
@Zirak I'm just sticking that as a 'nice to have'
I'll just make them type raw markdown. Living in the past is a choice.
@eazimmerman fyi, some of those links are dead.
 
@JanDvorak - i dont have any idea about it. can you please tell me some more info?
 
5:44 PM
If not, you can always build a rudimentary version. Displaying markdown makes one library, but the underlying text and stuff can be glued without too much of a problem.
Although WYSIWYGs suck
 
@FathahRehmanP on creating script nodes? document.createElement
 
I like the split view.
 
@JanDvorak - can you write some sample code?
 
I don't know what I did :/
 
Man I need to write that jsonp extension to that xhr gist thing
 
5:45 PM
@FathahRehmanP I would use jQuery for AJAX
especially for JSONP
 
Don't listen to him, jsonp is easy
 
JSONP or "JSON with padding" is a communication technique used in JavaScript programs which run in Web browsers. It provides a method to request data from a server in a different domain, something prohibited by typical web browsers because of the same origin policy. Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server other than server1.example.com. A few exceptions include the HTML element. Exploiting the open policy for elements, some pages use them to retrieve JavaScript code that operates on dynamically gener...
There's examples of it in the wikipedia page.
 
user1125394
that's respectable to do that vimeo.com/66365713
 
It has a really crappy name though...
 
With jQuery:
$.ajax(url, {
  data: "jsonp"
}, function(response){
  $("#content").html(response.html)
})
 
user1125394
5:47 PM
@Zirak yes the 2 first letters
 
JSONP is more js than json
 
@Zirak the response type is JSON
 
user1125394
note you need jquer 2.0 to have a working error cb for jsonp, expiremented it lately
 
If you really want to avoid jsonp you could just set up your load-balancer to create a new backend service on some port and start an ssh-tunnel to port-forwarding to the new host.
 
It's deliberate xss
 
5:48 PM
^
 
im trying to work this out jsperf.com/native-sizzle-js-vs-queryselectorall/2 how come jQuery is faster than Sizzle?
 
XSSR?
 
Which I've argued several times before
 
Then you can use same origin and control the responses without introducing any extra webservers
(damons anyway)
 
@Connor jQuery uses document.getElementById when possible. Sizzle, IIRC, doesn't
 
5:49 PM
@Zirak Well, it's the same as loading libraries from another server
 
@Connor uh, it's not? Higher is better
 
this girl is wearing a skirt that looks like a doily.
 
@JanDvorak It depends on what build you're using.
 
idk what we are talking about
 
@copy Yeah, it's not always a bad thing. But it's not pure data.
 
5:50 PM
function jsonp(url) {
  var s = document.createElement('script');
  s.src = url;
  document.head.appendChild(s);
}
jsonp("http://exampleAPI.com?callback=foo");
but i'll post this
 
oh, ok shall i load sizzle only if querySelectorAll isn't supported
 
don't rely on selectors
 
selectors
innerhtml
xhr
 
That jsperf is idiotic anyway, like approx. 99% of them
 
it's like I've left for two years and the conversation hasn't changed
 
5:51 PM
Because we're constantly dealing with the same newbies
 
!!mustache Incognito
 
user1125394
anyway I have this deep question since days: is xhr-long-polling fundamentally different from server-sent events?
 
@cx yeah, of course
 
5:52 PM
@cx That question doesn't make sense to me. Explain what each of those things do.
 
user1125394
for me, it's just servers keeping the request, and replying when they want
 
@Darkyen they all look the same to me
 
@JanDvorak - i tried your code but its not working . here it is pastebin.com/PKr9g4rW
 
how does each work on an HTTP level?
 
@FathahRehmanP I used response.html as an example.
 
5:54 PM
Long-polling is a client asking the server for a response every X seconds.
Server-sent events is the server telling a client when something interesting happens.
 
I guess the response JSON doesn't have that key
 
@FathahRehmanP This is why copy/paste programming is wrong. You don't understand what you are doing.
 
user1125394
@Zirak no not that long-polling
 
@FathahRehmanP try console.log(response) to see the whole object in the console
 
user1125394
one made more smartly
 
5:55 PM
There's another kind of long-polling? Oh my...
 
@Shmiddty - i'm not good in javascript, that why i asked
 
2 mins ago, by Incognito
@cx That question doesn't make sense to me. Explain what each of those things do.
 
Your reputation is mesmerising
 
@FathahRehmanP nevertheless, don't copy-paste. Try to understand
 
8888 reputation
 
5:55 PM
or at least read the code
 
@FathahRehmanP There's an old phrase used since the dawn of the internet to help newbs.
@FathahRehmanP Read The Funny Manual.
 
Fixed
 
user1125394
@Incognito long-polling, you will send a request, wait, the server does what it wants, then reply from another event, the client sends again a new fresh request, and so on, the server has also a timeout after which it sends something
 
Somebody vandalized this reputation...
 
@copy Like a baus.
 
5:56 PM
1101 until 9999
 
Nooooooooo!!!!!!!
Now I have to answer things to be cool again.
 
> SyntaxError: Unexpected end of input
 
I can't just ride out the same 10 answers.
 
I hate the stupid error messages
just tell me where I fucked up already
 
just delete this answer:
1
A: Using jQuery to perform a GET request and using the resulting data

IncognitoUse chrome's developer tool, or fire bug. This lets you see any errors, or where the request went, if it was successful, etc...

 
5:58 PM
@rlemon use a prettifier
 
@TheSnooker dont u like the C ?
 

« first day (976 days earlier)      last day (3974 days later) »