« first day (1230 days earlier)      last day (3943 days later) » 

00:00
node.js
isn't that like server-based stuff?
what foul sorcery is this?
the future
and it is nice
I like living in the future
00:13
I like js but I'm so bad at it... I wanna get better
what gives you troubles?
mostly the way it's organized. It's not as straight-forward as something like C or Java, it seems. Maybe I am just doing it wrong
it's organized how you want to organize it ;)
@rlemon i've used node webkit
But yea. Having recently moved into node I admit it is different
Client side js, no prob
00:18
node webkit is cool because you can do both
also: multiple windows with one application
you can essentially create a hidden window and use it as a thread
@RockyLee 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.
00:44
what's different about node?
It's serverside.
I mean. It can read from stdin and do things more like a language like Python or C?
Yeah. It can be used for scripting, etc.
scripting you saaay? Exactly what I am after
can you still make class-like structures in it?
Depends on what you mean by 'class-like structures', but probably.
00:59
I can show you what I wrote. But I want to re-write it in JS and extend it more
Node is still JavaScript. Just not in a browser environment but in a Node environment.
What is the "node environment"?
basically a set of APIs that isn’t the DOM
I'm already reading the API... so it would be able to accomplish what I like
Dealing with Adobe support is like trying to herd cats.
01:12
@Crowz And if it's missing anything, Node is written in C++ and you can always extend it with C++ code.
nice. For some reason I can't stand writing in java
"for some reason". Couldn't fire up the ol' ExcuseFactoryFactory?
4
everyone in school seems to like it, I think it's pretty meh.
@Crowz It depends on what you're comparing it to and what you're using it for. I'll take Java over C++ any day.
I dunno my preference lies with python tbh. Seems to be very straight-forward and consistent.
01:20
Yeah; I'd rather write Javascript or Python than Java.
I think my language preference order is something like Javascript, Python/C#, Java, C++
mine's pretty close to that, high level languages are better. I hate reinventing the wheel
Yeah, I prefer high level, but it's a preference thing. Some people really like digging into the low level.
01:45
@AdamHart 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.
02:31
hello anyone one!!
Ahoy hoy
pastebin.com/YhuDDVyU well in this code i am trying t display the news from the feeds
but the problem is
i want to load the news when the link is clicked. Rest of the code is fine
but i cannot implement this.. i mean without the jquery... if the setCallBack() is put outside the click(function(){}) it works fine
but with the click function nothing happens
*setOnLoadCallback()
where am i wrong?
no help!!
02:57
Anyone got a beta license for Atom Editor yet?
got the error!! :P
03:29
@VikasMangal 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've got two invites for Atom Editor beta to give away. Anyone interested?
@phenomnomnominal What email should I send it to?
Sent
enjoy
I got an error. Let me know if it doesn't come through...
I may have accidentally sent you two invites :S
03:40
Hasn't come in yet, what was the error?
"Whoops! It looks like you don't have any invites left." I had two left when I sent it
Oh lame, yeah they came in
Well, just forward it on to someone else :P
04:10
@phenomnomnominal Well, there goes my evening. Atom's cool as shit!
04:23
@phenomnomnominal Are you playing?
Not yet! Still at work!
05:21
@monners See? You're a poopyface
Shit man my PS3 is having trouble reading discs
6
Q: for loop string each word

user1775888if this type character '這' = NonEnglish each will take up 2 word space, and English will take up 1 word space, Max length limit is 10 word space; How to get the first 10 space. for below example how to get the result This這 is? I'm trying to use for loop from first word but I don't know how to g...

@SomeGuy I don't follow
You sent phenom two codes :p
@SomeGuy That's github's fault. Their interface couldn't discern an accidental doubleclick
06:17
0
Q: How do I style bases of bars like this?

Rahul DesaiRight now, I have my bar bases styled as shadows using ellipses.: http://jsfiddle.net/rdesai/MjFgK/55/ How do I change the style so that the bases look like in the chart below? My D3 code so far: var data = [ { "episode": "Ep. 01", "donations": 100, "ngo": "abc", ...

@Mosho any idea?
06:30
@phenomnomnominal Do you have some left ?
06:43
Yeah, if you do, I'd like one too
m59
m59
hey dudes
Haiz
@MohammadFaizankhan 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.
Use Ctrl+K to format your code
Hit up to edit, then Ctrl+K to format it
06:57
function Ninja(){
  this.swung = true;
}

var ninjaA = new Ninja();
var ninjaB = new Ninja();

Ninja.prototype.swing = function(){
  this.swung = false;
  return this;
};

log( ninjaA.swing().swung, "Verify that the swing method exists and returns an instance." );
log( !ninjaB.swing().swung, "and that it works on all Ninja instances." );
Good enough
m59
m59
Woot, my api is 40% faster than youtube's.
Congrats!
What API is this?
m59
m59
For my CMS
@MohammadFaizankhan Someone's been reading Secrets of the JS ninja
user1642018
07:05
hi all, i am having weird js issue, i have created 2 functions each one can be called using href=javascript:functionName(); but how can i combine both of the functions ?
m59
m59
It's 75ms avg (assuming I'm thinking of this correctly)
user1642018
function getFiles(hash){
   $('#fileslist').load( hash + '.html');
};

function createTree(){
   $("#fileslist").treeview();
};
m59
m59
@AMB first, never do that.
If you vow to never again put javascript in your html, I'll be glad to help.
user1642018
@m59 sure thing, if i have other options then i would love to learn it.
m59
m59
one moment
user1642018
07:07
all i want is $("#fileslist").treeview(); to be called after $('#fileslist').load( hash + '.html'); and load to be called using link
m59
m59
@AMB with jQuery do this:
$('some-selector').click(function() {
  //your code here
});
user1642018
some-selector can be a link with id="more" ?
user1642018
like <a href="#" id="more">more files</a>
m59
m59
learn what a selector is and you can answer that for yourself
You clearly know how to call a function, so I think you can also figure out how to call two functions in the order you want and in the appropriate place.
Try your best and show me what you tried if you still need help.
@m59 Your best? Losers always whine about their best. Winners go home and fuck the prom queen.
user1642018
07:14
$('id.more').click(function getFiles(hash) {

	   $('#fileslist').load( hash + '.html');

	   function createTree(){
	   $("#fileslist").treeview();
	};

});
user1642018
i know something is wrong, as its not working.
m59
m59
@AMB I want to help you, but I'm bothered that the answer is in code you already had...
user1642018
$('id.more').click(function getFiles(hash) {

	   $('#fileslist').load( hash + '.html');


	   $("#fileslist").treeview();


});
m59
m59
Closer.
Think about it.
You have no idea what $("#fileslist") is?
user1642018
i know , its a ul with id fileslist.
m59
m59
07:16
That should really tell you something about your current problem.
user1642018
wait, let me try some
m59
m59
you shouldn't need to try. You know how to select things by id, so do it.
and your code still isn't going to work, but I'll help you with that when you fix the obvious problem.
@m59 You're so patient... You should be a nun.
Or an accountant
m59
m59
I'd really like to be a programmer :)
user1642018
like this $('id.fileslist').load( hash + '.html'); ?
m59
m59
07:20
lol
So, you took good, working code and applied your bad reasoning to it. That's not what I had in mind.
You really need to learn what a selector is before continuing.
@AMB this would select an element with the tag name "id" and a class name "fileslist"
m59
m59
!!google CSS selector
user1642018
@JanDvorak okie.,
user1642018
like this $('E#fileslist').load( hash + '.html'); ?
m59
m59
07:22
mercy. Where do you come up with this?
What does "E" mean?
user1642018
forgive me but, E#myid Matches any E element with ID equal to "myid".
@m59 "For some in the set of"
user1642018
ooh
user1642018
ul#fileslist
m59
m59
Dude, no.
07:23
no need to include the tag name in the selector
there should only be one element per id anyway
I smell a troll
m59
m59
I smell you guys helping a vamp :)
Anyone playing with Atom?
In predicate logic, an existential quantification is a type of quantifier, a logical constant which is interpreted as "there exists," "there is at least one," or "for some." It expresses that a propositional function can be satisfied by at least one member of a domain of discourse. In other terms, it is the predication of a property or relation to at least one member of the domain. It asserts that a predicate within the scope of an existential quantifier is true of at least one value of a predicate variable. It is usually denoted by the turned E (∃) logical operator symbol, which, when ...
i.e. ∃Kittens
07:25
I know it's a beta and all, but I've caused a crash three times now
m59
m59
@AMB please just google how to select an element by id.
@monners it's in CoffeeScript I hate it.
user1642018
@m59 okie.,
m59
m59
It's so easy and so available it's just wrong to need to be told.
@AMB here's a hint: getElementById
user1642018
07:26
@m59 okie. checking it now.
@SomeKittensUx2666 Well that's certainly a well-informed reason to hate something
m59
m59
!!google select element by id
@SomeKittensUx2666 here's a hint: use jQuery when jQuery is available
Don't use jQuery when you don't know how JavaScript works.
12
07:26
true
@SomeKittensUx2666 Starred. Shit, that should be perma-starred
m59
m59
The 2nd and third result of the most obvious question you can ask in this case ^^^
@monners like this?
My first dev professor refused to tell me anything about javascript libraries until I'd built my own carousel in vanilla. Best lesson ever.
07:28
@monners I like him
user1642018
var fileslist = document.getElementById("fileslist");
m59
m59
grats, now read the other two results, since you're using jQuery.
@SomeKittensUx2666 He was like "You'll thank me later"
user1642018
okie., i am stuck.
@JanDvorak How'd you do that?
07:34
Click the arrow on the left
Pin message
ahh, ninja'd
1 message moved to bin
:14981553 I dunno, some guy
Did you guys see about Nodejitsu trademarking "npm"?
Yeah.
I feel bad for them, they were hosting npm and got it yanked out
even went through the whole #scalenpm thing
07:37
@SomeGuy English fail in the third sentence. Seriously, does anybody even try anymore?
@BenjaminGruenbaum I have a general question related to if you don't mind
@MostafaShahverdy BenjaminGruenbaum is afk: GNIGHT
m59
m59
@AMB did you get unstuck?
user1642018
not yet, still trying.
user1642018
07:44
one question though.
user1642018
can the link more be inside of the selector id ?
m59
m59
I have no idea what you just asked.
user1642018
the button which calls the function , can it be inside the div which i am going to replace using .load
user1642018
?
m59
m59
Does it sound like that would be possible?
user1642018
07:46
i guess , no ?
m59
m59
Why do you guess that?
Fee, Fi, Fo, Fum
user1642018
beucase it gonna replace its content.
m59
m59
And?
Programming = logic. What about that was illogical (therefore impossible)?
user1642018
nothing, its logical imho.
m59
m59
07:49
Then why are you assuming it's not possible?
user1642018
becuase its still not wokring and cant figure out the issue, is there any debugger for javascript ?
m59
m59
You and the dev tools, yes.
user1642018
all it says junk after document element
user1642018
brb
m59
m59
I'd like to see your code, though. I told you it isn't going to work anyway.
user1642018
08:18
@m59 okie., i am back.
user1642018
so far i have managed to do this .
user1642018
var fileslist = document.getElementById("fileslist");
m59
m59
I'm now 99% sure you don't really want help. I gave you google results with the answer.
But one more time just be sure.
user1642018
so far
user1642018
var fileslist = document.getElementById("fileslist");
$( "#fileslist" ).load( hash + '.html');
m59
m59
08:25
That's foolishness.
user1642018
i know , i am supposed to use var name.
m59
m59
The first line of the link I've shown you twice tells you that is ridiculous.
@AMB Why do you use var fileslist = document.getElementById("fileslist"); when you have $( "#fileslist" )
Are you guys going to DHTML 2014 conference? dhtmlconf.com
m59
m59
@Mr.Alien please, let him read.
user1642018
08:27
@Mr.Alien coz i have 2 functions and i want both to work on same slector id.
@m59 He didn't, and most of them never do when we provide articles to them...
m59
m59
Yeah, I recommend no one answer his questions. (the silly ones)
@AMB if you want to learn, then learn. If you want to hack together awful code, this isn't the place to come get help.
@AMB Take some time and learn basics first..
m59
m59
First, you need to know what $ means in your code.
Then $() and #whatever
@Miszy That's amazing
m59
m59
08:30
If you don't know what $('#fileslist') means, you just should not be writing any code until you do.
user1642018
okie., will start from basic first.
m59
m59
I don't mean any offense, by the way. I care about you or I wouldn't be trying to advise you.
user1642018
@m59 i understand.
m59
m59
It's also worth noting that I have taught guitar to children, and they like to put their fingers random places and strum frantically. They might feel like learning where to put their fingers, but that's undisciplined children. If they really wanted to learn, they would learn why they should put their fingers here and there and they would be great musicians.
08:57
@SomeGuy youtube.com/watch?v=oST77VRHXt0 oh god this song!
oh god
does any of you have a documentation on how to use exchange web service?
MSDN says absolutely nothing
m59
m59
This song isn't doing it for me, but dang what a voice.
@GNi33 I like it
m59
m59
I mean, he's not phenomenal, but his voice is cool.
I like everything about that song
it just fits together so well, imo
m59
m59
09:09
dangit, why did I never do this while I was in a band.. youtube.com/watch?v=kCz8JU0ega8
I'm often surprised by the number of upvotes you can get by answering tags like python, c# or java...
13
A: What are "sugar", "desugar" terms in context of Java 8?

dystroysugar, in programming, usually refers to those sweet additions, mostly shortcuts, that make some constructs easier to type and to read (the latter being, in practice, the most important during the life cycle of your program). Wikipedia has a definition of syntactic sugar but you should note that...

@dystroy They have more users compared to other tags, where in PHP people blow off the question before anyone could answer
@dystroy sent to my team
they didn't know what "syntactic sugar" meant :\
@FlorianMargaine They don't ? Damn...
I sent your joke and nobody got it :(
09:13
^^
They're all PHP coders or are there also some java ones ?
This whole timezone thing's unfair. I'm drunk when you're not and vice versa
@dystroy mostly PHP, some are ex-C#
This guy is so far... I don't see how even to help him...
0
Q: How to use Database with Node.js?

Rohit DhimanI am trying to make login in Node.js. but i am confused how to use database.And my Login.html & database.js is like. http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and-local So please give me proper idea. <form action="/login" method="post"> <div class="form-group"> ...

@GNi33 What I've been listening to a lot lately: youtube.com/watch?v=Y1uoVjUgZSA
@dystroy If you love them, let them go. If they come back, they're truly... something.
09:30
@SomeKittensUx2666 @dystroy what are your emails? I'll send you the beta invites
@phenomnomnominal denys.seguret @ gmail
@phenomnomnominal me too
florian at margaine dot com :P
I think he only has 2
damn
you'll have 2 then, won't you?
@FlorianMargaine Heresy ! How dare you envision a new editor might be comparable to vim (or ed) !
09:32
@dystroy I don't, I just wanna show off to my colleagues.
@phenomnomnominal Were you pinging me or Kittens?
they're all drooling on it
FYI atom.io has a form to register for beta
@SomeGuy I don't know, did you ask for a beta invite?
I did!
09:33
It's not letting me do it from here, so I'll do it at work tomorrow!
@FlorianMargaine Did you tell them it will probably be not free at some time ?
@dystroy I'm not sure about that
@dystroy I was thinking the same
09:41
Really hope GitHub allow people to fork their new text editor. That way we could all... (•_•) ( •_•)>⌐■-■ (⌐■_■) ...split the Atom.
Beta Invite for what?
@Miszy Thanks. I'm not sure it's great but the world need better forum platforms that this shitty phpbb
Atom?
@dystroy Who's using phpbb anyway :P
09:42
@Miszy about everybody
I haven't seen it for a while. SMF is more popular IMHO
or commercial boards
@dystroy oh
like IPB or vBulletin
Oh, it's the jeff atwood thing. They built it at last
This being said, the shaking scroll is really annoying...
@MostafaShahverdy sure
09:56
@dystroy looks like it will be free ^
mojombo is github's founder
I linked to that post a few comments before... "making it easy for us to charge for Atom"
my bad :P
if the source is out, it means the code will be paid for commercial usage
Will I store my free to use fork on github ?
not sure how that will work out.
Let it be known that I, monners McMonnerfry, was the first to introduce the Atom invites to this room.
10:10
Monners McMonnerfry? :D
I'll star that just for the name
@Neil Don't hate.
I wanted to learn more about the monners but the web site mentioned in his profile is down :\
ooooooooooooooh burn
@dystroy Fuck. Renewed today. It should be up later
I love this picture
10:12
@FlorianMargaine I love that you love that picture
let's love each other!
@monners "renewed" ? Do you have to put a coin each time somebody want to wget a page ?
@dystroy I let it lapse. the people of Texas don't take kindly to vegabonds.
!!afk Nurse Jackie
user1642018
@m59 hi, i have managed to get the code to work, idk if its programatically correct, but its working as its supposed to be, thanks here is my code
user1642018
function getFiles(hash) {
    $('#fileslist').load( hash + '.html', function(){
       $("#fileslist").treeview();
    });
    };
10:26
Hi :)
Amazed at how this got 6 upvotes
5
Q: JS: How to add negative numbers in javascript

Growlithesupposing I have variable ex1 equal to -20 and variable ex2 equal to 50. I try to add it in javascript as alert(ex1+ex2); but it alerts -20+50. I'm really confused with this. THanks for the help, even though it might be a really silly question.

in HTML / CSS / WebDesign, 2 mins ago, by Will
A local web design company. The entire website, and all of their clients' websites, are massive images with image maps. Why do people get paid for this?
in HTML / CSS / WebDesign, 2 mins ago, by Will
http://onlinewebsights.ca/
@SomeGuy: what the hell, YOU CANNOT BE SERIOUS
@Qantas94Heavy what's wrong with it
@Qantas94Heavy Let's all downvote it
@Mosho it's a lazy fucking duplicate
I was referring to the chat posts that someguy posted, sorry
10:28
@Qantas94Heavy Look at the source, it gets better
It's made in Dreamweaver
@SomeGuy look at their portfolio
and marvel at the wonder
Hahaha, yep, they're all like that
And people pay for that
@BenjaminGruenbaum its the matter of payment
@BenjaminGruenbaum, I want to have some sort of payment, but you know our problems
@Williams 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.
@TrungDQ 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.
10:49
I just can't stop laughing.
All of his reviews are golden. :D
zeropunctuation is fun, yeah
@Zirak @SomeGuy @rlemon
Yea.
Hahaha, sweet!
Hadn't heard of him before now
> My analysis is that it bores me to fucking tears ...
xD
Brilliant.
Errant Signal is one of my favourite speakers on games
Extra Credits is awesome too
10:59
@OctavianDamiean you really didn't enjoy it did you?

« first day (1230 days earlier)      last day (3943 days later) »