« first day (1286 days earlier)      last day (3655 days later) » 

m59
12:00 AM
All those upvotes and over 10,000 views. It's close-worthy, sure, but that's kind of a dis-service.
 
Microsoft fuck you man
 
about to fall asleep on keyboard...
 
@m59 There's a good argument for protecting, rather than deleting
 
m59
@SomeKittensUx2666 is it moral if I vote? :)
 
12:00 AM
@AbhishekHingnikar he's old... a bit of respect
:P
 
fuck no. especially to the js engineers they have hell fucking no
 
@m59 You should! Deleting it is a disservice to the community.
 
> WinJS.Navigation.navigate( '/pages/facebook/home.html' );
code ^
The app couldn’t resolve ms-appx://33345perceptioninfinity.snapick/pages/facebook/ because of this error: REDIRECT_TO_DIR.
^ Error -_-
 
This is why I went for 10k
 
lol
 
12:01 AM
it friken omitted the third param -_-
 
deleted content is the best
 
m59
well thanks!
 
@AbhishekHingnikar then I suggest we burn him alive and bury him under hater letters written in comic sans
 
nope comic sans is too good.
Monotype Cursiva.
 
is there even smth like that
looks like it
in that case we burn the letters aswell afterwards
once you'll have to tell us how to pronounce your name
 
12:15 AM
Mother of god
that was new missing
 
Why do I see people always use if(typeof(node) !== "undefined") when you can use if(node !== undefined)?
 
It's not the same
 
What's the difference?
 
How are they not the same though?
It's working in my tests
 
The latter throws if node is not declared
!!> typeof banananas
 
12:20 AM
@copy "undefined"
 
!!> banananas !== undefined
 
@copy "ReferenceError: banananas is not defined"
 
true
Thanks man
 
@SomeKittensUx2666 uhh....
 
BEEEEEEEEEEES
BEEEEEEEEEEEEEEEES
 
I'm having trouble detecting clicks on a canvas. I have to click to the left of the space I am testing for in order to get it to work.
 
BEEEEEEEEEEES
 
@SomeKittensUx2666 apparently the best people has done for cheeseman is this
 
12:45 AM
using this code: http://hastebin.com/opoyubucag.avrasm
mousecoords is in x, y and so is clickables[i]
 
Not sure if the problem is my code, but I've never had problem with jquery mousecoords before.
 
@theHeretic BEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEES
 
@theHeretic you'll have to give us everything related to this, not just some parts... and consider using fiddlejs
 
12:47 AM
I still don't really understand what fiddlejs really is.
odd, it thought that was xml. I don't even know xml.
 
If the doctype is (valid) XHTML, then it's valid XML
 
line 97 is where squares are drawn, 111 for the first hastebin I linked, and at the end for the second one.
I don't even use doctype, never had a reason to do it and I don't do things if I don't get reasons to.
 
@theHeretic It may be XML, but it looks like it's also HTML, and broken HTML at that.
 
@Kendall_Frey it is html. what is broken about it?
 
51 mins ago, by SomeKittens Ux2666
http://stackoverflow.com/q/18414012/1216976
 
12:52 AM
@theHeretic The first thing I notice is &nbsp&nbsp&nbsp
I think it should be    
I don't think multiple nbsps are any different than a single one though
 
html never game me problems with that, and I can read it fine. is it hard for most people to read?
 
I didn't know browsers accepted leaving out the semicolon
Since you bring up readability, I'll bring up the lack of a capitalization standard in the script.
 
chrome puts three spaces in fine. I didn't know html even used semicolens.
 
Purely aesthetic, but bothers me nonetheless
 
I dislike capitals, but can understand that bothering you.
 
12:55 AM
@theHeretic What do you have against Washington DC?
 
what?
I'm confused.
oh, i see.
 
Washington is the capital
Noob
 
"I dislike capitals"
 
Oh, now I see, was still confused last time I said that.
I was thinking the capital "DC"... blah.
 
@theHeretic surely theQuickBrownFoxJumpsOverTheLazyDog is more readable than thequickbrownfoxjumpsoverthelazydog
 
12:58 AM
well, I don't make variables that long. However, shall we stop arguing over personal syntax?
 
It's not personal
 
It's pretty personal
 
CamelCasing is pretty much a standard in JS and a large portion of other mainstream languages
For sake of readability, separate your words somehow. the_quick_brown_fox is better than nothing, but stick to the established standard for the language you're using.
 
facepalms as he sees that he used capital for one functions but not for another
 
It may not seem like a big deal, until you start working on a team with other people. If everyone codes in a different style, it gets very aggravating.
@theHeretic That's also an issue. Consistency is more important than style IMHO.
 
1:01 AM
update to my chat snippet script gist.github.com/rlemon/11198858
 
I just changed the collidecheck to collideCheck.
for consistency.
But basically, I don't know why it isn't working, because the individual parts seem to be working when I log out the values and check everything, but it doesn't work as a whole.
 
stackoverflow.com/questions/23257824/… <-- if you're looking for a challenge, this could be it ...
 
Object.defineProperty ?
Object.defineProperty(namespace, 'matrix', {
   get: function() { return matrixVar; }
});
 
function returnarray()
{
return [0, 1, 1];
}

How bad of an idea is this?
 
401
Q: What is the XY problem?

GnomeWhat is the XY problem? When asking questions, how do I recognize when I'm falling into it? How do I avoid it? Return to FAQ index

 
1:12 AM
was that directed at me?
 
yes and no, also maybe.
 
yes no, maybe, I don't know, can you repeat the question?
 
before we got into a syntax fight I was trying to make it so that clickCheck actually checks if a "clickable" is clicked instead of to the up and left of it.
(noteable lines are 97 and 111)
hastebin.com/upuzimojaq.xml
and as a solution for Sean Vieiras link, how bad of an idea is something along the lines of:
function unchangableArray()
{
return [1, 2, 3, 4];
}
(wondered how bad of an idea it was.)
 
!!tell theHeretic format
:)
 
@theHeretic Format your code - hit Ctrl+K before sending and see the faq
 
1:17 AM
i'm afraid that doesn't exist. it should be easy enough to create everytime. — Daniel A. White 30 mins ago
@DanielA.White Easy, but not performant. Updating the title. — a paid nerd 29 mins ago
It's been suggested
 
function unchangableArray()
{
return [1, 2, 3, 4];
}

//Like that?
 
uh, nope
 
it failed... when I saw it there were spaces before the return.
function unchangableArray()
{
return [1, 2, 3, 4];
}
 
Oops sorry, you need to press Ctrl+A first
Yeah
 
nope, that kinda worked, but tabbing in this is impossible.
 
1:19 AM
monospace font, but still no indenting
 
@theHeretic presumably the array is used alot and large
 
function unchangableArray()
{
    return [1, 2, 3, 4];
}
 
:)
 
Now to fix the typos
 
:D
 
1:20 AM
but will it no exist handtyped at some point in the code anyway? is return limited to just one line, or is that method really slow?
Also, what typos? did I mispell unchangeable? (yes I did.)
 
so did you all check out gist.github.com/rlemon/11198858 or what?
 
remove un from it :P </sarcasm>
 
1:34 AM
@Martin-Brennan 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.
@akosel 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.
 
@rlemon Nice work!
@rlemon where can I import snippets from?
 
idk
email them to yourself.
{"bro":"BROOOOOOOOOO!!!!","o_o":"ಠ_ಠ","bs":"http://i.imgur.com/ewK3ill.gif#.png","balls":"ಠ_ಠ\r\n<|>\r\n/ω\\"}
those are mine
 
Imported, now how do I get them to work?
balls
 
refresh the page
 
I did
 
1:41 AM
then type balls and hit tab
 
ಠ_ಠ
<|>
/ω\
Genius.
I hereby dub @rlemon lord and master of making silly/cool shit.
3
 
useful*
 
".gif#.png" lmaowut
 
Array.prototype.__proto__ = null
Object.prototype.__proto__ = Array.prototype
that is how you brake javascript
 
!!s/brake/break/
 
1:54 AM
@monners that is how you break javascript (source)
 
1
Q: Does my Promise implementation agree with specifications?

Mattia Manzo ManzatiI am trying to create a Typescript promise implementation (actually a polyfill) that agrees with current specifications (I used these http://promises-aplus.github.io/promises-spec/ ). It should be done, code is here https://gist.github.com/ilmattodel93/dbefa9eb86715f76e10e , but I can't underst...

 
I named my pet @rlemon
 
is caprica Six just a bot some people in this chat room made sometime?
 
@theHeretic Yes, and soooo much more.
 
is it "just" a bot?
(meaning a really complicated bot.)
 
2:09 AM
She's a bot. Yes.
 
@BadgerGirl <3
 
...so no one sees problems with my logic or anything?
 
wow: just finished watching tremors 1
@theHeretic github.com/Zirak/SO-ChatBot don't worry: it's completely coded (by the only and awesome Zirak), nothing else
 
so many .js's.
I didn't know you could make javascript chatbots.
 
!!s/rlemon/Zirak/
 
2:20 AM
@rlemon @theHeretic github.com/Zirak/SO-ChatBot don't worry: it's completely coded (by the only and awesome Zirak), nothing else (source)
 
!!afk bed bug @BenjaminGruenbaum
 
I've only tried python before, but I could never get anything to work.
 
@rlemon right... sorry... I've found it on your contributions and didn't notice they were... contributions
@theHeretic and you want to be a pro javascripter?
brb (10 seconds)
 
what do you mean by pro javascripter? good at it? if so, why would I be using javascript?
 
to me it looks like you're in a js room
just saying
 
2:25 AM
oh, python... I use that for anything that browsers crash on, really large loops, whatnot. mostly I run stuff overnight on it.
and chatbots, I didn't know that javascript could do chatbots.
 
@stubaker 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.
 
@theHeretic even le brainfuck can do chatbots theorically
 
but I am here right now because I was asking for help on a javascript small, one-page script I was working on.
 
@theHeretic did you get your help?
 
nope.
I just got into an argument about capitalization.
 
2:28 AM
@theHeretic ok, what's your prob?
 
copy/pasted:
before we got into a syntax fight I was trying to make it so that clickCheck actually checks if a "clickable" is clicked instead of to the up and left of it.
(noteable lines are 97 and 111)
hastebin.com/upuzimojaq.xml
 
oh, I remember you now
could you put it in jsfiddle plz?
 
@boxme 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 or you
 
@copy You are my Favourite
 
2:33 AM
the javascript doesn't work, but here: jsfiddle.net/c5J7t
 
@theHeretic doesn't work at all
 
I know, I don't know how to link javascript in jsfiddle.
 
it's already linked
 
that is really weird, it works fine outside of that...
 
let's just talk about the logics then
you have a canvas
what's supposed to be in it?
 
2:37 AM
that is where the squares are drawn and the mouse coordinates are gotten from.
 
ok, are you sure you're getting your mouse co-ords relative to the canvas, not page?
that's usually the mistake
 
document.getElementById("can")
 
that's the canvas
 
passing that instead of document makes it get the relative to canvas, right?
 
@rlemon you there?
 
2:39 AM
nope
 
@OneKitten rlemon is afk: bed bug @BenjaminGruenbaum
 
is it something other than e.pageX then?
 
@theHeretic nope
@theHeretic e.clientX
or smth like that
 
line 137 of the javascript jsfiddle.
 
and then you ahve to do it relative to the canvas
so remove certain values from it, depending on position of canvas on the page
 
2:40 AM
nay, clientX does exactly the same.
i'm fairly certain that jquery does it all for you, right?
 
I'm fairly certain that I have no idea
if I have an idea plz let me know
but I don't use jquery for that
and I don't think it does
 
CORNDOG! Yumz. Just ate two.
 
$(document.getElementById("can")).mousemove(function(e)
{
	globals.mousecoords[0]=e.pageX;
	globals.mousecoords[1]=e.pageY;
});
 
@theHeretic seen it
 
10
Q: onMouseMove get mouse position

Andrew ChangIn javascript, within the javascript event hander for onMouseMove how do I get the mouse position in x, y corrdinates relative to the top of the page?

 
2:43 AM
@bjb568 his prob is relative to canvas, not top of the page
good tutorial, check it out
 
Oh, actually I wrote something like that a month ago...
 
@bjb568 wrote one yesterday :P
 
    addEventListener('mousemove',function(e) {
		var cRect = canvas.getBoundingClientRect();
		mouseX = e.clientX - Math.round(cRect.left);
		mouseY = e.clientY - Math.round(cRect.top);
		mouseX = mouseX.bound(0,width);
		mouseY = mouseY.bound(0,height);
	},false);
 
but... why does it work in my other files like that if it doesn't work here?
 
@bjb568 yep
:16031985 hey! it's been a while
 
2:46 AM
HAas it?
Arg, paws aren't working today
 
@monners YEes it has
 
Ho ho ho
 
@IvoryCirrus 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. i'm reading it
 
@IvoryCirrus and we'd eat you alive you'd not
 
2:53 AM
@t1wc I like my human medium-well, thankyouverymuch.
 
@bjb568 that's very good to know
 
@SomeKittensUx2666 LinkedIn says I should congratulate you on the new job
So... congrats?
 
yay
I'm not an adjunct anymore. Nothing official, just got around to changing it
 
So you want flexbox, but don't want flexbox? Wat? — bjb568 28 secs ago
 
Anyone here ever used Aptana Studio 3?
 
3:24 AM
Never liked Aptana
 
Well, do you know if it supports some sort of offline version control for all the changes I make to code files and if so, then how do I configure it?
 
no idea what that is, but is there a reason you can't use git
 
Since I am interning for a company working on an independent project, I don't really want to put the code files (which are company property) on some other company's servers.
 
Wha?
 
Some people have told me that it is possible to use git for local repositories only and keep everything only on your computer, but I never understood how to do that.
@bjb568 Wha?
 
3:28 AM
Download the github app and now you have a simple GUI to use…
 
but it's connected to github.com
 
It doesn't have to be.
 
git itself has a GUI too
but I don't see why you can't use the commands
 
@bjb568 Basically I want to keep all the code files to myself, not on someone else's server.
 
@DemCodeLines git?
 
3:30 AM
and using git locally is just not pushing to a remote repository
 
git is distributed version control, which means that each instance has everything needed
 
ಠ_ಠ
<|>
/ω\
2
Just cos
Have you guys tried out @rlemon's new userscript?
 
Github will not spy on you. Remember, github != NSA.
 
balls
hmm
 
@laketuna 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.
 
3:32 AM
Ya gotta hit tab once you've typed in the keyword
 
I thought I did
 
Have you installed the userscript?
 
I ran it in the console
 
Well that didn't work
 
Why the heck do I need to put my email for the github for windows client to work?
 
3:34 AM
do I add it as a plugin to chrome
 
We're going to watch Glee now @BadgerGirl
I love Glee
I didn't write that
But I did!
Leave me alone :-(
 
Yeah right.
 
is it possible to create a socket between localhost and web host using node.js?
using socket.io
 
Sounds possible.
 
@samitha 6/10 possible
 
3:44 AM
@copy what that mean ?
 
6 out of 10 possible
 
do you have an idea where to start it?
 
Post a question on StackOverflow
 
var possible = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
var hints = {
  '1': [0, 1, 2, 3, 4, 5],
  '2': [0, 1, 2, 3, 4, 5],
  '3': [0, 1, 2, 3, 4, 5],
  '4': [0, 1, 2, 3, 4, 5],
  '5': [0, 1, 2, 3, 4, 5],
  '6': [0, 1, 2, 3, 4, 5],
  '7': [0, 1, 2, 3, 4, 5],
  '8': [0, 1, 2, 3, 4, 5],
  '9': [0, 1, 2, 3, 4, 5],
  '0': [0, 1, 2, 3, 4, 5]
};
var solution = [0, 0, 0, 0, 0, 0];
var tryCode = function () {
  var numberIndex = 0;
  var guess = solution.map(function (value, index) {
    var tryNumber = null;
    var position;
 
:O
 
3:51 AM
Woot. Yay for solving Infamous PaperTrail problems in JS.
 
4:01 AM
@ThorSummoner 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.
@enix0907 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.
 
1
A: !important in css isn't working

franki3xeModify your html to this <tr class="grayRow" > ... </tr> <tr > ... </tr> and then just set your style in css file like this tr{ background-color: #fff; } tr.grayRow{ background-color: #ddd; } It shout be worked. If you will change style from your css file NEVER use !important; ...

 
4:18 AM
...why?
 
Because it's a good answer… ?
 
no, this is what i first tried it didnt — user74670 12 mins ago
 
@JavierdelaRosa 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:39 AM
@Lucio Oh, I guess OP has no clue what he's doing.
0
Q: How to include (embed in webpage) content of files in a directory

lawlistI'm looking for a way to avoid manually revising a webpage to include links to files in a directory, in order to have the contents of those files displayed as code-snippets using Syntaxhighlighter. Short of using a file-manager script (e.g., *.cgi or *.php), is there an easy way (perhaps with ja...

 
5:04 AM
@bjb568 you are guessing right :D
 
5:21 AM
@Lucio "But it no work" (response to all answers). Don't really have to be a good guesser…
 
bonjour
 
5:58 AM
jQuery:
        The ultimate bottleneck.
        Flawed beyond belief.
        The only thing you have to fear.
        Somewhere between chaos and insanity.
        On autopilot to oblivion.
        The joke that kills.
        A disgrace you can be proud of.
        A mistake carried out to perfection.
        Belongs more to the problem set than the solution set.
        To err is jQuery.
        Ignorance is our most important resource.
        Complex nonsolutions to simple nonproblems.
        Built to fall apart.
 
no rhyme...
 
Question for people having more culture than me : what package management is comparable to npm or the one of go in the world of software development ?
 
6:15 AM
wubba lubba dub dubs, bitches
I mean, good morning.
 
@simmant 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.
 
@CapricaSix thanks buddy,,
 
Ron
Hi, is anyone using two.js? is there a way to check if circle overlap any element within group?
 
@simmant remember to read those, or we'll eat you alive
 
@MustaphaElmalah 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:29 AM
@t1wc i read all the rule carefully ..
 
@simmant you better have
:P
 
:p
 
@t1wc There are people that actually read that stuff? I thought it was just something like a software disclaimer when installing stuff. You know it's there, but you just click "I accept" instead
 
@Kippie not really, but it's fun to tell that new comers
 
lolzzz@Kippie
 
7:03 AM
Hi guys
@simmant how are you
 
good day y'all - everyone ready for another day at the grind stone?
 
@DrogoNevets I'm at home several drinks in. No grinding for me :D
 
lucky sod
guessing/hoping its not 08.00 there
 
@monners How's Flatland going?
 
5
@SomeGuy Good, almost through with it
 
7:06 AM
Nice
I started reading Infinite Jest
Have you read it?
 
Nope
There are definitely parts of Flatland that are a little hard to fathom
 
Yeah, I read Flatland quite slowly
It's not a very fun read at times either
 
@ShankarParshimoni fine man you say..
 
Reading isn't supposed to be fun
 
But yeah, the commentary's quite interesting. Fun parallels, and I love the writing style
 
7:13 AM
@Arjan 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.
 
When you guys speak about Flatland, is it about the one of Abbott Abbott or is there a new one ?
 
We're talking about -insert random person's mother's name-'s chest
 
^^
 
@Kippie soo you don't like to read this chat ? eh
 
@DrogoNevets what is grind stone? I know what it is but what do you want to say? also, good morning drogo
 
7:34 AM
@SteamFire british saying meaning, back to the hard graft of work
 
it's what I suspected...
okay, I learned a foreign expression
 
clap
yay!
i wish there was a "/me" command
 
maybe !!me
or create one
 
The bot can't modify your messages
 
It would be a little redundant to see:
Neil: !!me jumps over the lazy dog.
Caprica: @Neil jumps over the lazy dog.
Though you're right, in a lot of chatrooms you see a /me command
 
7:42 AM
even miaou
but I wouldn't say it's very useful...
 
I used to play MUDs a lot, and you couldn't survive without a /me command
 
I like it, it's another way of expression
 
But I suppose that's something else entirely
 
it just nice and fun sometimes to say
/me goes and hangs head in shame
 
You are bad and you should feel bad.
 
7:55 AM
eh, don't forget that if males are talking about the size of boobs, that females are talking about the size of dicks
 
@KarelG where the hell did that come from?!
 
a delayed comment
 

« first day (1286 days earlier)      last day (3655 days later) »