« first day (898 days earlier)      last day (4275 days later) » 

17:01
@rlemon I don't know the joined date, but I can do reputation
@rlemon It is stored there
@Zirak then why are users being notified again the next day?
@CCInc It worked fine. I manually temporarily disabled some things, don't remember what or for what reason.
BadgerGirl got it yesterday and today
@rlemon Because it moved browsers
I did kill the userregistered listener fyi
17:03
@BenjaminGruenbaum No it's not
@Zirak it was, the way to test the bot is to type !!/slidepoop , it didn't work
@Zirak so there is no way for you to scrape say the user chat profile page and get the "chat user since" value?
is that too expensive?
@BenjaminGruenbaum it seems, because my pc here crapped out someone else logged in as the bot
@rlemon It's doable, yes. I'll disable the register listener and work on that
meaning no localStorage meaning no user learned commands
@BenjaminGruenbaum You're trolling
oh yeah, it's April fools
17:04
@Zirak no, really, it didn't work, it's two lines after
everyone, im want to build a plugin system, i dont want code, i just want to know, for example i have a page with loads of stuff and in my plugin i want to add the word hello to a specific div, im just trying to imaging how this works, i can understand if this is a unanswerable question
@rlemon Could you show me so I could learn :D
or would it be a case of javascript?
`/learn` is borked?
!!/learn foo bar
@Zirak Command foo already exists
17:06
!!/learn fsdbuhsda blarg
@Zirak Command fsdbuhsda learned
that was for the php room sorry
!!/fsdbusda
@XCritics Command fsdbusda does not exist. Did you mean: fsdbuhsda
!!/fsdbuhsda
17:07
@Zirak blarg
nice
!!/forget fsdbuhsda
@Zirak Command fsdbuhsda forgotten.
!!/learn hal9000
@XCritics Could not process input. Error: Cannot call method 'replace' of undefined
17:09
!!/learn hal9000 "I'm sorry, Dave. I'm afraid I can't do that."
@Shmiddty Command hal9000 learned
!!/hal9000
@Shmiddty I'm sorry, Dave. I'm afraid I can't do that.
17:10
well js fiddle is fucking up for me
room topic changed to "Jay" Script: All about JScript. i.imgur.com/ABEPQRV.png [coffeescript] [dart] [go] [jquery] [jscript] [typescript]
That annoyed the shit out of me
Same, I guess too much awesome to initalize
What about the other one, starts with code can't remember its name
It's amazing how much of that I understand after reading 'The Good Parts'
wtf is with the "chat with an expert"?
17:15
Some stupid bot
trollin the php chat room really hard lol
I tried talking to it for like 5 minutes, and it kept answering my questions with questions
3 hours ago, by Benjamin Gruenbaum
> Expert: Hello, how can I help you today?
> You: Are you gay for Zirak?
> Expert: I could be.
^@Zirak
!!are you gay for Expert?
@Zirak Indubitably
17:17
YOU LYING CHEATING BASTARD
@XCritics so does that code work for you?
it's actually much more simple when you only need deal with HTMLStrings
that assumes no formatting for no indentation
however you could change the code around so a 0 option could be provided.
@Zirak Any way you could sick ChatBot on Expert would be great.
Expert: Hello, how can I help you today?
ChatBot: Y U NO MAEK SENSE!? Could not understand `Hello, how can I help you today?`
Getting the error at the bottom, probably cause I'm trying to use node
lol
such a stupid gist
are you serious?
17:30
Then...don't use document.write
Spaces are better than tabs
@Zirak thanks I changed it to res.write
Is ajax or using forms is the only way to communicate with out server side code ?
I that of not when is we for up to one can get of all when at we u out was your its a get if was a find that its your find
What's with this new phase of bots speaking gibberish?
@geek_guy get requests work fine too...
17:37
My bot doesn't.
@rlemon would it just be easier to use ajax to open the txt file instead of doing it this way?
@AmaanCheval Maybe people read my Markov Chain post...
@AmaanCheval I want to think there is a algo to reading this
like omit every second word or read it in a pattern, 1, 4, 2, 3 or something clever
@XCritics your gist 404's for me
17:46
jay script? wtf
@Jan-StefanJanetzky it's a trademark thing. We can't call the room JavaScript
It's copyright mozilla
All JS questions in StackOverflow will be JScript questions
dahell.. call it ecmascript
jscript is trademarked by microsoft or not?
nope
ECMAScript is, MS purchased it last week
MS now owns the rights to ECMAScript
also.. isnt it oracle who owns the name "javascript"?
5 hours ago, by rlemon
ES7 preview was released, and we're going over to CoffeeScript Syntax it seems
17:49
are you freakin serious?
the world is changing
also.. why would it be a bad thing to this room javascript? i never heard about any sue
and whats with javascriptroom.com?
da hell.. typos in my sentences..
Is game of thrones s03e01 a prank?
@BenjaminGruenbaum Has to be, right?
@BenjaminGruenbaum Yeah, what's up?
17:53
Nope, apparently it's not a prank, unless IMDB is on it too imdb.com/title/tt0944947/episodes?season=3&ref_=tt_eps_sn_3
@Zirak Oh, yeah! That was awesome
@BenjaminGruenbaum Hahahha awesome! :D
afk again. driving home. but srsly.. name it JavaScript
in Room for Benjamin Gruenbaum and Kendall Frey, 21 mins ago, by Hiroto
I knew kendall was trolling, but i wanted to believe benjamin was actually nuts. lol.
in PHP4.1, 47 mins ago, by Benjamin Gruenbaum
@Per-ØivinAndersen dude, it works...
Well done!
in PHP4.1, 46 mins ago, by Per-Øivin Andersen
@BenjaminGruenbaum Ok :) sorry
LOL
(now that nobody lost too much time with it)
3
Q: In what manner you use HTML5 tags, which is better way, and why?

Sonu JoshiIt's not a question actually, I'm looking for opinions from professionals. While, I look into the sources of professionally developed Templates/Wordpress Themes/Blogs, I noticed a quite variations in usage of few tags like <header>, <footer>, <nav>, <aside>, <section>...

Hay guise, I found this cool function called eval. just thought I may share it with you fellows.
4
You can use it to access properties
@KendallFrey thanks, buddy. What's it good for?
18:01
var object = new Object();
var key = 'monkey';
eval('object.' + key + '= "bar"');
I use it for input validaiton its very fast
jay script huh...
eval( " var object = eval( ' 42 ' ) "); eval( " object = object + eval(' object * object ') - eval('object *= object') " ); eval( " alert('object is ' + object) " );
@KendallFrey Best spelling of validation I've ever seen.
So stealth.
It was a legit typo, I just left it.
18:04
"THE DAY I HAVE TO CORRECT JON SKEET'S SPELLING..."
dies
he is still skeet for you?
Yeah, damn cache.
John Skeet has been misspelling his name for years.
lolololol I see what you did there
woosh?
Jon Skeet
18:06
Hold on while I hit you with the Bard Book.
!!/urban jon skeet
ohh, yea. haha. you put in the 'h'
/r/mildlyinteresting
awww skeet skeet skeet skeet skeet skeet
!!/undo
we don't need that
no one needs that
18:08
1 message moved to Trash can
she needs it.
JS IS NO PLACE FOR INTERRACIAL GANG BANGS!
Whoa, I got invited to join the Trash Can!
Guys, do you think I should go?
They need more guys for their circle.
Oh cool.
"Sounds gay. I'm in!" - Ezreal
18:10
jesus... everything on the internet becomes 10x as stupid on April 1
Including you.
indeed
AND UR MOM
Is it a coincidence that JScript rhymes with gay script?
18:15
I doubt it.
I have a feeling there are actually going to be people in this world who think youtube no longer allows video uploads and that google can smell things...
It's funny, though... Back in high school I came up with an idea for smell-assisted user experiences in games and movies. One of these days, I want to make such a device for myself.
There were people who thought the expert chat was real, too. There are people that really think a Nigerian princes needs their help getting $106.3 million dollars out of the country. There are really people who think jQuery isn't javascript.

Put simply, people are dumb. Really, really, really dumb.
@Chris Indeed, and April fools day is a day dedicated to making those people even dumber. haha
Incense/scented oil cartridges that load into a USB-connected burner device, which burns different amounts of scented oils on command... It's possible, but no one really wants to go the extra mile to make one for the consumer market.
18:22
Wouldn't really need a device, it could be a dongle. I want a smelly dongle.
Especially since there are so many scents to replicate, fitting a very small amount of each one onto a cartridge, and not contaminating the burner itself with lingering scents, would be the most difficult parts, not to mention making a very small and safe oil burner.
@ShotgunNinja Its one of those things that would be kind of cool but 99% of people wouldn't want
Oh shi-, I hope Adria Richards didn't see that.
@Chris lolololololol
@twiz I could see a use in movie theaters, though.
@ShotgunNinja yea, I could see it ending up as kind of a gimmicky thing like 3D
except after like a month or 2 the theater would just smell like shit
18:24
@twiz This is why they invented Febreze.
You know what I want to see in movies? Choose your own adventure. If the film were shot with multiple routes and multiple endings, viewers in the theatre could text their choice to a main system so each time you see the movie, it could be different.
@Chris They have those, they're called video games.
like a video game
hahahahaha
Go watch Myst in a theater, I dare you.
18:25
They can't get Tom Hanks acting a video game ending.
@ShotgunNinja how badass would it be to play Myst in a theater though
Imagine if Cast Away let you choose whether to take off with that dude's wife at the end, or to be the good guy
hmmm... I may have to go download Myst....
and rent a movie theater...
I've played Wii bowling on a movie theater screen before, that was sweet
18:28
@Chris haha that's awesome, but also probably the worst choice of games for that.
It was at a brew-and-view, so they had a bar. Specials on White Russians served in a coffee mug, Wii Bowling, then The Big Lebowski showing.
Your Big Lebowski is showing.
@Chris I take back any negative comments.
@ShotgunNinja A video game does not have the same emphasis on plot as a movie. I don't care if Tom Hanks recorded some voices in a video game... a video game is nothing like a feature length movie. Are you just trying to be contrary for the sake of being contrary, or do you like using Google?
@Chris Both, actually. I usually reserve my Google-fu for those who ask banal and extraordinarily simple questions without bothering to look anything up for themselves first, but in this case, I felt it was also appropriate.
18:35
Well it wasn't.
You're bad, and you should feel bad.
Also, if you'd read, it's a video game tie-in to a TV series that Tom Hanks is producing and acting in.
so the argument about story and plot is irrelevant.
The story and plot of the game don't matter, since they're drawing from the more-emphasized one of the TV series.
And yes, I am bad. And I do feel bad.
Don't forget smell.
Your face is ugly and you should feel ugly.
> I might be fat, but you're ugly... and I can diet.
4
haha
18:38
I can diet. In theory.
Every language has an optimization operator. In C++ that operator is ‘//’
In coffeescript, // is the empty regex
@JanDvorak As in, matches only ε ?
As in, matches any position
it compiles to /(?:)/ amusingly enough
i guess that is needed to avoid it turning into a comment in js
18:48
@JanDvorak Oh, so matches Σ* , cool
It matches the empty string anywhere
also, guys... i'm starting to think that maybe tabs are better than spaces
tabs set to a width of 2
seeeeenn itt
i'd use both >_>
spaces in my ascii art, and tabs to indent the whole piece
18:52
\t\t\s^
\t\t<\s>
\t\t\sV
i haven't switched yet... but i'm thinking about it
use spaces
         __+`"j  _,,*-,
  `,   *`/ 'Y7 |"/ FY* |
 ^*-\ / I ___` |/___` /   ,'
`*-,*`   /    *v'    ' `./_,'
  yY7   |       L     I  *_-.
 /  `*__"        \     I~:,\
|K'  /.u \ ______''_____\*+:`
|L|' `'/  \  ""   J_""  |  | |
|     L    '__  _(__)--'   : ,
 \q,` ,       ^^  |-,_  _,/  `
  \L   "..____,.-'    "`    /
   ', dy              ___,-*
     "-,______,..--*``
Best ASCII art I ever did make.
I love $.Callbacks! And now I don't have a question to ask :)
what happened to the javascript room
18:56
javascript is outdated
m59
m59
Can an html5 audio player be made to only play, say...1:30 - 2:00 of an mp3?
if you want to talk about it you can try the php room
lol
0
Q: Why would .on() work but .listenTo() fail?

AndyPerlitchI am working on a backbone project and inside of the initialize function of a view, I am trying to set a listener on a collection, like so: this.listenTo(this.collection, "change:attr", this.render) However this is not catching the event. What is extremely confusing is that this actually works...

m59
m59
nm, I found it
Any ideas on how I can prank my boss without getting fired?
19:01
does he run chrome?
Get him fired.
can you get access to his computer
@Shmiddty You can do anything, you just have to yell "april prank" after. No worry. Be just careful to ensure he survives, as you might have more problems with this strategy in court.
I have a whole grab bag of non malicious but pain-in-the-ass js scripts that could easily be installed as a userscript for all pages
@rlemon I believe so.
tell me more
19:03
eval(b='for(c=new Date;new Date-c<c%1e3;);setTimeout(b,c%1e3)')
simulates lag on a page.
var style = document.createElement("style")
style.innerText = "\
@-webkit-keyframes lsd {                \n\
  from {                                \n\
    -webkit-filter: hue-rotate(0deg);   \n\
  }to {                                 \n\
    -webkit-filter: hue-rotate(360deg); \n\
  }                                     \n\
}                                       \n\
body{                                   \n\
  -webkit-animation:                    \n\
    lsd 10s linear infinite;            \n\
you can run these in your browser console now to see the effect.
I promise none are malicious
(function() {
    var s = document.createElement('style');
    s.textContent = '.trololol:hover{-webkit-transform: rotate(180deg);';
    document.head.appendChild(s);
    document.body.classList.add('trololol');
}());
makes it so when you hover the page all contents flip 180deg
* page is still interactive
/* Makes forms unsubmitable
   Then mocks you in the console like a little bitch... */
[].forEach.call(document.forms, function(form) {
    form.onsubmit = function(e) { console.log('u mad bro?'); e.preventDefault(); return false; };
});
Any EventSource experts here?
/* Makes links jump around while users try to touch them.
   Note: Changes the margin, therefore also often shifts other elements on the page */
function r(l)   {return Math.floor(Math.random() * l) + 'px';}
function e(m)   {m.addEventListener('mousemove', o, false);}
function o(n)   {'A'===n.target.tagName&&(n.target.style.margin=[r(100), r(100), r(100), r(100)].join(' '));}

                e(document);
umm.. I should have minified
19:07
/* Changes background and foreground colours  for all elements on the page - starts after a random time of 30 secs to 90 secs.*/
function r() {
    return Math.floor(Math.random() * 255);
}

function lemon() {
    with(this.style) {
        color = ['rgb(', [r(), r(), r()].join(','), ')'].join('');
        backgroundColor = ['rgb(', [r(), r(), r()].join(','), ')'].join('');
    }
}

function rocks() {
    Array.prototype.forEach.call(document.all, function(item) {
        setTimeout(function() {
m59
m59
@rlemon what is the best way of adding these to chrome?
userscripts
to install open chrome://extensions and drag and drop the script.user.js file to the page
LOL... The simplest question and a 40k user manages to give the worst answer possible :
// ==UserScript==
// @name          MOUSTACHE CHAT
// @author        Robert Lemon
// @version       42
// @namespace     u.mad.bro
// @description   trolololol
// @include       *
// ==/UserScript==
simple userscript header
m59
m59
19:10
LOL so win dude
@rlemon I just implemented this
fun times ?
@david No, that's the empty regex in Chrome for some reason.
Try new RegExp
I think the lag one is the best. it's subtle. the user won't know what the fuck is happening
I would assume that there's no way to install a userscript with a link.
19:13
not unless it's from the webstore
:/
function lag(n/*seconds of lag*/) {
    var now = new Date().getTime();
    while( (new Date().getTime()) - now < n*1000 ) {}
}
function run() {
    lag(Math.floor(Math.random()*10)+1);
    setTimeout(run, Math.random()*10000);
}
run();
^ lag script readable.
2
it's the only time of year where you can get an upvote as well as a vote-close :P — rlemon 6 secs ago
2
I mean +1 for the effort involved in writing that.
vote-close because.. well.. yea.
That's the problem with using eval, why did you think people told you it's evil? Did you think that was a joke? — Benjamin Gruenbaum 5 secs ago
m59
m59
"I think there is a jquery plugin to prevent javascript from world domination."
LOLLLL
threerules.jquery.js gets my upvote
19:21
hahaha
people are voting to reopen it
trolololol
and reopened
April Fools is great.
The experts on this site know less than me... I tried chatting with one and he didn't know a thing. /s
Spin: The bot is "The Expert" we've been chatting with all day. o_O — rlemon 6 secs ago
SO chatbot?
19:25
click on '6 secs ago'
0
A: Developing an Artifical Life program in Javascript & Node.js

Benjamin GruenbaumThat's the problem with using eval, why did you think people told you it's evil? Did you think that was a joke? It is serious business. The ancient scrolls talk of one ninja. One who can combat the beast. In order to combat JavaScript, you must first find JavaScript within. Only a true master ...

!!> "UancientNancientLancientOancientCancientKancient ancientTancientHancientEancient ancientJancientQancientUancientEancientRancientYancient ancientWancientIancientTancientHancientIancientN".split("ancient").join(" ");
@BenjaminGruenbaum "U N L O C K T H E J Q U E R Y W I T H I N"
Has anyone ever hosted an entirely static site? I'm thinking of going amazon s3 on everything, but both dislike the idea of depending entirely on amazon and using their weird DNS system (route 52 or something like that).
question.. Does anyone know if it is possible to force a new tab open in chrome rather than a new window?
No. If the user wanted a new window, they'll get it.
@Zirak I've built an entirely static site... never hosted it, though.
via Javascript
32 secs ago, by Zirak
No. If the user wanted a new window, they'll get it.
19:31
^
That's a Good Thing
@RyanKinal nearlyfreespeech.net looks very fair (and I know a few sites which use it), but dayum...the site is image heavy, and Amazon's prices are bottom low.
@Zirak I'm not sure what you're talking about... I was just saying what coffeescript compiles // to
!!> "haybpx lbhe vaare wDhrel".split("").map(function(b) { return !b.match(/[A-Za-z]/) ? b : String.fromCharCode((b.toLowerCase().charCodeAt(0) - 96 + 12) % 26 + 1 - (b.charCodeAt(0) >= 96 ? 96 : 64 )); }).join("");
19:34
@rlemon "ᄉᆴᆲᆵᆪᆱ ᄍᆵᄉᄇ ᄅᆴᆴᆬᄇ ᆰ￑ᄉᆬᄇᄍ"
:(
damn, I screwed up somewhere
@Zirak Yeah, NearlyFreeSpeech seems pretty sweet
I don't know. Like I said, I've never hosted one. Just built one.
lol too much April fools shit today!
rackspace looks insane, but for other things...amazon seems to make it annoying for pure static stuff. I'll dig deeper.
@Loktar neva! interwebz is too serious most of the time. we need a 'fun' day :P
19:38
Note to self: stop answering questions where OP isn't specific and clear
user1125394
php4.1 fails bad as april joke
Rackspace basic is $150/month. That's about the annual fee on nearlyfreespeech.
@rlemon lol, edit that into my answer :P
so m y son is doing Khan Academy
poooowwweeeeeerz!
you may have powars, but not enough vars to support them
!!> "haybpx lbhe vaare wDhrel".split("").map(function(a){if(!a.match(/[A-Za-z]/))return a;var c=96<=a.charCodeAt(0),k=(a.toLowerCase().charCodeAt(0)-96+12)%26+1;return String.fromCharCode(k+(c?96:64))}).join("");
@rlemon "unlock your inner jQuery"
khan academy seems pretty decent
19:41
yay!
btw that is the shortest rot13 I could come up with
codegolf time?
post a javascript question
I mean, aside from trimming a few chars but doing crazy stupid stuff like storing charCodeAt in a string and accessing with bracket notation
@Loktar yeah, John Resig redid their programming section
yeah
its pretty cool
as a coach I get to see all he does, and his progress
really nice setup
@rlemon You've used s3, right?
user1125394
19:46
you could rename the room as (2731)* J.. as it's always full of messages :p
2/3 of his rep O_O
Also, he asked this in Nov 13 2012
@rlemon -96+12 is the same as -84
@Shmiddty But x-96+12 !== x-84
19:57
why you trollin
@Zirak how come?
user1125394
!!> var x; (x-96+12 !== x-84);
@crl "SyntaxError: Unexpected token ILLEGAL"
@crl true
!!>parseInt('A',36).toString(36).toUpperCase()
Isn't it obvious?
19:57
@Shmiddty "a"
!!> var x="mancod"; (x-96+12 !== x-84);
`"A"`
:8601915 `true`
room topic changed to JavaScript: All about ECMAscript and its various libraries. Please read the rules: rules.javascriptroom.com [ecmascript-5] [grok] [javascript]
what a poo
!!> var x=100; (x-96+12 !== x-84);
19:59
@Shmiddty false
room topic changed to JavaScript: All about ECMAscript and its various libraries. Please read the rules: rules.javascriptroom.com [ecmascript-5] [javascript] [the-game]
Element::eventHandler() breaks YUI compressor
anyway around that without using /**cc*/ comments?

« first day (898 days earlier)      last day (4275 days later) »