« first day (967 days earlier)      last day (3987 days later) » 

12:02 AM
it's a test
 
It's a trap
 
@phenomnomnominal test what?
why test?
 
it would appear to test that clicking a button makes a counter go up
 
@phenomnomnominal yes, but why would you test? its not going to stop working is it?
 
it might?
You might make a change somewhere that causes it to break
 
12:11 AM
well, surely you would know if it has stopped working, what does the test do, i dont see it doing much
 
it automates it
surely you've heard of software testing?
 
Your mother wears army boots in the shower
 
How can you be so sure?
 
6 hours later, maybe I should throw some ads up ;)
oops, wrong one
woo
 
Yeah nothing about army boots in that one
 
12:15 AM
@Shrout1 $('#table1').find('tbody:last') returns an empty set
 
@phenomnomnominal What are you doin beautiful ;)
 
Making my website you little slut
 
LOL, I love it when you talk dirty to me ;)
 
Hmmm an empty set... What do I need to do make it return a usable... set?
 
I'm trying to drink a coffee with no sugar/creme, just straight black, I've been drinking it for 2 hours, and have microwaved it like 5 times
 
12:16 AM
Oooh sorry for interrupting
 
I'll get through this
 
@Shrout1, look at your ID that you are using.
 
Mmmmmmmk 1 momento and thanks :)
Mother of god
How do I do this to myself
 
It's good, you've now learnt one thing to check when you see that it's not working
 
RAAAAAAGE
 
12:17 AM
I'd tear Kate Upton apart
!!fuckable KateUpton
 
Lol
 
All righty! Thanks for the help - Gacnt enjoy your coffee.
I'm not clicking on anything that says lemon
 
@Gacnt, bro, she'd look at you and laugh.
 
12:18 AM
!!forget fuckable
 
@Gacnt Command fuckable forgotten.
 
Oh Jesus christ she's 3 years younger than me??? WHEN DID I GET OLD
 
No she wouldn't :<
What prefix do you put so the bot doesn't ping the user on response when learning a command @phenomnomnominal haaaaaaaaaalp
 
8 years younger than me
 
<>?
 
12:19 AM
Gawd why am I still here
 
Because you're learning to become a man
whaaaat, im 2 years older than kate upton
are you srs
 
OMG I should be coding.
 
!!learn fuckable '<>http://lemonmeme.com/fuckable.php?age=$0#.png'
 
@Gacnt Command fuckable learned
 
12:20 AM
!!fuckable kateupton
 
No work
!!forget fuckable
 
@Gacnt Command fuckable forgotten.
@Gacnt Command fuckable learned
 
This bot, DOES EVERYTHING TO SPITE ME @Zirak
 
!!learn echo2 "<> $0"
 
12:21 AM
@KendallFrey Command echo2 learned
 
!!/echo2 weee
 
@KendallFrey weee
 
!!forget echo2
 
@KendallFrey Command echo2 forgotten.
 
There is no logic in this place, like Sisyphus I am bound to hell.
@phenomnomnominal My new favorite song, is cranking my volume, and pinching the audio jack between my fingers, and tapping it on my desk
Think I should put it on soundcloud?
 
m59
12:28 AM
@Gacnt man I can't remember where that quote came from..
 
Which one
 
m59
There is no logic in this place, like Sisyphus I am bound to hell.
I know I just heard it the other day...
 
Sad cat diary lol
is equally as funny
 
m59
Ahhh yeah
we've been watching that guy ALL the time
watch his sea pig video, SO FUNNY
 
I did hahah, I've watched em all
the chameleon one and sea horse had me in tears
 
m59
12:30 AM
just...don't try to rob me. For both our sakes
 
LOL
"Imagine trying to propel yourself on a skateboard by flapping a Denny's menu behind you"
 
m59
LOLLL
 
"The Seahorse does not really swim, it has a stupid little fin, it's more of an aggressive floating" LOL
 
@Gacnt, probably get more likes than your DOTA page
 
Doubt it, my page is on front-page my little brony
 
12:33 AM
Cool story, bro
 
m59
brag-off ftw!
=D
 
@phenomnomnominal I'll piss down your slide
 
I'll take down your site
 
 
12:37 AM
You wouldn't be able too :<
 
Maybe, maybe not
 
Lets make out :/
under the slide
 
Sounds like a plan,
 
God I am sooooooooooooooooooooooooooooooooooooooooooooooo tired
 
Go to bed, you moron.
 
12:38 AM
Do you meet your co-workers under the slide and exchange lunch food
I'm off work in 10 minutes :/
 
Yes, I meat my co-workers
 
Sorry, I don't know what you're talking aboutt
 
Exchanging food, not so much
 
@Gacnt cool, memegenerator.net :)
 
@phenomnomnominal= data.whatTime?
 
12:47 AM
I don't even know what words you are saying.
 
LOL
Actual lols
What time is it there
 
12.47pm
 
Just curious if you're just getting up and going to work, when I'm getting off work and going to bed
12:47 on the 9th
 
No, it's Sunday
 
?
 
12:48 AM
yeah
 
lol, how's it feel to be livin in the future
If the world ended for you, it wouldn't end for 1 more day for me
All logic out the window
 
Naturally
The future is okay.
 
Just make sure if it does, you let me know so I have 1 day to prepare
 
I have ice cream, so it's all working out quite well.
 
Ice cream, a slide, and a climbing tree :/
and im in the back of a semi truck trailer
 
12:50 AM
@arbitter 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.
 
m59
1:06 AM
I just remembered when I was new to js and a troll taught me that the var keyword was useless in modern programming.
I remembered because I'm looking at code from a year ago and....ugghck
that definitely said "kkk" LOL
 
Can a JQuery append to a table span multiple lines? or does it all have to be like ` $('#School2Athlete').find('tbody:last').append('<tr><td>Stuff with no carriage returns</td></tr>')
I want line breaks...
 
m59
this php file goes:

add jquery and another library for no reason
php block
js block with php echoed into it, and everything is globals with like 100 lines of repetitive code
php block
html block with php all over the place AND a document.write js line
one more js block

@phenomnomnominal @rlemon @RyanKinal @FlorianMargaine
and @all you other peeps

Thanks for saving me from myself!!
oh and the best part, this is just a contact form LOLLLLLLZZZZZZZZ
 
Work a day job during the week, come code myself to death during the weekends.
 
sounds good as
 
m59
@Shrout1 I don't get your question...can you be more clear?
 
1:17 AM
I am trying to append a row to a table - but the row has LOTS of fields. I'd like to use carriage returns for the <td>s because that's how I usually lay out a table. It just seems like when I use a carriage return (or a line break) in the .append() (in the parentheses) it doesn't work.
Like when you code in some languages you have to use an underscore to carry to the next line... is that the same with JQuery?
 
m59
jQuery isn't a language...
 
Hmmm - I guess it is a set of libraries
Based on JavaScript
 
m59
I don't think you should be using <br> at all
 
Not <br> in the HTML - like an actual line feed or carriage return - let me see if I can make a fiddle real quick :)
 
m59
Ohh you mean for the source
Don't worry about the fiddle
Did you come from php or a server side language for projects like this?
@Shrout1
 
1:21 AM
Frightening as this is the main language I've used in the past is VBA
I'm dabbling in front end stuff now, also trying to learn SQL lots of goodies :)
But I'll finish the fiddle quick either way; maybe I'll figure it out while I make it
 
m59
I may not be experienced enough to get this right, but I know the js output I recently worked with didn't appear in the page source at all
you would need to use the dev tools
 
1:36 AM
There are quite a number of typos in the rules lmao
 
@Shrout1 you can use \n
 
2:02 AM
@m59 is that your sister in your DP?
 
3:01 AM
@rscnt 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.
 
m59
@Gacnt sister, what?
 
Check out the post it links to too
 
4:11 AM
@FlorianMargaine Thank you for the hint! I am actually just going to use the .clone functionality as it turns out it's much better suited. Baby steps!
 
4:24 AM
@m59 you guys looks related haha
 
m59
oh lol. Yeah, we get that often enough to be creepy :)
I guess that means I'm oh so beautiful.
=D
 
@m59 It happens with me and my fiancee sometimes too.
 
m59
Cool!
 
Hawkward
 
m59
heheh
 
4:29 AM
user image
3
 
m59
awwwwwwwwwwwwwwwwwwwwwwwwwwwww
 
m59
fantastic photo. Who took it?
 
On the bright side of things my gf and I look nothing alike :P
@benj bonus points for the shirt :)?
@SomeKittens did your fiancé move with you ?? I totally pictured you more like an Octavian with a sick dev beard
 
4:49 AM
0
Q: Move from point a, to point b, and determine the accuracy

LilGraveLet's say I have a circle at point a (0,0), and I wish to move it to point b (23,58), whatever, how can I accurately do this with a speed variation if I wanted. (I'm doing this in javascript). Every attempt I make ends up causing it to shake (as the accuracy is off) someone suggested clamping bu...

 
@FlorianMargaine, @phenomnomnominal, @Jhawinsss, @Gacnt, Sorry, the backup learned command overwrote it. You just had to /forget and /refresh
!!/fuckable 25
 
@Zirak A person that age can shag down to 19.5, and is the lower limit of a person of 43 years
 
!!tell phenomnomnominal fuckable your sister
 
@Gacnt Your mom is always open for business.
@phenomnomnominal Your sister is too busy right now.
 
!!/fuckable Gacnt
 
4:56 AM
@phenomnomnominal This is srs bsns, please treat it as such(see /help fuckable).
 
!!fuckable rlemon
 
@Gacnt This is srs bsns, please treat it as such(see /help fuckable).
 
Hahahaha
 
Unlucky streak...
 
!!fuckable Zirak
 
4:58 AM
@AmaanCheval Why don't we ask @Zirak?
 
Hahaha
!!help awsm
 
@AmaanCheval awsm: tks a sntnc and trns i awsm
 
5:17 AM
@m59 It was our engagement photo shoot
 
m59
@SomeKittens cool. Me and Dani looked super Twilight for ours lol
 
@Gacnt I actually can't grow a beard at all. All I've got is goat scruff and a white trash 'stash
 
m59
then again, I guess we did at the wedding. Oops.
 
@Gacnt No, she's still in NY, finishing her degree, student teaching in the fall.
 
@SomeKittens, bro that sucks. Long distance never works
 
m59
5:19 AM
 
I wish you the best of luck
 
m59
luv dem eyes
 
@phenomnomnominal It's only for 6 months.
 
Oh good
Anything over a year and you're fucked.
 
@m59 She kinda looks like Zooey Deshanel (though you've probably heard that a million times)
 
5:21 AM
My 6 year relationship fell apart after about 14 months of long distance.
 
sorry man.
 
Haha yeah, sucks, but what you gonna do.
 
m59
@SomeKittens yeah, actually, not so often, but I think so :)
 
We will see each other for a week twice until then.
 
m59
a few people told me she looks like someone from true blood...
I haven't seen it.
 
5:24 AM
me neither.
 
m59
It was Lizzy Caplan...and no.
 
Attention: Goodnight. That is all.
 
m59
@Gacnt night!
 
Woo
 
m59
grats
night all
 
5:30 AM
@Gacnt Nice shirt! I have a TL one
@rubberchicken , any reason for unaccepting this:
1
A: sort javascript populated select list by alphabetical order

Benjamin GruenbaumHere we go. You want to sort an object's enumerable keys by their values. You can use Object.keys to get the enumerable properties of an object. Then, you can use Array.map to convert each key, to its value in the object. (That link has a shim for older browsers in both of those) Then yo...

 
5:45 AM
@BenjaminGruenbaum You aiming for 20k?
 
@SomeKittens No, I pretty much stopped answering
Only answer when I get pinged about something, or when people asked.
Or when I see something really interesting.
Say, do you happen to have windows phone app development experience by any chance?
 
Nope. Nothing mobile, really.
 
@phenomnomnominal you perhaps?
 
Not actual apps nope
 
Thanks anyway
 
5:50 AM
Currently learning C. Never really interested in Mobile.
 
6:07 AM
how can i determine weather a variable is array or object?
 
*whether
 
Typeof
 
if you're not using frames, xxx instanceOf Array will do
 
!!c>a = []; console.log(typeof a);
 
@Gacnt Could not process input. Error: reserved word "var" on line 8
 
6:09 AM
@Gacnt typeOf an array iis Object
 
@Gacnt "undefined" Logged: "object"
 
@Gacnt yes don't you think i would have tried that? LOL
 
!!> typeOf []
 
@JanDvorak "SyntaxError: syntax error"
 
!!>typeOf([])
 
6:10 AM
`"undefined"` Logged: `"object"`
:9888870 `"ReferenceError: typeOf is not defined"`
 
!!>typeof []
 
@JanDvorak "object"
 
Lower case bro
 
!!>typeof [1, 2, 3]
ok
 
@Connor "object"
 
6:10 AM
Ah well that is silly
 
!!> [1,2,3] instanceof Array
 
@JanDvorak "SyntaxError: missing ; before statement"
@JanDvorak true
 
!!> Array.isArray([1,2,3])
 
!!> {1: 'true', 2: 'false'} instanceof Array
 
@Connor "SyntaxError: invalid label"
@JanDvorak true
 
6:12 AM
@Connor wat?
 
@Connor "SyntaxError: invalid label"
 
huh?
 
@Connor Usually, that's a bad idea, feature test in a dynamic language, don't type test
 
!!> {}+{}
 
Why would you like to know if it's an array?
 
6:12 AM
Connor if you're using jqueer you can do $.isArray(var);
 
@JanDvorak "NaN"
 
@BenjaminGruenbaum, thoughts on enums in JS?
 
@phenomnomnominal Do what google says
 
@BenjaminGruenbaum so if its object i can get the keys right?
 
@phenomnomnominal here, I was wondering about it too:
0
Q: Javascript ENUM pattern naming convention

Benjamin GruenbaumI am working on a javascript project which requires use of javascript "Enums" meaning Objects like: var WinnerEnum = { Player1: 1, Player2: 2, Draw: 0 }; This is working great for me, however, I have no idea what is the proper way (according to conventio...

 
6:13 AM
!!> Array.isArray({1:1, 2:2, length:3})
 
@JanDvorak false
 
!!> [].isArray([''])
 
@Connor I don't know what you're doing
 
@Gacnt "undefined"
 
@BenjaminGruenbaum to freeze or not to freeze?
 
6:13 AM
@Gacnt You mean Array.isArray([]) , it's static, otherwise there would be no point.
@phenomnomnominal Depends, I freeze but freeze is slow as hell.
 
@Gacnt "TypeError: [].isArray is not a function"
 
But once per enum per run is probably not that bad right?
 
What do you mean static
 
@phenomnomnominal I don't care that it's slow, not my problem unless I have a performance issue, then again, it really doesn't matter. If some one else changes your enum values they're retarded :P
 
!!>Array.isArray([])
 
6:15 AM
@Gacnt true
 
@phenomnomnominal It's ~50 times slower per access per member, but chances are your bottleneck isn't there anyway. Why would anyone even touch your even keys?
 
@BenjaminGruenbaum maybe they made a typo in a yoda condition?
 
They wouldn't which is why I'm thinking its superfluous
 
@phenomnomnominal I mean, if someone wants to mess with your code they can just unfreeze it anyway. I freeze them, but honestly that's probably a bad habbit :P
@JanDvorak LOL
 
@BenjaminGruenbaum if(Colors.RED = myObj.color)
 
6:17 AM
@JanDvorak Yeah, I know what a yoda condition is, I just thought that the idea is funny :P
I thought you were joking. would lint even let it slide?
 
Given jsLint doesn't know enums, I'd guess "yes"
 
I mean an assignment in an IF
(without a single binary operator returning a boolean)
 
oh. Probably not
 
(then again, JS binary operators don't return boolean anyway, they circuit)
;)
 
JS binary operators don't return boolean anyway, they circuit .. i am not getting..circuit?
 
6:23 AM
@web2students.com What do you think false || 5 returns?
@web2students.com Or 5 && "Hello World"
 
circuit is physics and boolean is computer both meet in this line
i think it return true
 
!!/google short-circuit (programming)
 
@web2students.com Try it in your console.
 
!!/google short circuit (movie)
 
cool, a youtube link
Great movie
 
tested in google chrome function f(){var v = (5 && "Hello World");
alert(v);
}
f();
output :
Hello World
undefine
both
 
undefined is the return value of f
conclusion?
 
alert(5 && "Hello World");
it alerts Hello world
but after this i see undefine printed in console
 
that's the alert return value
 
6:32 AM
instead of alert(v); do return v;
 
@web2students.com FORMAT YOUR CODE (control+k)
 
function f(){var v = (5 && "Hello World");
if(v){alert('define');}else{alert('not define');}
}
f();
define output
so i was right +1 to me :P
 
var v = (5 && "Hello World"); --- that's weird
 
@zerkms js is also wired..
 
it's not
 
6:38 AM
mine js is wired
 
What's wrong with it @zerkms?
 
and mini js is awesome , like bugs, mosquitoes, etc
 
@JanDvorak: if they are hardcoded, why not specify it as var v = "hello world"; instead?
 
@JasjeevSingh 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 that would change the value
 
6:39 AM
@JanDvorak ?
 
!!> (5 && "hello world")
 
@JanDvorak "hello world"
 
Corporate version:
 
concerning your edit: that would no longer demonstrate the short-circuit behavior
 
@BenjaminGruenbaum i also wanna access there
 
6:41 AM
!!> /** Provides an example */(function provideExample() { try { val RESULT_TO_EXAMINE = (5 && "hello world"); console.log(RESULT_TO_EXAMINE); } catch (e) {console.log(e);}})();
 
@SomeKittens "SyntaxError: missing ; before statement"
 
@CapricaSix QA'll catch it. Until then, it's their problem.
 
Can anything be improved on this it just seems to short to be true jsfiddle.net/ConnorM/wYXGQ
 
@web2students.com What?
 
funny joke room access
 
6:45 AM
@Connor how about just using CSS?
 
@phenomnomnominal just testing the for loop
 
no need to do Object.keys(this)[i] twice
 
Am i Insane or is this insane ?
0
A: CSS selector: first div within an id or class

designciseYou can use the following pseudo classes: :first-child :nth-child(1) Or you can select by ID: #elementID div[id="elementID"] The difference between the above two is in specificity; using "#elementID" would have a higher specificity (precedence) than using the attribute selector "div[id="e...

div[id="elementID"]
 
"first element with an ID ..." implies duplicate IDs, which are always WRONG!
 

« first day (967 days earlier)      last day (3987 days later) »