« first day (1305 days earlier)      last day (3648 days later) » 

6:00 PM
I could do it after a few days I'm sure
You'd be forced to learn
 
Only $85k
 
@RUJordan It's a lot harder than it seems. It's not just typing - think keyboard shortcuts, thinks WASD
That's what drove me off quickly
 
oh jesus you're right
 
I also want one
 
The new closing shortcut is amazing — dystroy 17 secs ago
 
6:02 PM
@SomeKittensUx2666 my uncle has the supertuned tesla. It's awesome!
 
I'll probably be able to afford it in a year or two. Depends on my wife's employment.
 
@SomeKittensUx2666 Every time I read an oatmeal, I have this sinking feeling that if I ever meet him in person, I'd be greatly tempted to punch him in the face.
Without any sort of provocative action on his part - just his demeanour.
 
@dystroy totally. I'm missing a few upvotes to be able to do that!
on the js tag
 
@Zirak Then steal his Tesla
@FlorianMargaine Post some answers here
 
@FlorianMargaine 28 upvotes, that will probably be fast enough
 
6:07 PM
@SomeKittensUx2666 sucky answer?
3
A: Make a slide down textarea in HTML

Florian MargaineInstead of manually messing with the CSS values, simply toggle a class. This allows you to easily play with absolute positioning without having messed-up JS. See demo here: http://jsfiddle.net/8Qa3C/1/ Instead of your current code, use that: $(document).ready(function() { $('[id^="txt"]').f...

 
784 more upvotes for me lol
 
@dystroy yeah, was thinking that
 
@FlorianMargaine Now 27
 
27
 
but honestly... after trying to farm a little bit, main is so depressing...
 
6:08 PM
(after serious reading of a few answers)
 
time for taco coma
 
@FlorianMargaine you got that right. I like finding a diamond in the rough though
 
zzzz
 
> During a rollover test, the Model S was so resilient it broke the machine that was intended to crush the car
 
I haven't seen an interesting js question in a long time
 
6:08 PM
nice.
 
@Zirak yup
 
A serious, honest-to-god "this is some weird shit, how does it work?"
 
there are probably some that we just don't see
 
@Zirak magnetjs how does it work?
 
@rtfrex 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.
 
6:10 PM
I might ask and self-answer, I've been wanting to delve into the DOM implementations, will probably find interesting shit there.
 
@SomeKittensUx2666 That's a nice one
 
@Zirak promises are new so interesting questions come up in this field
It's starting to get a bit repetitive now though
 
yes, too much farming on promises
 
But it's all implementation. "How do I design this junk in Promises? <insert junk here>" or "Why should I use Promises over junk? <insert junk here>"
 
6:14 PM
stackoverflow.com/questions/23603803/nodejs-modulization guys upvote @SomeKittensUx2666 answer more. 2 upvotes isn't enough for how much that helped me
 
A vaguely interesting question I answered today
2
Q: JavaScript (_.isFunction) code optimization

Bogdan VolosincuI needed to check an js object if is a function and i thought that this code should do it: typeof param === 'function' then i thought that checking with _.isFunction source code will be an good ideea. Underscore has the if below wrapped arround the above check, which i'm not sure what exactl...

 
I've updated my README in github, how do i sync that to local?
 
git fetch origin
git merge origin/master
 
Or just git pull
 
I don't like git pull
because I always want to check
but you're right
!!afk baby
 
6:16 PM
@dystroy ok babe
 
> Updating d661b29..6f004ce
error: Your local changes to the following files would be overwritten by merge:
README
Please, commit your changes or stash them before you can merge.
Aborting
what should i do, I don't want to commit the old README?
 
So stash or discard
@dystroy Upboat for obscure trivia I had no knowledge of.
 
@Zirak dystroy is afk: baby
 
@BadgerGirl o/
 
@calebthebrewer 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.
 
6:20 PM
Awesome error message is awesome code.google.com/p/v8/issues/detail?id=617
> TypeError: Function.prototype.apply was called on /b../, which is a function and not a function
@SomeKittensUx2666 Would you mind if I add v8/spidermonkey source links into your toFinite answer?
 
@dystroy - and yet it's a dupe
2
A: Why use typeof for identifying a function?

user166390Check the assumptions in the post (see Gumbo's comment). typeof /regex/ === 'function' This returns false in Firefox 3.6.13. Just for amusement, Firefox 3.6.13: typeof /regex/ // "object" /regex/ instanceof RegExp // true /regex/.constructor.name // RegExp...

 
@adeneo dystroy is afk: baby
 
@CapricaSix - I'm stilling pinging him you /&(%/(BG)V{[€[{€
and
7
Q: _.isFunction(a) vs. typeof a === 'function'? javascript

KosmetikaI think it might be only performance case - http://jsperf.com/comparing-underscore-js-isfunction-with-typeof-function/2 And seems that typeof is faster.. so my question is - which is more appropriate to use?

 
!!> typeof /asdf/
 
@Shmiddty "object"
 
6:29 PM
@Zirak Go right ahead
 
!!> re=/.+/; re.call = Function.prototype.call; re.call(0, "asdf")
 
@Shmiddty "TypeError: re.appy is not a function"
@Shmiddty "TypeError: Function.prototype.apply called on incompatible RegExp"
@Shmiddty "TypeError: Function.prototype.call called on incompatible RegExp"
 
@BenjaminGruenbaum Just went through an initial phone screen. You were totally right
 
@Shmiddty "TypeError: Function.prototype.call called on incompatible RegExp"
 
!!> /.+/("asdf")
 
6:30 PM
@Shmiddty "TypeError: /.+/ is not a function"
 
okily dokily
what's the equivalent of ctrl+click on a mac?
 
I think it's the same thing
otherwise it's command click
 
command click does nothing special. control click is right-click.
 
the second case never happens.
 
6:39 PM
aw man, I don't have spidermonkey sources?
Their web thing sucks
 
@AbhishekHingnikar Had it happen to me once. Spent the rest of the day testing.
 
@SomeKittensUx2666 language ?
don't say javascript cause thats cheating :3
 
@EricT 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.
 
Never in the history of javascript has jslint not found a single error/warning
It knows when you didn't think of a certain variable's name enough times
 
6:44 PM
Hello. I'm having issues in IE9 with appending <img> tags in a for loop...For every few images appended (I've tried both jquery.append() and .appendChild), Windows 7 IE9 loses about 20% memory.
 
how is one to make a query string into json with repeating keys?
 
I think it's a memory leak but can't pinpoint it...if anyone has any familiarity with append//memory leaks with img tags please let me know :)
 
@Crow You don't. You can't have duplicate keys, that destroys the meaning of a dictionary. You can, however, make a certain key an array.
 
@Zirak that's exactly what I want. {chart: [chart1, chart2]}
 
Good luck.
 
6:46 PM
question w/ sample code here.... : stackoverflow.com/questions/23631143/…
 
@user3323371 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.
 
Hello all
:D
 
@EricT what's your code look like?
 
I'm using info from a json object for each image
and then I have two things:
 
Photoshop Scripting throwing error > Error 1302: No Such Element Line: 22 -> app.activeDocument.artLayers[t-i].visible = false;
 
6:49 PM
1. a scroll event:
            $(window).scroll(function () {
                $('#photos-container').imagesLoaded(function() {
                    console.log("Before lazy load trig...isLoadingPhotos: "+isLoadingPhotos);
                    if($('#lazy-load-trigger').visible() && isLoadingPhotos != true) {
                        console.log("Before append...isLoadingPhotos: "+isLoadingPhotos);
                        $('#photo-list').append(loadNextPhotos());
                    }
                });
            });
2. the "loadNextPhotos()" function:
 
> Workaround: there is no need to write such idiotic code. github.com/petkaantonov/bluebird/wiki/Optimization-killers
 
Bananananana
 
1 message moved to Trash
@user3323371 You've already posted that
With no context or further discussion, I should say.
 
oh thought it disappeared
 
@Zirak's pretty big on context.
 
7:01 PM
wink wink
But the error seems to say exactly what's wrong, at least from my 0 experience in photoshop and scripting thereof.
 
I figured it
 
Office internet is down.
Caprica is dead
I have no work to do.
 
Time to start drinking
 
hi
 
!!do you forgive me?
 
7:11 PM
NNNNNNOOOOOOOOOOOOOOOOO
 
Any ideas why proxy_pass http://localhost:4444 would result in a 502, but proxy_pass http://127.0.0.1:4444 would work correclty? (nginx proxy server, node app running on 4444)
 
most likely the 4444 alone is not a proper ip address
 
@CS_STEM port*
 
I AM BACK! MUAHAHAHAHAHAHA
 
GO AWAY
 
7:14 PM
@RyanKinal not this issue? stackoverflow.com/a/5391915/851498
 
@Connor okay well it is possible that URLs do not use "Local host" to specify the users computer it uses the ip address for that I think
 
It's naptime
ya'll
 
@RUJordan hi
 
@BadgerGirl Still on vacation?
 
@SomeGuy No, and copy just left :(
 
7:21 PM
@WidnerMillon 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.
 
Booooo!
 
@FlorianMargaine Ummm. Maybe?
 
@rlemon Do you do WebGL ?
 
no
2d Canvas
 
-2
Q: PHP Search like Google

user3633961Is there a way to search in a database, for example, Tesst, and the querry returns "test"?, because "test" is in the database, i tried with the parameter "Like" but he don't returns what i want, thank you.

should this be downvoted? I said yes
 
7:29 PM
What happened to us?
We used to have a lot of drama in this room, lots of problems with trolls and vamps
 
noobs took over
now we all just avoid the room
 
But we'll never really be like the C++ or PHP rooms, frozen and stuff.
 
and when we do try to clean it up there is drama
see: any of my last attempts to clean it up
 
Not even once a community manager came here and froze the room and banned people.
In the PHP or C++ room that happens all the time :P
 
before your time there was once
iirc
 
7:30 PM
I like the no drama but sometimes you really do just wanna yell at somebody
 
but (again iirc) there has only ever been one room timeout
 
Must be because !!mute is working so poorly, that we don't deteriorate into room freezes and stuff.
@rlemon find it
 
@BenjaminGruenbaum more meta drama?
 
/jumps in
 
in PHP, 22 hours ago, by Stack Exchange
Shog9 has frozen this room.
 
7:31 PM
/explaining webdev
/walks away
 
@rlemon Have you ever gotten any noteworthy performance increase with getImageData over toDataURL ?
 
@BenjaminGruenbaum hahaha
The php room is the best
 
@Schoening I use getImageData, but it is pretty slow
 
@Zirak inorite?
 
@Brecon 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.
 
7:33 PM
We should learn from them
 
@BenjaminGruenbaum eh, can't find it. probably another room / site
 
@Zirak SHUT UP, I'M GOING TO DOWNVOTE YOU IN REVENGE
 
hahaha
 
@FlorianMargaine Yeah, that worked. Thanks!
 
@BenjaminGruenbaum I had that happen to me recently as well
 
7:34 PM
At this rate, we might be the lowest-numbered room with a functioning community
 
user went ape shit and dv'd like 18 posts or something
 
Damn Shog put the hammer down
 
But... how can I downvote such awesome answers?
6
Q: How does jQuery make the returned value look like an array?

ZirakjQuery(); //[] jQuery("#footer"); //[<div id="footer">...</div>] I know that you can do something like this: function kablam(tag) { var els = document.getElementsByTagName(tag); els.isKablam = true; return els; } var body = kablam("body"); //[<body class="ask-page">...</body>] body...

^ best question in Stack Overflow
 
@rlemon Any suggestion why this works: img.src = renderer1.domElement.toDataURL(); But this does not: img.src = renderer1.domElement.getImageData(0, 0, 300, 300);
 
@BenjaminGruenbaum CRUDE SUGGESTION THAT YOUR MOTHER IS INVOLVED IN SEXUALLY DEGRADING ACTS
 
7:34 PM
> jQuery do that.
 
Also, raynos's answer sucks
 
@Schoening because getImageData returns an imageData object not a URI
 
@BenjaminGruenbaum Oh dear lord
 
@Zirak NOTATION THAT YOU CREATE A VACUUM
 
@BenjaminGruenbaum he came in last night btw
For like a minute though
 
7:36 PM
@rlemon so what should I write instead?
 
K, I'm going to watch GoT now.
 
Is there a way to initiate the share function from a mobile web browser?
 
toDataUrl or just replace the image all together.
 
!!afk if you spoiler me first, I read the books :D
 
Have fun!
 
7:36 PM
image.parentNode.replaceChild(newImage, image); // check order of arguments.
is toDataURL being slow for you?
 
Yeah. But the whole thing is slow anyways. I lose over half the performance because I have to get the 3D canvas and paint it onto a 2D with toDataURL 60 times per second
 
60 fps for me
 
Yeah its np right now
But everyone over at Three.js is shaming me for using such a low performance way of doing it ^^
 
idk. I don't use external tools for Canvas
100% me baby
(and @Loktars help)
 
The left canvas is supposed to display the same thing as the right one. The problem is that the WebGL canvas just overrides everything. The canvas just draws on top
 
7:41 PM
@Birey 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.
 
ugh. so i'm actually going to have to read the code
:P
 
@rlemon did you just do this: img = renderer1.domElement; ?
 
yup
 
You wizard..
 
the img is arbitrary for each pass. it is a holder for the frame. why muck around with it, just change its reference
 
7:44 PM
Brilliant. This much faster yes?
 
both did 60fps for me
so idk
you tell me :P
 
@RyanKinal Have you solved it?
 
( also, don't optimize until you see a problem )
 
I agree. Just.. y'know.. this one time :p
Time to spam that canvas with cubes. if I can get this way than without I stop worrying :p
 
why are you doing this BTW?
 
7:51 PM
@Connor Yep
 
cool
 
Florian was right
 
@BrandonBabb 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.
 
Woah, Humble Daily Bundle. This'll be interesting
 
Prepare your bank accounts
 
7:55 PM
I'm hoping it's all previous bundles, I missed out on a lot of great stuff
 
That would be cool
 
@RyanKinal 2.9
 
@rlemon Writing a Plugin for Construct2. Uhm. is there any reason to keep setting the reference inside the rendering loop? Can't I just do that outside the loop ONCE? var img = testCanvas; ? seems to do the same
 
@Schoening sure
and I'm only asking because it seems like you just want to merge a few 'layers' back to a single canvas?
 
7:59 PM
Try this. jsfiddle.net/t8RAb/7 just change the AMOUNT variable
 
why not just layer the canvases accordingly.
 
@Neil I primarily don't focus on plugins, but if someone (and by someone I mean not 2-3 users; at least 10 time that numbers) wish a feature to be implemented why not?
 
1000: 60fps
10000: 15fps
 
@DrogoNevets No, but the derivative script can be.
 
i am storing some javascript in a variable as a string... i need to use the division operator.. is this syntax okay?
'<div class="PhotosRank">'+ ((Photos[i].Position) / 10) +'</div>'
 
Positon is a string and you want to compute it?
 
Didn't know Github had page functionality but it was a nice surprise!
 
@Boric 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.
 
!!> +"1000" / 10
 
@rlemon 100
 
8:01 PM
@rlemon yes
 
@rlemon I want to put the 3D canvas information inside the Construct2 canvas. The alternative is to put it as an overlay. And then I won't get the neat layering from the Construct2 Engine. So instead I want to paint it onto a Construct2 sprite
 
unary + operator will do the type coercion for you
 
i get weird syntax highlighting when i put that / operator in
 
otherwise you would need parseInt, parseFloat, or Number depending on your case
 
then again im using DW :(
ok
 
8:02 PM
@Bubbas because the syntax highlighter is stupid
0+string
 
yeah thats what i was thinking,
 
is what you are doing. add the 0 and it should be okay?
 
it seems okay in my web app
 
but you need braces in that iirc
(0+string)/10
 
!!urban iirc
 
8:03 PM
@Bubbas iirc abbv for If I Recall Correctly
 
@rlemon Thanks for your help btw. You are the canvas master
 
haha nah, I just enjoy messing around with it
 
@needaname Neat. Put it in your README
 
@Loktar is much more proficient with Canvas than I am
 
@DiegoRomero 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.
 
8:08 PM
Well you did boost me for about 20 frames. So I am happy hehe
 
!!urban irc
 
@SomeKittensUx2666 IRC Abbreviation for Internet Relay Chat. A multiplayer notepad.
 
what does !!urban mean?
 
!!tell boric help
 
@boric Information on interacting with me can be found at this page
 
8:25 PM
Urban means "related to cities." It may refer to: * Urban area, geographical area distinct from rural areas * Urban culture, the culture of towns and cities, sometimes used as a euphemism for African-American culture Media * Urban contemporary, an African American music radio format ** Mainstream urban ** Urban adult contemporary * Urban (newspaper), Danish free daily newspaper * Urban Records, record label Other uses * Urban, California, former town in El Dorado County * Urban (name), given name and surname See also * Pope Urban (disambiguation) * *
In this case !! means get the bot's attention, and urban does a lookup in the urban dictionary -> urbandictionary.com
 
!!tell SomeKittens awsm Thanks
 
@SomeKittens Thns
 
I didn't know there were bots in this cantina.
 
yes
 
!!norris
 
8:35 PM
@adeneo Chuck Norris is the only person in the world that can actually email a roundhouse kick.
 
0
Q: jQuery .each function creating infinite loop?

Robert F BoordI think my code is creating an infinite loop. The page never finishes loading. It "locks up" and Chrome is forced to kill the offending page. The console doesn't refresh, so I can't read the errors. The problem I'm trying to solve is having some text elements that are sometimes too wide, but ...

I feel so sorry for this guy
 
@SomeKittensUx2666 lol, that code is hilarious
It's like
 
He's clearly in way over his head
 
var x = 5000;
while(x > 100){
   x--;
}
Except, way shittier :D
 
@HaSuKrOnOs 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.
 
8:37 PM
how come this isn't supported in chrome? developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
 
@Connor it is
 
!!> Proxy
 
@Connor "ReferenceError: Proxy is not defined"
 
...
 
@Connor go to about:flags and click "enable experimental JavaScript"
Also, the bot runs on Firefox.
 
8:38 PM
@BenjaminGruenbaum Oh, i didn't know it's "experimental"
 
@edyluisrey 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.
 
Of course it is, it's still debated in ESDiscuss and TC39 meetings often, some stuff is really hard to get right.
 
And we don't have Proxy on the whitelist, as Zirak recently pointed out
 
@SomeKittensUx2666 it took me way too long to get that :D
 
8:41 PM
Issue #197. As we speak I'm making a list of things to enable, after that comment with what I missed.
And Proxies are one of the more awesome things we're getting. Defining [[Call]] and the likes was long coming.
!!> Array.from
 
@Zirak "undefined"
 
Or what was it called...
!!> Array.of
 
@Zirak "function of() {\n [native code]\n}"
 
Neat
 
array.of
oops
 
8:44 PM
I thought there was also an Array.from, it's a shame if there isn't...
 
!!mdn Array.of
 
@Zirak Did it. Shame on me for not thinking about that!
 
Both Array.from and Array.of are defined in Harmony (at least drafts)
 
What would be the use case for this?
 
8:46 PM
Not much. It's really to fix the broken Array constructor.
 
!!> Array.find
 
@SomeGuy "undefined"
 
Array(3) creates an array with three items, Array(3, 2) creates [3, 2]
@SomeGuy Array isn't an array
 
Right
 
8:47 PM
!!> 'hip, hip'; Array;
 
@SomeKittensUx2666 "function Array() {\n [native code]\n}"
 
!!> [].find
 
@Zirak "function find() {\n [native code]\n}"
 
!!> Array(3)
 
8:49 PM
@Boric ["undefined","undefined","undefined"]
 
@Zirak you forgot: YOUR MOM
 
Actually, my mom forgot me
 
!!> [3]
 
@Boric [3]
 
Abandoned me when I was 4
 
8:50 PM
@Zirak :(
 
!! awsm awww poor Zirak
 
@Boric awww pr Zk
 
No, it's ok. Living in the roofhoues near Rapey Joe made me the person I am today.
 
That's a good thing… ?
 
Wait, what? Proxies don't allow us to intercept [[Call]] !?
What the shit
Might as well get pregnant in a bus stop
 
8:53 PM
HAMMERTIME!
5
 
Never before has that been more appropriate.
 
Indeed!
 
It's like magic or something.
 

« first day (1305 days earlier)      last day (3648 days later) »