« first day (1279 days earlier)      last day (3669 days later) » 

9:00 PM
I don't actually want to use it that way, but I noticed that it seems to work.
 
@Loktar Jump on gtalk
 
whoa... what.... It seems that module.exports will receive this's properties, but this will not have module.exports's properties...
 
So the company I intern for has a product that they want to promote (it's a website), but since not many people have signed up yet on it, it decided to build another product (one that is far more likely to get users) and is thinking about integrating the site's user system with that of its previous product. Even though the new website is a whole separate product, on the back end, its integrated with product A. So if I login to product B (the new website), I'll also be connected to product A.
The company believes this might help the new website promote the older product.
The problem is the url for the new website.
should it be {product b's name}.{product A's name}.com? (like a subdomain) or a whole separate {product B's name}.com?
 
@DemCodeLines We're literally facing the same problem, to the point where I was wondering if you were trolling me.
 
@SomeKittensUx2666 I'm not. I am serious right now.
Also, wasn't your name SomeKittens instead of SomeKittensUx....
 
9:13 PM
I changed it as a joke and haven't changed it back
 
Alright, but any advice for me? I am developing product B and I think it should be separate domain, what do you think?
 
@DemCodeLines Isn't that more of a marketing decision than a technical one? Even though it doesn't sound fun in a technical way.
 
I don't think subdomain would look good.
Take for example, StackOverflow
stackoverflow.stackexchange.com ew
 
oh ok, I guess you meant the question that way haha
I suppose it depends on the situation but usually I would think a subdomain would be a bad idea
 
A subdomain isn't the worst idea
 
9:15 PM
especially if you actually want people to remember the domain
 
Following what Atlassian do, I would say a different domain, but link to the other sites: atlassian.com/software
 
@BadgerGirl What would be the benefit though?
 
@twiz It makes more sense since the products are integrated
 
It sounds to me like they aren't really integrated though, aside from logging in to one will log you in on the other.
 
0
Q: who to wrap callbacks with a promise?

bymannanLets say I have a given function I can not change which has a callback function: markAsRead(item_id,function(result){console.log(result)}) How can I wrap that function with a promise so I could know which item_id was returned? Something like this: markRead(item_id).then(function(result) {...

 
9:21 PM
I suppose that sounded stupid....
 
Crap answers to downvote:
0
Q: Yet another person asking how to center a navigation bar

mountainclimberI have tried probably 15 suggestions from stackoverflow on how to center nav. Can you help? I just want to center the nav and be able to hover over Expertise without the rest of the nav bar getting jumbled around. Here is my markup: <nav id="header-home-nav"> <div id="menu"> <ul> ...

 
I mean they are completely separate concepts, except they use the same backend.
@bjb568 Haha they say right in the question that it's a duplicate.
 
@twiz Yes, the question is bad too.
 
meh, its not that bad
 
@bjb568 crap question as well. Dupe and considering OP wants it responsive, zero effort.
 
9:23 PM
There are definitely a lot worse though.
 
Yep.
 
A question which knows it's a dup, with 1 unsatisfactory answer, 2 wrong answers, and a copy of the wrong answer…
 
Sometimes questions like that are OK though, because the answers will occasionally be good for some reason.
 
But most of the time they're crap.
 
Guys, what is this? jsfiddle.net/Ehz3f
 
9:26 PM
I dunno.
 
Pure guess but csv?
 
@sanchy A link
 
@SomeKittensUx2666 haha
@bjb568 csv, maybe ill give that a look. Thanks
 
@sanchy - It's not valid, is what it is.
 
@adeneo its not js
 
9:27 PM
Its like someone tried to create their own version of JSON
 
@adeneo just pasted it there to paste it somewhere
 
Where did you get it from?
 
its some sort of export.
 
Its got wordpress junk in it
 
@twiz is the way a wordpress plugin stores most of it's info in the DB. Im trying to find a way to manage this info, guessed maybe you guys knew what I was dealing with
 
9:29 PM
serialized data from PHP
 
@adeneo give that man a cookie! :D
 
as simple as unserialize then?
awesome guys! thank you a lot
 
Wordpress is disgusting....
 
Good spot @adeneo
 
9:31 PM
@twiz hahaha xD
 
Thanks, the "wordpress plugin stores ..." gave it away, it's common to run serialize() on data stored in plugins.
 
@Ace 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.
 
oh man..
a kid will shadow me for a bit tomorrow
instead of showing them what I do I might just show them cool canvas shit :P
 
what was the css property that referred to what kind of mouse pointer it is?
 
cursor
 
9:38 PM
"Ok, so here is the desk were I work.... now watch me type for 8 hours."
 
@twiz hah ikr
 
@Loktar How old is the kid?
 
no idea, I think they said high school
so I guess anywhere from 14-18
 
Awaits 18 year old, 7ft quarter back to turn up.
 
lol
 
9:40 PM
He probably has to do some weird project to graduate and just asked some random company if he could do that.
 
I guess a group of kids are coming
from a local high school so idk
idk what the situation is
 
I wanna see cool canvas shit too
 
Me too.
 
Me three
 
you guys have already seen my stuff I'm an attn whore with it :P
 
9:42 PM
But to watch you make it, would be cool.
 
Also, there are years worth of cool canvas shit on codepen you can look at.
 
I should do a time lapse
 
You should create a ridiculous looking interface like something from an action movie.
 
Ive always wanted to, would be neat
 
and then tell them that's what you do all day
 
9:44 PM
haha
 
What OS are you on?
Anyway, I use this: timesnapper.com
 
windows
oh wtf @mikedidthis thats amazing!
 
Pretty smart little journal tool. You can view by day / time etc
 
can it export videos?
 
Grab the classic
 
9:45 PM
Have someone do the coding remotely and tell them you code using million dollar mind reading devices.
 
like a video I could upload to youtube
@twiz LOL
genetic algorithms
 
> I wrote some genetic algorithms to code for me when I was 6 and by the time i was 21 they were good enough to land me a job
 
> This SMIL animation will not function in Internet Explorer
 
I don't think it does. You could maybe convertor the folder of images to a video with something though.
 
9:49 PM
Are there any good HTML5 screen recorders yet?
 
nice
I kind of need a mix though like..
like I need to show what I'm coding, but the result as well full motion
Ive seen sites like that cant think of the names of any though
 
I think I get what you mean. Its not really a video, more like a play back of your keystrokes?
 
yeah I guess
damn.. I cant think of the names of any of the sites now
 
10:03 PM
This split is bananas! — Jason C 19 hours ago
 
is there something like a container element in svg ?
i mean <div><a></a> <a></a> </div> i can then just move the div :P
is that possible in svg ?
 
if (isset($_GET['page'])) {
  $page = $$_GET['page'];
}
Thank you, PHP for not pointing that out
 
!!tell AbhishekHingnikar mdn svg container element
 
!!s/PHP/PHP,/
 
10:11 PM
@rlemon Thank you, PHP, for not pointing that out (source)
 
@BenjaminGruenbaum what ?
<a>, <defs>, <glyph>, <g>, <marker>, <mask>, <missing-glyph>, <pattern>, <svg>, <switch>, <symbol>
 
@AbhishekHingnikar go there, and control+f "container elements"
 
from that page :P
 
Oh wow, if only you could google for documentation :P
Also, it's the <g> you want. Also, use d3 don't be stupid.
 
No <g> is not what i need :-(
 
10:14 PM
!!yourwrong
 
@SomeKittensUx2666 @SomeGuy, your needed!
 
i can't move the g x_x
or atleast, in ie 11.0 :-(
 
@SomeKittensUx2666 thanks obama was the first thing I could think of for reference. cnbc.com/id/101318012
> thanks, name, reason.
@SomeGuy, its okay, I got this.
 
I just came from debugging ridiculously stupid PHP design decisions. Do you really expect me to be in my right mind?
inb4 !!s/from.*//
 
Disqus has a link that says "Hate Computers?" that leads to their jobs page.
 
10:20 PM
@twiz I knew a guy there. Neat place
 
Does anyone know why this array is not joining? jsfiddle.net/G6Lb2
 
I used Disqus for the first time recently. Its amazing how easy it is to get it working on a site.
 
@tmyie join doesn't mutate the array
 
Then I spent like 3 hours trying to get a facebook button to work.... haha
 
n = n.join(' ');
 
10:23 PM
@AbhishekHingnikar Svgs have absolutely positioned elements.
 
Thanks!
 
but i was looking for something like div
so that i could just move 2 images at the sametime
without having to move them seperately
 
I don't know if it's possible.
 
It helps a lot if they are animating or so.
 
10:26 PM
Seriously, has anyone else experienced the thing where a Facebook "Like" button will display fine on your page, then 45 seconds later the console will say something like "Facebook was coded by monkeys! Its been 45 seconds so we're going to hide the button now"
 
Hehe. What's a facebook?
 
@S.B. 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.
 
Don't use like buttons, so nope :p
 
Facebook needs to hurry up and join myspace already.
 
BingBook+
 
10:28 PM
        var temp = this._currentImage;
        this._nextImage = this._currentImage;
        this._currentImage = temp;
fail of the day.
 
MyYahoo
 
Horray!
I accomplished what I wanted to do xD
object creating / removal "without" garbage collection:
http://cdpn.io/EpazJ
 
But I'm not making that up. Someone seriously wrote some code that makes a like button disappear after 45 seconds with little explanation.
 
Pools are the best
 
Its mind-boggling. Unless of course facebook actually IS coded by monkeys...
 
10:29 PM
Aw man I am a happy camper. Framerate is so much better
 
@twiz setTimeout( reGetThatButton, 40000);
 
Yea, it is good to adopt them early
 
Array.prototype.pop() and Array.prototype.slice() create A LOT of garbage apparently
 
Makes a huge difference
 
console.log("Facebook might have been coded by monkeys but i am a gorilla");
 
10:30 PM
Creating new objects also
Object creation isn't cheap
 
I first removed object creation. It didnt do that much. But now I am not using array pop and slice anymore
 
Psst... Those create objects
 
I just move stuff around in an array and have a length property to tell me where the used objects end and the unused start
 
;)
It is faster not to move around. Have an alive flag or something
 
:o Uhh
 
10:32 PM
-1
Q: How to make an Jquery and better if javascript smart-toggler..the idea?! Challenge xD

Age LonglifeHello i very bored to create every time click listeners for change class of another div, so i wont to do somthing like this: HTML, listener > <div class="toggle" data-totog="#mytog" data-whtog=".o"></div> HTMl, destination > <div id="mytog">Some content</div> HTMl, after click > <div id="mytog" ...

 
I'm gonna try that right away. Thx @rlemon
 
I'm on mobile otherwise I would actually look at your code.
 
@rlemon now that you said that about using a flag I am thinking if I should put the objects inside a object instead of an array.
 
!!> console.log.log
 
@SomeKittensUx2666 "undefined"
 
10:36 PM
I am just not sure because of game loops having to iterate a lot. I guess I could create an array with id's to iterate gameloop stuff. And use the object to keep all objects
 
I do...
var particles = [];
for( var i = 0; i < count; i++ ) { particles.push(new Particle(props); }
function update() {
  for( var i = 0; i < count; i++ ) {
        if( !particles[i].alive ) { continue; }
        particles[i].update();
  }
  // callback shit
}
// same for render
the continue is almost nothing on the cpu
 
Alright cool :)
Hey what do you think about WebCL ? Looked at it?
 
5000 dead's is 12ms
(for me)
 
@rlemon Neat. I havent used a continue before. Always if / else . That looks nice and clean
 
I was trying to find a better demo using a pool
:/
maybe i'll write one :P
 
10:49 PM
requestAnimationFrame()...

Is it broken?
 
I don't understand the question
 
That is awesome man. I try and make sense of the code. yay ^^
 
requestAnimationFrame is an optimisation, right? I mean

window.setInterval(function(){
requestAnimationFrame(/* Do stuff */);
})

And it works fine... It does prevent the slowdown caused by an unrelenting animation loop. But if you hide a window containing a requestAnimationFrame() managed routine, and then maximise the window after say, 30seconds, the browser/runtime will try to rerun a glut of backlogged frames.

The resultant 'freeze' resembles a crash...

That can't be expected behaviour...
 
@EliThompson 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.
 
window.setInterval(function(){
requestAnimationFrame(/* Do stuff */);
})
^ is the wrong use
function render() {
  requestAnimationFrame(render);
  // code here
  // to render your frame
}
render();
you are stacking up animation frames
so of course you are overloading it
 
11:06 PM
ssh: heroku.com: no address associated with name
not this shit again
 
@AbhishekHingnikar Hahaha I'm tempted to code a working version of that just to make sure Facebook is adequately made fun of.
 
I don't remember why this happens
I just overwrote my work repo with my game
 
@rlemon Hm. I have tried your flag suggestion. (rather than moving objects around) It doesn't give me any improved performance. Maybe even a slightly less stable framerate. (and quite jumpy in FF) I probably did something wrong. Gonna read through your example and see if that gives me some clues
 
@Mosho You could try looking at the first google result........ stackoverflow.com/questions/8159522/…
 
@twiz They're actually supposed to be integrated, but it wouldn't sound good nor would it be user-friendly.
 
11:24 PM
 
@prash 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.
 
@rlemon That is awesome man. You are canvas boss! What fps are you getting on your mobile?
 
@JoseGonzalez 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.
 
ohh mobile? :P
umm
haha 5fps
once it gets animating a lot it dies down.
 
guys, could you take a moment to take a moment?
I'd really appreciate it
 
11:37 PM
the loops however (before that) take no time at all
 
just a few seconds, of taking moments
 
30, 25, 20, 11, 5
 
ok, thank you all
 
^^
 
haha
that was me telling my framerate drop actually.
 
11:38 PM
bestbookread.com <- beautiful trolling
 
@rlemon isn't the html5 canvas gpu accelerated?
 
i don't think by default.
 
I'm really impressed why that canvas ^^. Hehe
 
@Schoening got a webcam?
 
But I am laughing more and more at people that claim that everything will run inside the browser in the future.
 
11:41 PM
@SomeKittensUx2666 haha the comments
 
Sorry I don't sex video chat with strangers
 
haha, no. but if you do you should enjoy this lemonmeme.com/demos/video_confetti
 
Got one on my laptop. not on the desktop im sitting at
 
@twiz all Amazon referral links
 
Ill save the link. Webgl?
 
11:43 PM
nope
 
Well, I was talking about all the racist/religious trolling
 
lol
 
@rlemon haha yes, mostly that one
 
lool
 
@SomeKittensUx2666 hehe I love the fans
 
11:46 PM
You guys should check out amazons funniest reviews page
 
@edwardoyarzun 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.
 
i'm bored, on the internet. :(
 
I have a problem with Django when I upload file with Ajax. They arrive to request.POST, but they should arrive to request.FILES, but it's empty.
Any solution?
 
@edwardoyarzun I've looked through the code. Took me most of last weekend... I am happy and sad to report this (funny how that works out eh? you can be both happy and sad at the same time. You wouldn't think it is possible but here I am! smiling and crying, smiling because I have a solution. but crying because of the pain and suffering involved to get there) anyway, the issues is down around line 472. FantasyException: Lack of Unicorns.
 
@rlemon OOooo...
 
11:55 PM
See this fiddle, it checks to see CSS @media queries are working. Now see this. what's wrong with firefox's responsive design view?
 
^ which is of course slang for, how are you doing the ajax call.
 
@r
@rlemon, do you have the solution?
 
1 min ago, by rlemon
^ which is of course slang for, how are you doing the ajax call.
and why can't you handle them from a post request?
 
this is the code:
var form_data = new FormData(document.getElementById("form-theme-edit")),
url = "/theme/edit/1";

$.ajax({
"url" : url,
"method" : "POST",
"enctype": "multipart/form-data",
"data" : form_data,
"processData" : false
});
then, when I do a print request.FILES, it's empty
but when I do a print request.POST, there are the files as dataURL
it should be on request.FILES
 
> "method" : "POST",
of course FILES is empty
 
11:58 PM
@rlemon So whait... How do I control the refresh rate. I obviously can't do it from inside render()...
 
@Charlie @Charlie generally I have an update loop and a render loop. I set the update loop to 30 updates a second, and the render loop is controlled with requestAnimationFrame to get optimal rendering
 
@rlemon So, what do I have to put instead of POST if I want to upload files?
 
@edwardoyarzun upload them via POST
.. nvm
 
@Schoening Was well worth the read
 

« first day (1279 days earlier)      last day (3669 days later) »