« first day (1257 days earlier)      last day (3697 days later) » 

12:00 AM
:D. Ok. Let's prototype...
 
Usually everything but JavaScript
 
@EddieC. Doing an arrangement of a song... converting from minor key to major key. Making a sad, kinda creepy song sound happy and wedding-appropriate.
 
Conversation.prototype.introduction = function() { return 'hi'; };
 
Well, that's what I'm doing, anyway.
 
HHahhHhhH
Thank you @somekittens.
 
So, assuming Conversation is a valid constructor, how do we properly create a new object of type Conversation?
 
@rlemon Ooh, nice
Dear god. It's horrid.
2
 
lol
 
That is some seriously bad shit.
 
12:05 AM
ohh i'm laughing so hard right now
 
@rlemon Still listening... for some reason...
 
GPU keeps crashing
time for a new one
 
@rlemon Oooh, is that where this sounds is coming from? Your malfunctioning GPU?
 
lol
no man wubmachine
 
Yeah, I know ;-)
Dear Anberlin...
 
12:09 AM
just you wait to see what i'm converting next!
 
:terrified:
 
@rlemon Your gender?
 
@ksivamuthu 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.
 
12:15 AM
Ooh! Do me! Do me!
 
@RyanKinal well... okay, you asked :unzips:
 
@Richard 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.
 
Sorry, that was meant for the webcam chat...
I MEAN WHAT
 
dude, I tapped into your webcam like 2 hours ago
 
12:16 AM
;-)
 
@JohnBartels 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.
 
me: fucking shut up with your furious clicking!
gf: I'm killing bad guys!
me: you know you can just click and hold right?
gf: what o.O ????
gf: I've been playing this game for soo long now.....
hard to see, but if you look close there is a shrimp behind that snail that is 3-4cm long
 
lol
Also, to be fair, it's more fun to click furiously...
 
i outlined him
he is so tiny!
aww
that snail is like the 1/4 the size of an eraser head on a pencil
 
It's so cute
Now I want noodles with shrimps
 
12:25 AM
ಠ_ಠ
<|>
/ω\
I never know who i'm talking too, copy or badger.
either she has your login or you two are the same person. I'm convinced.
 
We're the same person
@BadgerGirl Your part
Damn it :(
 
@copy wat :/
too late
 
@D.Alexander 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.
 
12:51 AM
lol @ flags
@flagtroll, ;)
and dismissed
> take that ~ me
 
@rlemon Wait, you can claim flags against you are invalid?
 
nope
but I can see them
but really, the comment wasn't offensive to anyone
 
Hey guys
 
1:08 AM
Ugh.
Sappy-balladification complete
 
@zerkms was just looking at that
 
Sounds like a fucking worship song -_-
I'd post it, but apparently my computer's mic sucks, and I don't feel like plugging in my actual equipment.
 
@SomeKittensUx2666 so what do you think?
 
I have a hunch, and am checking it
 
it take some time for me to realize why even though d.state() is resolved - .done() isn't called
Well, I understand that it's implemented as a queue of callbacks
so it's more about - what behaviour you would expect, since I think it's a bug
 
1:12 AM
hello
 
0
A: Nested promise handlers

SomeKittens Ux2666I'm about 80% sure this is what's happening: var a = function() { // the function logging 'inner' is *added* to the call stack d.done(function() { console.log('inner'); }); // 'outer' is logged console.log('outer'); }; // `a` has finished executing, then the anonymous...

 
@SomeKittensUx2666 well, it's obvious that that's what happens :-)
 
I just got through searching the web endlessly for JS game engines that work well with PhoneGap.. To no avail of course. it looks like impactjs seemed decent as well as iio.. But I am not sure what to use and which ones work well with PhoneGap. I've been on SO for a few years now and I know how the chat works.. This was my last resort basically..
so my question is, what works well with PhoneGap or what is a good alternative? Can I just use Cordova or is that not good for game dev?
 
@zerkms Proved it, updated answer
 
Well, you could "prove" just referencing to the line I just mentioned :-)
 
1:17 AM
@ascom 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.
 
@zerkms done
 
any takers on my question?
 
\o/ ten rep.
IIRC, @Loktar used something like that.
 
@SomeKittensUx2666 yep, I usually upvote everything that makes sense :-)
 
well it's comforting to know that at least there's consistency.. I can always expect stack exchange chats to not be helpful lol good day gentlemen
 
1:30 AM
2
Q: Nested promise handlers

zerkmsKeeping in mind this statement: Once the object has entered the resolved or rejected state, it stays in that state. Callbacks can still be added to the resolved or rejected Deferred — they will execute immediately. from http://api.jquery.com/jQuery.Deferred/ What would you expect this ...

 
@copy
 
@rlemon hi
 
hi?
 
@sergelerator hi
 
1:41 AM
@perceptron 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.
 
@mmmshuddup check out cocoonjs
it works with impact
@Jhawins I disagree very much
 
@Loktar Jhawins is afk: that's all
 
if anything VR will be more mainstream
although I'm not a part of the reddit hivemind and the general immaturity of the community thats why I'm not going crazy bashing the deal
also tons of people cancelled their DK2 preorders :) so that means Ill get mine even faster.
 
@kcharvey 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 hate it when people abandon questions. Three good answers with no upvotes. Boo.
 
2:02 AM
@somekindarukus 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.
 
2:12 AM
I hate opening a project, scrolling to the end of the main script.js file and finding shit like:
$j(function() {
	$j("#toTop").scrollToTop();
});

var font_min = 11;
var font_max = 20;
var font_increment = 2;
var font_default = 13;
 
2:36 AM
!!help
 
@DemCodeLines Information on interacting with me can be found at this page
  +---+
  |   |
  |   O
  |
  |
__+__
windowsphonerocks
---------------------
 
@CapricaSix lol
!!hang a
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, windowsphonerocks
-------------a-------
 
!!hang s
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, s, windowsphonerocks
----s------s-a-----ss
@Tushar.PUCSD 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.
 
2:48 AM
!!hang q
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, q, s, windowsphonerocks
----s------s-a-----ss
 
!!hang t
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, q, s, t, windowsphonerocks
----st-----s-a-----ss
 
!!hang b
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, q, s, t, windowsphonerocks
----st-----s-ab----ss
 
2:49 AM
!!hang u
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, q, s, t, u, windowsphonerocks
----st---u-s-ab----ss
 
!!hang i
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, i, q, s, t, u, windowsphonerocks
i--isti--uis-ab----ss
 
!!hang n
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, i, n, q, s, t, u, windowsphonerocks
in-istin-uis-ab--n-ss
 
2:50 AM
!!hang d
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, d, i, n, q, s, t, u, windowsphonerocks
indistin-uis-ab--n-ss
 
!!hang g
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, d, g, i, n, q, s, t, u, windowsphonerocks
indistinguis-ab--n-ss
 
!!hang h
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, d, g, h, i, n, q, s, t, u, windowsphonerocks
indistinguishab--n-ss
 
2:50 AM
!!hang l
!!hang e
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, d, g, h, i, l, n, q, s, t, u, windowsphonerocks
indistinguishabl-n-ss
@monners Correct! The word is indistinguishableness.
 
Damn right I'm correct.
 
@monners entertain me
 
@SomeKittensUx2666 I would, but i'm wallowing in self pity. the maintenance project I'm on couldn't have been developed by anything slightly more intelligent than a squirrel/possum hybrid
 
Same here
 
2:53 AM
One page, five instances of id="content"
 
the inane cackling of coworkers laughing at their own jokes.
 
the CSS is full of complete, absolute paths (base url and all)
 
Good job @monners
 
sigh... And I was actually looking forward to today. Should be starting the templates for a new build. Instead that 'quick little thing' my PM had me look at has turned into a clusterfuck or awful.
 
!!are you proud of @monners ?
 
2:55 AM
@DemCodeLines Doubtfully
 
The subtle whisper in my ear of "You can't get another job for six months, and even then you're not in demand"
 
@DemCodeLines Either you're being facetious, or you're an idiot.
I'm undecided.
 
@monners :S what
 
@DemCodeLines You said *Good job" to something I was conveying as a horrible practice I'd discovered in a maintenance project.
 
@monners When I said "good job," I was referring to how you solved the hangman game...
:|
 
2:58 AM
@DemCodeLines Oh. Be careful which messages you hit reply to then. Context is everything :D (and also sorry)
Your entertainment
 
How 'bout that?
lol, it even mentions you in the pre-vid warning
Warning: The following film contains scenes which SomeKittens may find disturbing.
https://www.youtube.com/watch?v=QNwCojCJ3-Q
 
I'm flattered
 
Did you watch it?
 
watching now
That moment when you find the SO answer your coworker copy/pasted from
 
3:06 AM
lol
So was that appropriately disturbing?
 
Cyriak's videos are awesome.
 
@Cyriak we love you
 
Meow Meow and youtube.com/watch?v=WXvsl8xgRxc are my favourites.
 
That is fantastic
shares
 
3:11 AM
It's been around for a while.
It's so sweet and innocent until suddenly it's not :P
 
After two spiteful downvotes, I finally got a nice break - yay!
though I said I'd stop on main for the night
HOLD ME BACK
 
doesn't
I wanna go home...
 
i cannot get my img to render in safari wtf
 
3:29 AM
@monners Here in the US, us silly Americans typically get angry when one points out issues. Is that international?
 
3:40 AM
@SomeKittensUx2666 By issues you mean mistakes? I think getting angry at that is just a bad company thing.
 
s/issues/mistakes/, yes
sigh
 
The good companies/developers I know actively seek out feedback on things they're unsure about.
Last project I completed I was getting frustrated because all the backend guys kept saying "Your markup is really clean. Nice work." I was like but what wasn't alright?!?
 
Someone over here has used leaflet.js for maps?
 
So that's what it's like to work with other developers who appreciate you for more than the code janitor.
 
@SomeKittensUx2666 Yeah, I've got a pretty sweet gig with my company. Love the people I work with and the attitude of management
 
3:47 AM
Sometimes I feel like my job description is "Fix all of $OTHER_GUYS horrid code, but do so in a way that doesn't make him look bad"
 
0
Q: Potentially async function return a promise that immediately resolves?

CheapSteaksWhere asyncBananaRequest returns a promise - function potentiallyAsync () { if (cachedBanana) { return asyncBananaRequest(); } return ??cachedBanana??; } potentiallyAsync().then(function(banana){ //use banana }) I want a banana, I might already have it cached. Is there a way for ...

 
@SomeKittensUx2666 Why should you care if it makes other devs look bad? As long as you're upfront with them about what the issue was and how they might approach it in the future their getting butt-hurt over it is their problem, not yours.
 
@monners corp politics.
On one hand, nothing this guy churns out is worthwhile. On the other, he's the technical cofounder.
 
Politics...
I sure hope the money's good
 
It's alright
 
3:59 AM
Well if ya ever wanna move to Aus
 
I think the wife (and heck, the rest of the family) would object
 
 
@dmsherazi 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.
 
@SomeKittensUx2666 Your loss.
 
@Sudhi 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.
 
4:05 AM
@monners If you're hiring remote part-time hackers....
 
@CapricaSix thanks, I am used to SO.chat (other rooms)
My question is this: is it possible to create a tool that uses javascript to draw models (say a family tree) inside Eclipse? In other words, can I create an Eclipse plugin that will use javascript for user interaction?
 
I work in Sublime Text...
 
who doesn't
 
@monners I don't. Vim it is, for me :)
 
@Sudhi you are a god amongst men
 
4:14 AM
@monners haha, now you are just pulling my leg, aren't you :P :D
Never mind my question. According to this IBM resource I can use SWT browser plugin and use Web UI technologies for development of Eclipse-based applications
@CapricaSix ah! so you are a bot who doesn't get offended at swearing? Die you AI! death to the robots! Long live humanity! May your sourcode backups burn in hell :P :D
OK, time to go back to work. See ya guys, GN!
 
How do you embed links in chat?
@SomeKittensUx2666 Nah, but a good team lead locally would be handy :D
 
@monners define: embed links
 
Yeah, ok, that was a dumb description. I mean links where you see the text, not the url
Like above, where Sudhi linked this IBM resource
 
[this IBM resource](https://www.youtube.com/watch?v=oHg5SJYRHA0)
 
It works! IT'S ALIVE!!!!
 
@SomeKittensUx2666 I'm gonna print that out, frame it and hang it in my bathroom.
Below the bowl, slightly to the left.
Arrrrg! I'm in maintenance hell!
Why do projects come to me to die? Why do projects come to me to die?
 
4:44 AM
0
A: Why is node-dev not working?

SomeKittens Ux2666The error isn't with node-dev, but rather in your script. Error: uv_signal_start EINVAL is thrown in newer versions of node when you're trying to work with SIGKILL or SIGSTOP, like so: process.on('SIGKILL', function() { // etc, etc You probably got away with this in earlier versions, but newe...

BAM
ONE LESS UNANSWERED NODE QUESTION
 
@SomeKittensUx2666 Ferris Bueller you're my hero.
 
of course, the asker has only that question and hasn't visited since May of last year, but I helped.
 
@SomeKittensUx2666 See above.
I'm stalking the web design company that I'm having the fix the implementation of.
Seriously, who the fuck explicitly sets font-family: sans-serif; as their primary font?
 
5:07 AM
@BLiu1 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.
 
Ale
How do I nodewebkit on Debian?
Also gm
 
5:31 AM
-1
A: how to increment value passing (++) by function parameter

Sunnytry this: function addone(unt){ var plus = 1; plus = eval(unt+"plus"); alert( plus ); } addone('++');

two answers using eval.
 
5:45 AM
callback hell like a motherfucker here stackoverflow.com/questions/22652294/…
 
@Tyson 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.
 
hey
can anyone help me ??
0
Q: Fill ProgressBar by value/width of other ProgressBars

PhoenixI am generating first four buttons and progress bar dynamically(Java,CPP,Csharp & functional). I am adding width/value to them using javascript/jquery. Now i want to add width/value of all those progress bar to mainProgreeBar after clicking on finish button. Here is my JavaScript code, and Here i...

 
@RUJordan Holy crap! 7 nested if blocks!
 
6:26 AM
@TomDunn 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:54 AM
@VsevolodGlumov 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.
@flyingfoxlee 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.
 
Home sweet home.
 
-1
Q: Automatically choose file and upload to desired server. How to do this?

user3260468Hello I needed code for automatically chose file and upload it to desired link. How to do that? html code: <html> <head><title>Uploading</title></head> <body> <form method="post" enctype="multipart/form-data" action="uploadFile.php"> <input type="file" name="file" id="file"> <input type="submi...

*sigh*
can u please give me the code of javascript? — user3260468 1 min ago
 
DKS
can anyone help?
1
Q: html2canvas not working for multiple div as canvas

DKSI have tried html2canvas for single div and it is working fine. Now I have 2 charts on page, so I want to capture both div in separate canvas and pass it as image. I tried following but it always set to undefined. I don't know what is the problem. When I go to debug mode in firebug I found that i...

 
data: ' { "image1" : "' + imageChart1 + '","image2":"' + imageChart2 + '"}',
WTH are you doing there?
data: JSON.stringify({image1: imageChart1, image2: imageChart2})
you're welcome :p
 
@wardha-Web 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.
@user3400367 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.
 
DKS
7:33 AM
@ThiefMaster Thanks, but that doesn't solve my problem. I have tried for async and that code also mentioned there. That's is not working.
 
Hey guys... can some help me plz...
im wanna send a url via AJAX as one of this POST parametrs
and i have problems with string encoding
i mean POST data string
maybe there is away to some home encode it
 
DKS
@mikrowelt LIKE ThiefMaster replied me, you can use: JSON.stringify({image1: imageChart1, image2: imageChart2})
 
@DroidDev 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.
 
stringify doesnt help guys
i need to send POST request
how i supposed to use stringify
lol ^^
POST data string looks like ?asd[0]=1&url=blabal
 
7:48 AM
hae there am trying to change my normal html select box to one that uses select2 plugin. this is what i had before
var table_html = '<td style="min-width: 200px;"><select name="' + control_id + '" id="' + control_id + '" data-native-menu="false"><option value=""></option>' + str_lookupitems + '</select></td>';
$('#variables').append(table_html);
$('#variables').trigger('create');
and now i this is how i modified my code:
var table_html = '<td style="min-width: 200px;"><select name="' + control_id + '" id="' + control_id + '"><option value=""></option>' + str_lookupitems + '</select></td>';
 
@Loktar Yep, that's evident with the announcement they made. Just hope that it doesn't influence what Oculus was heading towards originally
We don't have much reason to believe it will, because neither Instagram nor WhatsApp have been affected much since their acquisitions as far as I know
 
@amartin 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:13 AM
o.o
 
too many banana D:
 
Would downvote if wasn't by friend :P
 
Hahaha
 
It's like, one of the most common promise beginner mistakes :P his answer is like 8 times as long and much riskier. It also doesn't handle rejection at all. If fetching the request fails asynchronously you're fucked.
 
8:26 AM
I downvote
yeah, I'm that kind of ass
 
user2509223
giorno tutti
 
i have never downvoted... i don't see a good point to do that
seems like a roman emperor saying it's bad without giving a reason
 
Then comment and give a reason
 
@Chiru 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.
 
Thanks, Caprica Six! Even if I'm pretty sure that you're a bot. :(
 
8:37 AM
@FlorianMargaine I don't downvote friends :P
 
@FeyyazE 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.
 
@BenjaminGruenbaum well, too bad for you, I GOT NO FRIENDS
 
i know that you can comment it but still ...
 
The answer is like - $(this).attr("id") :P
 
user2509223
8:41 AM
@BenjaminGruenbaum that seems to be a complicated syntax
 
@derylius yes, people don't know the DOM API - I've actually seen $(this).attr("id") used several times :/
 
That's the point. Why the hell would you do that instead of just this.id?!
 
because it's not jquery
 
@SomeGuy you don't know the DOM API, and $(this).attr("id") works.
 
Yeah, I get where they're coming from. Just wish that they weren't coming from there and learned the basics before using a library
 
8:45 AM
@SomeGuy honestly? Name one time you really learned the basics before using a library?
 
I learned C...
there's no library in C
 
@BenjaminGruenbaum I did for JS
 
user2509223
@FlorianMargaine I learned haskell, it didnt help at all
 
@SomeGuy you knew JS perfectly including understanding all the abstractions like the prototype model, asynchronous event based coding, dynamic behavioral typing and etc before you've written your first piece of working production code?
 
The basics isn't about knowing the language perfectly without any mistakes
 
8:48 AM
@SomeGuy knowing DOM Element objects have an id property and not just an attribute isn't absolute basics.
Just like @SomeKittensUx2666 and promises, his code has a common anti pattern, more risky than $(this).attr("id") but it works and it solves OP's issue, even if not optimally.
It's a hell of a lot better to solve something in a not best practices way than to not solve it at all :P
 
user2509223
its about understanding the object notation and its connection to SGML
 
@BenjaminGruenbaum Fair enough
 
It depends from place to place. My first programming language at CS was Java
 
@Zhegan Might be a bit of an edge-case there
 
8:52 AM
heh @ <output>
 
But that's a good one
 
the only time i had to use attr('id')
 
Well, there is getAttribute
@Zhegan Are you someone we know who's changed his name?
 
no
 
Jhawins?
 
8:54 AM
darwin
 
@Daredev 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.
 
Who the hell is @Zhegan?
 
YOUR MOM!
 
Mar 9 at 0:17, by Stack Exchange
Huh
 

« first day (1257 days earlier)      last day (3697 days later) »