« first day (754 days earlier)      last day (4195 days later) » 

7:00 PM
my number wins
it is also a sexy number
room topic changed to JavaScript: If you have a question, just ask it. No need for pinging or asking if you can ask. Best regards, Horse Lime. #wtfjs [] == []; // false [5318008] [git] [javascript] [why-is-git-here]
 
What's the point of ASI? Do I have to use it?
 
There's no point. And no don't use it.
 
why is [] == [] false ?
nvm
 
Because they are separate instances.
 
pointers ?
 
7:02 PM
Sorta.
 
got it like 1 second after asking (x_x)
 
> I wish I had made newlines more significant in JS back in those ten days in May, 1995. Then instead of ASI, we would be cursing the need to use infix operators at the ends of continued lines, or perhaps \ or brute-force parentheses, to force continuation onto a successive line. -- Brendan Eich
@KendallFrey No pointers in the language. Just different objects. Although... yes... there are pointers in JS.
e = arguments[0];
e = 'foo';
arguments[0]; // 'foo'
a real WTF when you first encounter it
 
WTF?
 
but strict mode gets rid of that behavior
 
That can't be legal.
 
7:07 PM
basically assigning arguments[someIndex] to a variable transforms that thing into a setter
 
What? How?
Ah
 
Black evil magic.
 
@IvoWetzel This is exclusive to the event object?
 
datatype vs content type
can anyone explain difference b/w two
 
!!/google "datatype vs contenttype"
 
7:12 PM
@SomeKittens
 
2
Q: What is contentType and dataType and data in jQuery ajax Post?

Kartik PatelI have just started to Learn the Json and binding data to Gridview using Json but I am not able to understand what is the contentType and dataType and data ? I used the Following code............ <script type="text/javascript"> $(document).ready(function () { $.ajax({ type: "P...

 
@AmaanCheval: very useful thx
 
I think we should make a UserScript that adds a button next to send here, that lets you search for what you've typed directly
That's literally what I did to find that question
 
6
Q: Stack Search Chrome Extension

rlemon Stack Search A Google Chrome Context Menu Extension Screenshot About This is a simple context menu extension that adds an option for selected text on a page to be searched on your favourite Stack Exchange sites. The extension has two main components, the context menu list and the '...

even easier
I already made it
 
I knew you'd made something like that
 
7:18 PM
whats the best way to use jslint?
 
with jsbrush
^ related
I Just paste it into the site
sweet just got my playcraft invite
FINALLY
 
You were waiting for it?
Loktar had one
(Which I took :p)
gist: Google button on SO chat, 2012-11-08 19:20:45Z
var button = document.createElement('button');
button.className = 'button';
button.appendChild(document.createTextNode('Google'));
button.addEventListener('click', function (){
    window.open('https://www.google.com/search?q=' + document.getElementById('input').value);
}, false);
document.getElementById('sayit-button').insertAdjacentElement('afterend', button);
Shoulda made it specific to chat on SE networks
Eh
Off to bed
Bye!
 
i noticed one of our vendors runs it in their debug mode and it marks up all their js code with jslint... something more along the lines of this approach.
 
Playcraft bad mixing with their less causes chrome to see ugly hover effects
also the UI is nasty
@sonjz RTFD
it's all on their website
@Zirak, you need to listen for "Can I ask a question" / "Can I ask something" / "I have a question, Can I ask" / etc... and have some pre-programmed witty response
take the pressure off me
 
in var exec = require("child_process").exec; I'm getting the node module child_process which has a function (exec). I'm assigning that function to the var exec, correct?
 
user1596138
7:27 PM
Alright... So I can't get this function to work. I don't want an answer to the problem... But if someone could drop a hint that'd be great maybe? jsfiddle.net/7fdph/18
 
@rlemon not exactly, jslint.com isn't very good. found the info on douglascrockford git.
 
I found it helpful enough
@JosiahSouth in the fiddle or outside
in the fiddle the #1 mistake is the include options
 
@AmaanCheval: as of understand contentType:json means server response must be in valid json.
 
read my comments, i understand how it works, i wanted to understand if there were best practises for running against your code.
 
But i still don't understand dataType part
contentType:json
 
user1596138
7:31 PM
In the fiddle. I can get it to work with a document.write statement. But I need to format an input field with it.
 
user1596138
What include options...?
 
dataType: html
is this makes sense
 
@gowri I've never used jQuery and don't really know what you're talking about. I only linked you to the first question I found on google
 
ah fine'
 
user1596138
@AmaanCheval You need to start. I prefer good ole regular JS but JQuery is ridiculously useful.
 
user1596138
7:33 PM
@rlemon What include options do you mean?
 
@Josiah Hmm, thanks.
 
user1596138
@AmaanCheval Now I'm confused.
 
@Josiah On the left drop down, change onload to no wrap (body)
 
lol on the side
look here
screw you - i fixed it for you - ignore my code if you don't wanna see it :P
> I don't want an answer to the problem... But if someone could drop a hint that'd be great maybe?
^ sorry, I answered it :P
 
Does anyone know of a website where I can find software that has no open source alternative? I'll be getting surgery soon so i'll have some free time on my hand.
 
user1596138
7:36 PM
Well fuck... I tried using it on my page as Ican't find any errors. I included it externally from within the `<body> but it still didn't work? So at least now it works in the fiddle haha.
 
I was confused for a bit
 
@JosiahSouth basically the include options on the side if you put them to onload it scopes everything - so the function is not visible from outside the scope of the onload function so the DOM does not see it
 
user1596138
@rlemon Eh, I would've never thought of that. So thanks haha. Why can't I make it work on an actual page now though..?
 
so you wanna ensure nowrap (meaning not wrapped in a closure) and body (meaning not included in the <head> tags)
no clue, other conflicting code? idk
 
@hanleyhansen You may just want to fix some bugs. This one's been around for a while
 
7:38 PM
@Josiah any errors on the actual page?
If you get an "unexpected identifier" it's a zero width character that's missing your code up
 
ILLEGAL CHARACTER
also appears 90% of the time
 
Yeah
Okay, I'm off
Bye!
 
paste.ubuntu.com/1343390 ILLEGAL character free
 
user1596138
For simplicity here's a paste. Completely stripped page. Shouldn't think work?! pastebin.com/qDTGE4VM
 
What we are saying is JS fiddle adds hidden characters to your code for formatting purposes
it strips them on render, but you are copying them over to your site
 
user1596138
7:40 PM
I do get an invalid character error on the actual page testing in safari.
 
if you load the code in notepad++ you'll see some ? floating around
 
user1596138
Ah! Make's sense. I'll paste in TextEdit and then make plain text. This happens all too often with Taco html.
 
alternatively paste the code in codepen.io and the hidden chars appear as small dots
here
 
@SomeKittens hmmm not a bad idea. do you know of a more generic site? That one is just Ubuntu specific right?
 
7:41 PM
@hanleyhansen Not that I know of, most OS projects have their own bug tracking
 
user1596138
SyntaxError: Invalid character '\u8364'......
 
launchpad is for ubuntu
@JosiahSouth that is the one
 
user1596138
How do I kill it? Haha. If it's a no width character I can't even select it to delete it...
 
yes you can you just need an editor that sees it
notepad++
VIM
 
@SomeKittens that's it! maybe i should make a website where people just post their bugs no matter what the project and developers can use my site to find stuff to do lol
 
7:43 PM
Sublime Text 2
 
Haha, excellent choice
 
user1596138
I have a MAC here at work. So no notepad++ for me :(
 
is safe code
@JosiahSouth VIM
 
user1596138
Thanks man.
 
see where I wrote <-- HERE
ugh, gvim
I hate windows
 
user1596138
7:45 PM
FOUND THE LITTLE BITCH! ​
 
@rlemon i ran into this issue yesterday
 
user1596138
​< 200b >
 
completely screwed me
 
@JosiahSouth yes in unix based systems it will appear as that
anyways, now you know :P
 
user1596138
But VIM won't let me delete it lol.
 
7:46 PM
press i
then put the cursor there
 
delete it
then CTRL + C, wq (this saves and closes the file)
 
user1596138
Aight cool lol. I've never used VIM.
 
@rlemon find me something to do while i'm on surgery
 
recover
 
7:48 PM
besides that
 
user1596138
SUCCESS! Lol. A pot and a half of coffee and now sweet victory... I'm pumped.
 
lol
I accept donations in the form of cash, cheque, and bits of string (I have a collection going)
 
user1596138
Haha
 
this site is awesome. now i just need to pick a project. the compare feature is pretty cool!!
 
7:54 PM
149
Q: Can I use jQuery with node.js?

JohnIs it possible to use jQuery selectors/dom manipulation server-side using node.js?

WHY
 
Hi guys,
Is there a way to detect the onmoved event for the window that are launched by chrome extension?
shows that there are onCreated, onRemoved
 
@tereško meanwhile non programmers are creating those without even touching any code because those can be made with drag&drop builders or whatever :P
it's like saying wow I can just drag n drop datepicker, why need any programming ever
 
@Esailija sadly , that is how middle-management thinks
 
user1596138
8:09 PM
@tereško Such bullshit....
 
If addition is so easy, why learn subtraction? 2 - 2 === 2 + -2
 
8:23 PM
@tereško and an industry of "designers"
@SrikanthRayabhagi put a timer and read the .left .top properties for changes?
 
@Sri
 
user1596138
The other day a friend was talking about how he "builds" websites, as do I. We started talking about PHP and I could tell he was just completely lost. So I asked to see one of his sites...... Sure enough, SQUARESPACE! Doesn't know one line of code, he couldn't even type out an anchor link. I just chuckled and went back to eating my food.
 
@SrikanthRayabhagi m isn't anywhere NEAR enter!
 
@rlemon haha, that really hacky way, but good to now!
 
8:25 PM
s/now/know/
 
user1596138
@SomeKittens Umm.....?
 
oops!
@SomeKittens ofcourse not, thought enter would autocomplete
 
Enter sends
Tab autocompletes
 
and Node.js is freakin' awesome
 
I AM FREAKING AWESOME!
 
8:36 PM
Need giant chunk of text for testing? Steve Yegge to the rescue!
 
stop
 
HAMMERTIME!
HAMMERTIME!
why did it pick up stop twice I wonder
and last but not least chrisvalleskey.com/fillerama
@SomeKittens take your pick
@tereško wow really flag because I'm posting something useful for a user?
 
holy hell flag central
wtf
 
wth is up with the site lately.
 
8:50 PM
More like, what's down with it.
And the answer is one word: Sandy
 
The Oregon data center sucks
 
Another record breaking day on my blog. Thanks guys!
 
Are they running from Oregon?
 
@SomeKittens link?
they migrated right before sandy
 
comments welcome
 
8:54 PM
they should update the blog with some info on the down times
 
good to know
 
Bacon apple whiskey tartlets? WANT
 
one comment
get an official domain name :P
 
@Loktar I'd like to, but I don't know where to start and I already have a ton of other things going on
 
8:59 PM
Wow... love that flag bubble...
 
am I understanding this correctly?
1
Q: coordinates mouse canvas

user1786016So ... I created canvas element with jquery: var canvasElement = $("<canvas id='map' width='" + CANVAS_WIDTH + "' height='" + CANVAS_HEIGHT + "'></canvas"); var canvas = canvasElement.get(0).getContext("2d"); canvasElement.appendTo('body'); And now i want to get mouse coordinates, but...

^ he wants the coords within the canvas where clicked right?
I downvoted the other answer.. but he accused me of being unsportsman like.. so I removed the downvote
hate stupid questions where the meaning isn't obvious
 
posted on November 08, 2012 by Victor Rodriguez

Pac-Man & Ghost R/C Set from ThinkGeek Can we Predict Everything?

 
9:15 PM
anyone know c++...??
 
5
A: Create an array that stores all the numbers from 1 to 100 in increasing order in Javascript

LoktarI got you covered. var arr=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,9...

LOL
pobably my funniest answer ever.
:( someone deleted it
lame
anyway to check how or why it was deleted?
 

Lounge<C++>

Today we're daydreaming about C++26 reflection
@Loktar "deleted by Kevin Montrose ♦ 1 min ago"
Probably because it's a stupid question.
 
yeah but I had like 8 upvotes on it :P
I guess I need 10k to view that kind of info
 
The question was deleted, not an answer.
And yes, you need 10K.
 
yeah I lost all the rep though, no biggie
 
9:24 PM
80 rep is a biggie
but yea remember that SO hates fun
=D
 
yeah but it was a pretty lame answer to a really stupid question
Ive only seen @Zirak really get away with it
 
The moral of the story is: Don't answer stupid questions.
 
See, here i was thinking there are no stupid questions, only stupid answers. I guess this is the exception that proves the rule. It was a pretty mindbendingly shit question though.
 
stackoverflow violates no stupid questions rule pretty hard
 
i never got why there isn't an automatic google when you try to ask a question
just like, go to first result, does this answer your question?
 
9:29 PM
@Esailija Because SO is where rep whores and n00bs meet.
 
and also where the deer and the antelope play
 
@FlorianMargaine im not quite sure what you were referring to when you said "testing if 2 function calls is faster than 0" part, im guessing something wrong with my test... either way you are right. that was not my bottleneck after all.
 
Why are you guys filling the flag queue with with innocuous posts?
 
1
Q: Banned from chat for apparently inappropriate content?

rlemonBasically here is the scenario: In the JS chat room user A is talking about dummy text (keep in mind the room was pretty stagnant at the time) so I posted links to 7/8 lipsum services (not the text within, just the links) and user B says stop after the first 5/6, so I finish with my links and mov...

Gentlemen (and ladies?), this ^^^ is for you.
 
user1125394
ahh too bad
 
user1125394
9:46 PM
btw
 
user1125394
try listening this video entirely without becoming mad
 
user1125394
 
@YannisRizos Ah teresko had some fun flagging rlemon again I suppose?
 
@Loktar hrm?
@rlemon heh, sure
 
Hello, is there a way in jQuery to query from within a search result?
 
9:52 PM
Also, Enlightenment is weird. Just finished installing Arch and setting a WM up.
 
I assume you mean this: api.jquery.com/find
 
Thanks
 
@Greg In lieu of @rlemon, may I say that JQUERY IS INSANE AND THE PEOPLE THAT USE IT ARE TOO!!!
2
 
jQuery is what the system I'm working on uses.
 
find will work nicely.
 
@Greg Since @rlemon is over sitting in the corner, someone had to say it.
 
@KendallFrey I wish browser supported WPF, but i use jQuery and HTML5 and a billion half baked JS libraries instead.
 
R.I.P @rlemon you shall be missed.
 
@phenomnomnominal hehe
 
10:10 PM
0
Q: Check a list of passwords strength

MikoIs there any way to check a list of passwords whether they strong or not? I have a list of passwords, around 2000, and want to check them against this policy Password must contain a minimum of eight (8) characters Password must contain at least one letter Password must contain at least one n...

 
@ktrauberman Message for JS room: "You think you've gotten rid of me? See you in 22 minutes suckers!"
!!/norris
@KyleTrauberman Chuck Norris has to register every part of his body as a separate lethal weapon. His spleen is considered a concealed weapon in over 50 states.
woo it works!
 
10:42 PM
I need help troubleshooting some CSS:
http://www.appbinge.com/test.php

At the bottom of the page there are page numbers. Why is the link only clickable at the top portion? When it is hovered over, the border should also be a darker color.
 
Is using a font to promote a Make-A-Wish Silent Auction considered commercial use?
 
10:56 PM
o/
(better watch out someone might flag my high five as spam)
 

« first day (754 days earlier)      last day (4195 days later) »