« first day (2073 days earlier)      last day (2866 days later) » 
00:00 - 11:0011:00 - 00:00

12:01 AM
@taco nice. I got this place last summer. mid summer
@VeronicaDeane I'm in the middle of a mission, but I will take a shot of the ship pre launch
it is insane :D
 
do eet
do eet nao :D
 
@rlemon I approve of your yard:tree ratio. Love it. I wish I was more handy. I'm hoping my grass grows in the front. I just nuked it to start over.
 
@taco I cut down a slightly large tree when I moved in
 
Is everyone here seriously an atheist. thoughtsandprayersthegame.com this isn't funny
 
wanted more light for the rest of the plants
my theory was I was removing one large plant for 100 small plants. then I planted a shit tonne more small trees
like lilacs
 
12:05 AM
@William I'd rather not pollute this room with politics
 
then people shouldn't star athiest stuff
 
This is it on the pad, btw
 
@VeronicaDeane seriously, why is the warp so slow
outer planets mod.
 
I need to redo the vertical stabilizers though, it flatspins every damn time.
 
3 year trip to outer planets
 
12:08 AM
@rlemon lol
Pretty sure there's a mod for faster timewarp
 
highest warp, still like 15 minutes
 
Be glad you didn't play before they added 100000x warp
 
I may have played then, just couldn't get out of orbit :D
so didn't matter
 
Be glad you didn't play before they made Kerbin round
(That was actually long before the first public release)
Also found this in the history:
> "Kerbal" comes from the name Felipe "HarvesteR" Falanghe gave small figurines he installed in modified fireworks as a teenager
That's... so Kerbal
 
12:43 AM
what madness is this
facebook.com/l/anything redirects you to a page of a facebook dev / ex-dev if you replace "l" with any letter
and anything can't have a . in it
 
@towc not "any letter"
 
well, the 10 letters I manually tested it with
 
k doesn't give you anything
but weird that l gives an error
 
no, k gives you things
 
12:54 AM
@towc If "Sorry, this content isn't available right now" is things
 
weird 0.o
that links me to facebook.com/kwame
 
same result
 
Hey guys... I'm a second year university student doing computer science...I'm no genius and I have a lot of work to do...but I want to learn javascript (although we were "taught" it at university (NOT))
So which is better for someone who has an understanding of object oriented programming(Java, but I'm not excellent at problem solving): Practical Javascript on watchandcode.com OR Javascript for Experienced Developers (available at Microsoft Virtual Academy)? I'm not sure and don't want to waste time on the wrong one... :/
 
@VeronicaDeane as in facebook.com/kwame gives you nothing?
 
the same error
 
12:56 AM
@Naz786 I like this site eloquentjavascript.net
it has a js console
and e-book
 
trippy @VeronicaDeane i.imgur.com/m8uvNyM.png
 
@taco for someone who has made some small to advanced programs with Java, where do I start with it? right at the beginning?
 
@Naz786 yes?
why would you start in the middle
how would that even work
 
@taco I thought it would go through things like what an object is etc
 
You're working on a Comp Sci degree. Do the work.
It's not a hobby, right? It's not going to save you much time
 
1:06 AM
@taco yeah yeah lol
 
cool. be a hack. Might as well just learn jQuery and forget javascript
 
not to confuse jQuery with JS. When people usually talk about JS they actually mean jQuery
so be careful with that
jQuery is the base unit, the main code if you will, and JS is one of the most common libraries you put on top of it
so you actually want to learn jQuery, not JS
 
Stop trolling, he might believe you
I mean, morning
 
So glad I work with GA Tech students in Atlanta. They actually know what they're doing
 
go atlanta! born there!
 
1:16 AM
Nobody's born here!
Where were you really born @William?
:d
 
@taco atlanta, ga piedmont hospital
 
Wow. Nice
I don't really meet many born in Atlanta proper
 
where do you live?
 
Kirkwood in Atlanta
 
not sure I have been there definitely been to Georgia Tech
 
1:18 AM
I came here in 2000 because Jacksonville was horrible
@William when were you last here
 
It is funny Ga Tech is a great school but I believe because of how they admit students they don't have anywhere as near as many international students as say Illiniois
@taco in atlanta last week. I fly through the airport all the time
but that doesn't really count
 
nah, doesn't count :d
 
I never really lived in atlanta except when I was really young
lived in athens, ga
some people found atlanta to hot, I found it just rigght
 
Atlanta capitalized on the 1996 Olympics. I've been here since 2000. It's grown beautifully since then. Other than the traffic situation, which I've avoided
 
I liked not having to much snow
 
1:23 AM
It gets humid
 
yes atlanta traffic is bad
have friends at Ga Tech. They were some smart cookies
@taco you didn't go to GA Tech by any chance
 
nope
I've been to GA Tech parties though
 
hahha
parties yeah right
70% male isn't it
not to mention they are all engineers
 
The parties were probably 90% male
 
My friend goes to Ga Tech there parties consist of xbox and super smash bros
 
1:26 AM
I had a guy want to fight me at one party. Saddest cockblock I've ever experienced
 
They create like year around brackets
 
I was just talking to the girls. I was dating somebody lol. They were so desperate and sad
 
@taco are you a girl
 
Sounds like fun
@William if you want me to be
 
I'm just trying to understand who you were dating
 
1:28 AM
I'm a 39 year old man, but I can buy a wig if you want
 
a guy or a girl. I guess you could be LGBTQ
Yes some of the guys there are sad but at least they are smart
I'm not smart or good looking
 
I was dating a girl not at the party. It was halloween. I was dressed as "dick in a box guy" and a "friend" of the girls didn't like me talking to them
@William don't say that. Just shower, stay healthy and you'll meet somebody
That's what I did. And she's pretty awesome
 
Sometimes I find it hard to understand the modern symbolism
 
elaborate
 
What's the reason to put your penis into a gift box, or to pretend to?
 
1:32 AM
"Dick in a Box" is the debut single by American comedy troupe The Lonely Island featuring singer Justin Timberlake. The song and music video debuted on Saturday Night Live as an SNL Digital Short on December 16, 2006. The video depicts two early-1990s R&B ballad singers Andy (Andy Samberg) and Raif (Justin Timberlake) crooning a holiday song about making a gift for their girlfriends of their penises which they have wrapped in boxes (strategically placed) and topped with bows. The song originated from Saturday Night Live executive producer Lorne Michaels, who asked Samberg to write a track to showcase...
It isn't funny to me
 
I like the identity crisis one
 
@William ?
 
@taco sorry not me
I'm 21
he is like 12
 
1:34 AM
@JanDvorak Did you see the skit & not understand, not find it funny, or ...?
@William why did you post that though
 
I hadn't seen the original, and when I read about it I didn't find if funny.
 
I thought we were posting halloween costumes. Get it identity crisis?
 
Oh ok, didn't realize that was a costume....... seemed odd....
 
Most of modern ... imagery ... seems odd
 
bye
 
2:31 AM
Hi all
 
hello
 
@Loktar omg so fat
 
lol
 
user4196492
Trying to make an easy game maker for my cousin to code with, when they pass in the document, I want the if statement to run. It does, but I defined a function inside of it to initialize the canvas, but it is saying that "setup is undefined".

http://paste.ofcode.org/369WTwM7TNxen5MeWdQvvpU
 
user4196492
when I used this, I expected it to be referencing the function itself, but instead it referenced the window.
 
3:22 AM
@pebble225 I have no idea how your question relates to your code. You're missing something.
 
@VeronicaDeane i do not find your stared post funny.
you must be an atheist yes?
 
user4196492
wat?
 
user4196492
When I said "this" in my second post, I literally meant the "this" keyword.
 
@pebble225 If you read the documentation, you should find that this refers to the object instance used to call the function as in a.myFunction(), or the newly created object for a new call, as in new MyFunction(), or the global scope (window) otherwise.
So you must be calling the function as a normal function, without an object instance
 
Damn I tried to ban assault weapon sales, but for some reason criminals kept getting them and I lost :(
 
user4196492
3:30 AM
so by saying "this", I am putting the object inside of the window?
 
@pebble225 yes
 
user4196492
How can I reference p$()?
 
with p$
why would you assign properties of the function though?
 
user4196492
is it okay to do this?:

p$().setup = function(){};
 
that's messed up
You probably want the function to return something
 
user4196492
3:33 AM
no
 
user4196492
I don't need to
 
user4196492
it is a new function
 
you mean a constructor?
 
user4196492
p$.setup is supposed to be a new function
 
or literally a brand-new function?
 
user4196492
3:34 AM
yes
 
oh that way
yes you almost definitely want to return something
 
user4196492
???
 
user4196492
this is so dum
 
user4196492
hold on
 
@William what has that got to do with common sense?
 
3:38 AM
@pebble225 You probably want p$(document).setup or new p$(document).setup
 
user4196492
p$() is supposed to kind of be like a class with different functions, but I am trying to make this work kind of like JQuery.
 
you want p$() to return a new object that has a setup function... right?
 
@Mahadevan don't learn from them
 
user4196492
no, p$() is universal with everything with what I am making. The object that is passed in will determine what functions can be used. I think this will.....screw this, I have a better idea, hang on...
 
> Great Job! 118 Thoughts and Prayers. 0 lived saved.
> Fling Mexicans over a wall and make America great again!
 
user4196492
3:50 AM
is this a religious argument going on right now?
 
user4196492
okay
 
user4196492
I just had something traumatic happen recently. People arguing over that makes me think about my brother.
 
user4196492
I'm getting the same error doing it like this: paste.ofcode.org/38TwWUN2J56WmNnnWSrnLXV
 
@pebble225 ah, I'm sorry
 
user4196492
4:03 AM
@littlepootis I would share it, but I'm not sure if I have been here long enough to kind of open up.
 
TypeScript is telling me Property 'trunc' does not exist on type 'Math'. but Math.floor works?
 
@OldBadmanGrey Welcome to the JavaScript chat! Please review the room 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.
 
@OldBadmanGrey Math.trunc is ES6.
@pebble225 It depends on how comfortable you are with sharing it.
 
ok. Just transitioning to TypeScript. I was under the imprestion that it was a superset of ES6. apparently not fully yet.
 
user4196492
4:25 AM
My brother died 2 days ago.
 
user4196492
I knew him for 18 years
 
user4196492
If it wasn't for him, I wouldn't be in this chat room.
 
@pebble225 :(
 
@Zacharee1 Welcome to the JavaScript chat! Please review the room 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.
 
user4196492
I didn't want to interrupt any questions anyone was in the middle of asking.
 
4:35 AM
I can't seem to figure out how to filter out just an opening square bracket that is combined with a string ([0;31;1 for example). Everything I find using .replace() gives a solution for either filtering every square bracket (which I don't want to do) or filtering out matching brackets and content in between.
 
user4196492
Ah! I just figured out the problem with my code
 
user4196492
If I put a function inside of a function, Javascript will want me to use "new" everytime I reference the function.
 
@pebble225 I'm sorry. That must've.. hurt..
 
user4196492
I need to find a different way to organize my code.
 
I use Magic®
 
4:43 AM
When you do something like..
function Something () {
  this.pootis = "meaning of life";
}
If you execute it like this:
 
user4196492
@littlepootis that will work because Something is seen more as an object?
 
Something()
then, this will be window.
@pebble225 No, how it will be seen depends on how you call it.
This pattern is used to emulate classical OOP stuff.
 
user4196492
Something.internalFunction() would return an error if the object is define inside of Something() using "this"
 
function Person (name, age) {
  this.name = name;
  this.age = age;
  this.getInfo = function () {
    return this.name + " is " + this.age + " years old.";
  };
}

var person1 = new Person("Pootis", 9001);
console.log(person1.getInfo());
 
user4196492
@littlepootis that would work
 
4:49 AM
If you don't use the new keyword..
 
user4196492
I am trying to make it work like JQuery where I call $() and then call an internal function like click(function).
 
user4196492
it don' work tho
 
@pebble225 If you want to do what jQuery does..
you'll need to do something like..
 
1 message moved to Trash can
@littlepootis Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
user4196492
paste ofCode it my effective alternative

http://paste.ofcode.org/
 
4:53 AM
lol this is weirdf.
 
@CapricaSix shut up stupid cap
 
Hi. Whats the node command line argument to execute script and fallback to REPL mode instead of quitting...?
 
It does something like this.
 
Error 404 occured, I will call the maid (@Zirak)
 
user4196492
4:56 AM
What if I made it simpler by making objects with functions inside of them?
 
It will not allow you to do stuff like this: $("div#lol").whatever().empty().refill().click(function () { /* something */})
If you want to be able to chain like this.. just do
 
user4196492
lemme code up an example reel quik
 
jquery.prototype.somefunction = function () {
  // do something
  return this;
}
 
That's just a normal object.
 
user4196492
5:01 AM
The program I am trying to make isn't going to have to be really abstract. It just needs to work.
 
user4196492
This is going to be for a 10 year old that like code. ;)
 
Oh, then expose a simple API to him. It doesn't matter what pattern you use.
 
user4196492
@littlepootis her*
 
ah, okay
 
user4196492
It is going to be a nice and simple grid format for placing objects in the game, no need for that frustrating pixel positioning
 
5:07 AM
@pebble225 ah, that's nice. Just don't use complex terminology like game.initializeArena(), game.getContext().
 
Is there a way I can use .replace() to filter out [m or [0;31;1 (as examples)?
 
@Zacharee1 I don't get it. For example?
Not sure what you mean by "filter out"
 
remove
 
remove from?
 
like data.replace(/[m/g, '');
 
user4196492
5:08 AM
from an array?
 
except that doesn't work
It's a string
 
any one with curl knowledge here...? does --data-urlencode work like a get request?
 
So, if you have a string like..
[mom] => om]?
 
[01:06:39] [Server thread/INFO]: [0;36;22m[0;37;22mType [0;36;1m/help 2 [0;37;22mto read the next page.[m
I need to get rid of [0;36;22m, [0;37;22m, [0;36;1m, [0;37;22m and [m
 
user4196492
strings are complicated
 
5:10 AM
^
If you know what format they're going to be in, you'll be extract data.
 
any workaround this error
This project uses Meteor 1.3.3.1, which isn't available on W
work with this app on all supported platforms, use
meteor update --release METEOR@1.3.3.1 to pin this app to th
Windows-compatible release.
 
user4196492
They have so many functions()...
 
Is there no way to filter those things out?
 
@user1533609 Other than.. switching to Linux?
 
user4196492
5:13 AM
My Internet connection is....magnifique
 
not an option unfortunately, linux creates more problem for me
 
Try running..
meteor update --release METEOR@1.3.3.1 as said?
 
user4196492
thanks for the help my pootis. :)
 
5:14 AM
@littlepootis again the same error comes
 
Hm.. some stuff don't run on Windows.
Why not run it on something like Vagrant?
And then port forward to test your app.
 
I was looking to fix this error instead of some escape plan :(
 
That's not an escape plan..
Also, you can install a Vagrant box that's similar to your deployment environment.
 
will not that slow down my computer?
 
Nope. It uses like 150mb ram.
Unless you use a Windows box..
Install an ubuntu box, and install meteor.
 
5:23 AM
Hello, I don't mean to interrupt. I am very new to javascript and web programming and I am having trouble with making a piece of code run how I intend it. I don't even know what I am having trouble with so I don't know how to start my research on stackoverflow. Would someone mind having a quick look at my code and hearing me out as to what I am trying to accomplish? Thanks in advance.
 
@Alexz Welcome to the JavaScript chat! Please review the room 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.
 
@Alexz You could've just said "halp"
question?
 
Ah, thank you.
So I am trying to write a piece of code that will switch between different texts.
 
@littlepootis thanks for the advice
 
Such that I have a <div class="poem"></div> that is empty and I'd like to use javascript to switch between a list of content
Currently, I have written this code:
    var poems = ["1","2","3"];
    var position = 0;
    document.getElementById("poem").innerHTML = poems[position];
    function previous() {
        if(position < 0){
        position -= 1;
        document.getElementById("poem").innerHTML = poems[position];
        } else {
        position = poems.length;
        document.getElementById("poem").innerHTML = poems[position];
        }
    }
    function next(){
        if(position < poems.length - 1){
        position += 1;
        document.getElementById("poem").innerHTML = poems[position];
(I did write "<div class="poem"></div>" but it is in fact a "<div id="poem"></div>")
I have also this HTML in the file which should call the javascript onclick
<button type="button" id="previous" onclick="previous();">Previous</button>
<button type="button" id="next" onclick="next();">Next</button>
The idea is to have <div id="poem"></div> filled with a poem and to use the buttons to cycle through various poems.
 
5:32 AM
Hm.. JSFiddle it.
position = poems.length;
This should be position = poems.length - 1 (index starts at 0)
But there are other issues:
You're checking for position < 0, which is always false.
Because the possible indexes are.. 0, 1, 2...
 
No, because when you have position = 0 and press previous, then the if statement will make position to be -1 (position is an integer to keep track of which poem is on display), in which case that can be true
That is for the second point.
Using JSFiddle, it now displays the first item upon load. However it then doesn't switch between the items.
 
I don't think position will ever be -1.
also poems[-1] doesn't make sense.
 
Yeah I know....
Wait.. I think the sign should be the other way around
position > 0
 
Either way, the main problem is that the actual text doesn't refresh
Once it loads it stays on "1" and doesn't switch no matter which button I press
 
5:48 AM
12 mins ago, by little pootis
This should be position = poems.length - 1 (index starts at 0)
 
Thank you
Also, is it possible that Css is somehow interfering?
Because I copied your JS into JSFiddle with my css and it doesn't work
It woks in the JS Bin
 
@Alexz nope
 
Alright, I'll try embedding it into the rest of my code and I'll see if it works
Another question. Does JS ignore whitespace?
AAAAAaaahhhhh
I know what's wrong.
It's not running the JS
I inspected the page with Chrome and went onto the console.
Keeps saying that "previous" and "next" are not defined
Same thing happens on JS Bin if you turn off autorun JS
Okay, thank you very much for help
 
6:23 AM
is it possible to loop media fragments out of the box or do you have to do some extra magic with a listener?
 
 
3 hours later…
9:01 AM
anyone have any idea about attaching user's name to opentok streaming video element?
i posted a question
 
hmmm
are there specific errors or anything that you get (looking at your question)
 
not at all. no errors
i mean console is not showing any errors
But when I'm doing $div.find('h1.OT_name').html(streamUser.username) it's showing undefined.
but when i'm doing the same thing in the console with custom id grabbing it from the html dom, then it's working
 
wait why are you doing find().html?
 
coz i saw that within the div, there is a h1 tag. whose class is OT_name. Within that the name of the user is displayed
 
gotcha
do you have a pic or something of the DOM?
there are a lot of DOM references and no DOM to see in your question
 
9:16 AM
 
have you verified you're getting the correct data from the server?
 
yes
 
mmm, i guess you did say that when you manually do it from the console it's getting it though. right?
 
yes. I think on my script. when I'm calling console.log($("#stream-"+event.stream.streamId).find('h1')); it's returning an object
 
is there any reason you're not doing $('div')
?
 
9:19 AM
and maybe it's unable to access it?
reason is to be specific with the current div
i was just referencing that
 
and what happens when in your code you call console log on $div.find('h1.OT_name')
oh wait
you're calling $div.fin('h1.OT_name') but you just created that element a few lines up right?
 
ya
 
so technically h1.OT_name isn't in the div because it never got put there as far as I can see because it just got created?
right?
 
is that so? i don't think so. because when i'm console.logging $div , the object it's returning has an innerHTML property, within which the whole dom string is there
 
can i see?
 
9:28 AM
but im unable to access it.
wait
 
where was h1 added to $div, I don't see where that happened
 
it's added automatically when a stream is getting created
check the first snapshot.
 
hmm ok
when you console log $("#stream-"+event.stream.streamId).find('h1.OT_name')
do you still get an object?
also for shits and giggles, if you do get an object returned by that, can you do: $("#stream-"+event.stream.streamId).find('h1.OT_name').html('yourHtml');
?
 
yes it's returning an object
with property of context
and document
within the context there is a property called title.
i tried messing with it
no luck
 
so this doesn't work?
$("#stream-"+event.stream.streamId).find('h1.OT_name').html('yourHtml');
 
9:37 AM
nope.
i will check it again
 
is the HTML being loaded in an IFrame or something?
 
i don't see any iframe in dom
it should show. right?
 
yea i'm just thinking of things that would possibly not allow you to mod it
just for shits and giggles
 
hmm
 
what if you pass a raw string to the html call?
so html('anActualRawStringNoVar')
about to jump in a game of league i'll be back in a few
 
9:46 AM
i have no idea what I will do with this. damn
 
9:59 AM
Morning
 
10:15 AM
did you try that raw string?
 
OK, WTF is that policy? "We'll give you a dowload link to this free tool you wanted to download, but we'll also post on behalf of you on Facebook. You may delete it afterwards. Alternatively, we may send the link to your email, to which we promise to not send any other spam".
 
@JanDvorak Sounds like malware to me.
 
The tools they provide are/have been legit
 
00:00 - 11:0011:00 - 00:00

« first day (2073 days earlier)      last day (2866 days later) »