« first day (925 days earlier)      last day (4023 days later) » 

user1125394
12:00 AM
I was going to install IIS, but this site changed my mind
 
Because of an image of a mildly attractive prepubescent girl showing a bit of cleavage?
 
user1125394
nah hehe (she'd be at least 25)
 
@Zirak What can I say? You got me.
 
user1125394
hmm apachefriends.org/images/1.jpg well I'm nt going to see all their dam images
 
That chair looks uncomfortable. I bet it was an Apache project ...
 
user1125394
12:07 AM
xampp's CEO
 
Spaces are better than tabs
 
Y ITUNES NO STREAM 3D
 
function Blah() {
}

Blah.prototype = {
constructor: Blah,
new: function(asd) { this.asd = asd; },
thing: function() { this.blah = this.asd; }
}
Why does setting this.blah not work?
Trying to make a little framework for my canvas
 
12:50 AM
@XCritics are you sure it doesn't work? It should as I see it
 
I fixed it after, it was a problem with the way I was calling it
function CtxCanvas(width, height) {
	this.width  = width;
	this.height = height;
}

CtxCanvas.prototype = {
	create: function() {
		var df = document.createDocumentFragment()
		  , canvasElement = document.createElement('canvas');
		canvasElement.width = this.width
		canvasElement.height = this.height;
		df.appendChild(canvasElement);
		document.getElementsByTagName('body')[0].appendChild(df);

		return canvasElement.getContext('2d');
	},

}

var ctx = new CtxCanvas(1000, 1000).create();
Works now
 
1:15 AM
@zirak what interesting thing might you be working on
 
 
1 hour later…
2:15 AM
 
If you want to go somewhere, goto is the best way to get there. [ken]
 
@rlemon quick question, how can you refer to objects in an array style, I know the order, but can't just do player[0]
 
2:31 AM
@XCritics player['thing']?
 
But I can't juse use numbers for brevity?
like if the object name is long
 
oh ok, that's what I was wondering
 
it's stored at index 'thing' not index 42
 
Gotcha
I just wanted to refer to it with numbers, to save typing :P
for cases like object.thisisareallylongnametorefertobutiscompletelynecessary object[0]
 
2:36 AM
If you have to refer to it a lot, you can cache the value
var _x = object.thisisareallylongnametorefertobutiscompletelynecessary
 
If we’d asked the customers what they wanted, they would have said “faster horses” — Henry Ford
 
Angular vs. Knockout vs. Ember vs. Backbone?
within an ASP.Net MVC app
 
2:53 AM
LIBRARY ALL THE THINGS
Step one: Don't use ASP.Net
 
@SomeKittens gist.github.com/Gacnt/958790fe61760f60bffe any idea why my unRegister is not working? nvm I think I know
 
And use what? PHP? no way.
 
@RyanJMcGowan Node.JS
 
I already have all my business classes and repositories set up.
Working on the UI now.
 
@XCritics You figure it out?
 
2:58 AM
Sec, I think so
yeah fixed it
 
@RyanJMcGowan what kind of web app are you working on?
 
Student information system.
multiple districts
 
nice
if I was you I would do this in dotnetnuke
 
Is that a client side api?
 
no
it's a CMS for asp.net
like drupal or joomla
 
3:03 AM
I'm looking for a good JS framework like Angular. Not sure which to use.
 
@SomeKittens works but, gist.github.com/Gacnt/958790fe61760f60bffe I'm trying to make it so I can just put it in an if, so that I can do certain things for each individual key press, (for my game, e.g. var left = new Keyboard(); left.register(); if (left) {console.log('walk left') }
 
There's way too many regulatory requirements to use a CMS
 
@XCritics That seems like a poor way to do it. Why don't you use event delegation?
 
Like if e. Which === 37?
 
@JaredNielsen 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:08 AM
@XCritics Yeah, something like that.
 
I'm not sure, I guess I could, I'm just trying to keep my game.js file as clean as possible
 
Why can't T-Rexs clap? Because they're dead
 
@SomeKittens what happened to plodder
 
?
I don't know him
 
He was in the chat a while ago, big fat bald head, bit fat forehead
 
3:17 AM
haha
 
dunno. Noobs scared him off?
 
is he real or just joking?
 
@TemporaryNickName He's real
 
hhahahaha
 
3:17 AM
haaha
 
seen Mar 31 at 13:39
Bet that guy could headbutt his way through a brick wall or two
 
@Adam 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.
 
@SomeKittens boiling-ravine-7274.herokuapp.com what I came up with earlier, glitchy as hell, but you get the idea :P re-writing it and using better models
 
haha, nice
 
how does the chatbot's mustache function work?
 
3:28 AM
it just calls a webpage with the url and returns the url
 
@XCritics A lot of people come for a few days then stop
 
Hey you're back! And I'm still having problems! :D
 
@Plodder looks like an observer.
 
3:36 AM
What are Preparation A through Preparation G?
 
3:55 AM
@SomeKittens any idea why my console.log in movePlayer isn't even showing?? Nothing looks wrong? gist.github.com/Gacnt/db0cf6b4a6c3860b9f63
 
@XCritics You're declaring it twice, which is a problem
 
oh my, i didn't even see that
let me see if that fixes it ,so clueless sometimes
 
doubt it.
Double check that the keydown code is being called in the first place
 
@SOChatBot that is sexy
ooooh
 
@SomeKittens that did fix it, the duplication, but now im getting cannot call method action of undefined, it worked fine earlier x.x
 
4:01 AM
@XCritics why u no save with appropriate extension instead of txt?
may help YOU to spot things easier if you dont do that
@XCritics ps. try gistboxapp.com
someone tell me, do gists not play well with embedded iframes and/ore canvases?
@BenjaminGruenbaum how do you mean
" 5 @phenomnomnominal (spelling?) When were you pushed out of a vagina? - 1d ago by Zirak " - and that's starworthy?
not to mention relevant here?
theres your answer
Vagina jokes from grown (?) men ... in a Javascript room shakes head
pfff
 
IF YOU FIND YOURSELF DUPLICATING CODE, BETTER RE-THINK WHAT YOU'RE DOING
 
m59
anyone see a problem with this?
$query = "DELETE FROM articles WHERE id IN($deleteArticles)";
 
Yeah, it's PHP :)
 
m59
I knew that was coming LOL
 
:D
 
4:14 AM
does anyone here go on the arquade?
 
If you had three quarters, four dimes and four pennies in your pocket you would have $1.19. You would also have the largest number (11) and combination of coins possible without being able to provide change for a dollar.
 
no one. no one goes on the arquade?
 
God everything looks so good in practice
animate: function(claymation) {
		console.log('Here');
		var i = 0;
		var queue = function runQueue(i) {
			setTimeout(function() {
				claymation[i].action();
				if ( i < claymation.length ) {
					runQueue(i + 1);
				}
			});
		}
		return queue;
	}
yet doesn't work, bonus points for argument name
@SomeKittens ok last thing I promise then I'm going to bed ;) gist.github.com/Gacnt/ec175378160e33ce1b4b any idea why the player.animate in the walk function gives me the error Uncaught TypeError: Cannot call method 'action' of undefined
 
5:12 AM
@SomeKittens fixed it :)
 
@Shmiddty Can we visit you?
 
@XCritics Not cool to delete questions after someone has put effort to answer it. stackoverflow.com/q/16259708/1331430
 
@FabrícioMatté That wasn't the fix, and I had fixed it a while before that, no hard feelings
It was something I did stupid on my end
 
well alright then
 
I had the i included, I just didn't have it on my copy by accident
I forgot to set a timer on the setInterval
 
5:18 AM
yeah I noticed that too :P
 
^^
 
my solution was not ideal at all but I got the first iteration to run.. though yeah
 
also I had a typo in another part of my code :/, just tired, should go to bed but want to finish what I'm doing
 
same here, developing my endless framework scoped for a single project lol
 
I'm just trying to get a simple animation to work, it works now, but the timeouts stack on each other while holding the button down, example: boiling-ravine-7274.herokuapp.com press left on your keyboard once to see how it should look, then hold left on your keyboard
 
5:24 AM
guess you can just clear/kill the previous timeout stack once you start a new one
I guess this will be a good enough automated content mover jsbin.com/ekugax/2/edit
terrible performance but at least it will be maintainable enough for this huge project
 
Used Condoms and java developers are the same useless and dirty
 
	animate: function(claymation) {
		clearTimeout(this.timeOut);
		var queue = function () {
			(function runQueue(i) {
			    var timeOut = setTimeout(function() {
					claymation[i].action();
					if ( i < claymation.length ) {
						runQueue(i + 1);
					}
				}, claymation[i].time);
			})(0);

		}
		return queue;
	}
timeout not resetting, any idea why
 
@BadgerGirl o/
 
if you make a fiddle with code that runs, it greatly speeds up the debugging
 
Don't ping her
 
5:33 AM
@XCritics what should be this in the context of animate?
 
whats up @JanDvorak
@copy :D ... i kinda had a feeling... ping her u will reply :D lol
whats up ?
 
mostly sure this doesn't refer to what you intend inside the queue function
try this:
 
@XCritics try this.animate = this.animate.bind(this) inside the constructor
 
well yeah I was going to suggest the old lexical scope trick but as you're already using ES5 the bind should work just fine
 
5:37 AM
@BadgerGirl can we call our kids Shmiddty?
4
 
@JanDvorak Still stacking like crazy
 
	animate: function(claymation) {
		clearTimeout(this.timeOut);
		var that = this; //store reference to instance
		var queue = function () {
			(function runQueue(i) {
			     that.timeOut = setTimeout(function() { //use that instead of this
					claymation[i].action();
					if ( i < claymation.length ) {
						runQueue(i + 1);
					}
				}, claymation[i].time);
			})(0);

		}
		return queue;
	}
 
^+1
 
@FabrícioMatté It's semi working now, he gets stuck mid animation, I think it's clearing too early?
 
uhh yeah, I guess you'll have to reset the animation sprite when clearing the timeout :P
 
5:42 AM
Is there a better way to do this than intervals?
 
probably
but I also tend to do stuff the hardest way to maintain possible
 
Can anyone help me with a Java question?
 
Go home bot, you're drunk
 
someone laughed at me and ran away
I have no idea what just happened
 
Welcome to man hood
 
5:49 AM
take a photo of yourself
and show us
so that we can laugh too
 
Damn this fuckin thing
I'm going to bed, I'll stress out about this tomorrow
 
is that a homework?
 
I have more commits, trying to fix an interval, than @copy does for his entire fucking IWBTC (Which by the way, how the hell did you make that feel so smooth)
 
@XCritics a fuck or two doesn't hurt, but you've already reached that limit. I suggest you to stop ;-)
 
Fuck fuck fuckedy fuck.
 
5:54 AM
Roger, bed time, thanks for the help! boiling-ravine-7274.herokuapp.com < The half way point (because it stops half way through, get it?)
 
damn cool script :D
 
2
Q: default selection option blank; implementing

BertI am planning on using this code: html: <select id="myDropdown"> <option>Option 1</option> <option>Option 2</option> <option>Option 3</option> </select> and the javascript: document.getElementById("myDropdown").selectedIndex = -1; but I don't know how...

@Qantas94Heavy 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:41 AM
@user1606011 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.
 
Computer suddenly slow, some programs take a minute to load (15 seconds for sublime text!), processor and RAM idle, what do?
I suspect HDD
Also, graphics card configuration may have been messed with
 
Start > resmon > disk activity
 
clicked start, it's still searching -_-
 
you need to type the full name (also see my edit)
 
Yeah, I know, it opened, I was just illustrating how slow it was
 
6:49 AM
Having difficulty implementing classes in Javascript. Especially nested event handlers. Anyone to help?
 
~ 12MBPs, also stuff runs in the background
@user1606011 don't implement classes in JavaScript, that's silly
@JanDvorak now dropped to 0/2MBps, still slow
 
@BenjaminGruenbaum Won't it become super unmanageable if your project size is even moderately big?
 
@BenjaminGruenbaum that never happened when I using my windows 7
 
@BenjaminGruenbaum try restarting the machine
 
@TemporaryNickName why are you telling me this?
@JanDvorak Seriously? I did that already
@user1606011 No, use modules, and use a lot of objects
Objects = good, classes = bad
JS is clever enough to let you do the first without the second
To illustrate, closing perfmon (clicking the X) took a whole second, maybe a bit more
Maybe it's just heat
 
6:53 AM
what's the temperature reading?
 
Don't know, I'm updating the bios, will boot into bios and check, I'll try disabling the second graphics card, I've had issues with mixing vendors before. Thanks for the help, I'll be back soon
 
@BenjaminGruenbaum Sure, thats what I am referring to. I am using objects to model OO, but landing in pickle if its comes to event handling. For example - I have defined few "class" variables which are instantiated in a 'Create' function. These variables are essentially KineticJS Shape objects and I need to handle events like mouseover and click etc on these shapes.
@BenjaminGruenbaum So I write event handlers in the context of function (which is how I am modelling objects) but I am getting errors while accessing class variables inside event handlers using 'this'
 
EventHandler should be either a base object, or a mixin
Objects that implement event handlers should inherit from it prototypically, or have the mixin applied to them
'this' isn't bound to the object in event handlers , there are easy ways to overcome this
You can either use function.bind to force this to be whatever you want, or you can have var that=this on top and use that instead
!!/mdn bind
 
@BenjaminGruenbaum but if I do it protypically that means it would make it singleton, right? I need to instantiate multiple instances of this object...for example if its a circle class and I need to have many circles then its an issue
@BenjaminGruenbaum Thanks. Going through your link
 
6:58 AM
function createCircle (centre, radius) {
    return { centre: centre, radius: radius}
}
Problem?
 
^
You want every circle element to have the same events?
You don't seem to really grasp prototypical inheritance, you have one prototypical circle and every other object that "extends it " doesn't extend it really, it just has access to its functionality
When you add events to the prototypical circle, it's always the same circle, it has no knowledge of who extends it prototypically
That would make no sense
 
@BenjaminGruenbaum Every circle will handle essentially the same events like click, mouseover etc but obviously will in their specific context (e.g., every circle has its own coordinates, color, blah). So event handlers are the same but obviously act upon the specific circle's data
 
Also, that would force bad code, even in bad classical oop langauges like Java
@user1606011 No, every circle handles different events because they have different context. Context is key, each event needs to have the object the event is related to in its closure
 
@BenjaminGruenbaum Sure, I meant every circle with handle same 'type' of events and not exactly 'same' events
@BenjaminGruenbaum Can you please point me to some examples?
 
Yo mamma's so fat, your father no longer finds her attractive so now they're getting divorced
 
7:09 AM
@user1606011 I'm sorry, I'm at work and have little time to explain this now :/
 
I'm having trouble with my code which is actually a css selector engine. Can anybody help me?
How do you insert the window, document or this objects inside an array?
 
@akash4eva [window, document, this]
and arr.push(obj) when you already have an array.. or be a little more specific
 
@FabrícioMatté I know but when I try to push the window object inside an array, it still stays empty. Can you please answer this question - stackoverflow.com/questions/16260452/… ?
 
kinda falling asleep but I'll take a look, might keep me awake a little longer
 
7:24 AM
@FabrícioMatté Don't worry! I fixed it! Be cool man! I am checking out my selector engine! Yay!
 
lol nice work :P
as the function assumes only strings, I guess you'd need to check if the argument is an string before using it in querySelectorAll/getElement(s)By(Id|ClassName) else push it directly
depends on how you implement it though, well nvm good work getting it working :P
 
The good thing in being a young programmer is that you can blame others for the bugs
 
7:48 AM
Hey, how long does it take you to run sunspider in chrome?
I'm trying to see if there is a problem with my computer
 
8:31 AM
> Total: 301.2ms +/- 6.9%
overall the whole test took more or less 1 minute
@BenjaminGruenbaum ^
 
8:44 AM
RESULTS (means and 95% confidence intervals)
--------------------------------------------
Total:                 266.0ms +/- 13.2%
 
user1125394
jquery question
 
user1125394
is it possible to set the Accept field in ajax to text/jacascript
 
user1125394
it's probably the 'dataType' stuff
 
There once was a girl from Nantucket,
Who had a nice fancy bucket.
She mopped up the floor
And went to the door
To answer it.
 
9:04 AM
@XCritics Some statistical analysis and simulation. I'm trying to hack together a library.
 
9:17 AM
0
Q: Improve this jquery code

bloody numenSuch as the title, how to make it more clean and improve it. (from a jquery novice) $.extend({ misTip : function($tipSettings) { $tip = $tipSettings.tip ? $tipSettings.tip : ''; $closeTime = $tipSettings.closeTime ? $tipSettings.closeTime : 1500; $refresh = $tipSettings.refresh; ...

 
@Feeds A most ominous question title
 
9:48 AM
@Zirak can u explain whats going on in there ?
 
...care to elaborate?
 
why do i get a gradient pattern
 
uh, without knowing what you're using and your code, no
 
i am just making points
using a diamond star like recursive algorithm in 2d
and then i render it using path
 
Well, I have no knowledge of the algorithms in question, nor do I have access to your code, so the best I can say is "something got messed up"
 
anyone used/using iScroll.js ?
 
My guess would be that you're making too many points
If you increase the stop condition of the seed recursion by a lot, you'll see that it stops happening
 
hmm
okay
:-) thx
 
Sorry I can't help more
 
anyone familiar with the new bootstrap?
can u please help me out
 
10:06 AM
@jAndy, THE GAME!
 
@Zirak no worries.. i fixed a few things ;D
i was making too less points -_-
this makes pretty amazing ones.
 
10:43 AM
The Oatmeal is awesome
 
10:58 AM
@FlorianMargaine That's slower than me, thanks
 
codepen.io/darkyen/pen/wIhsD <- now have a look at the smooth normalization & weathering :D
 
11:17 AM
“Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. ” - Stan Kelly-Bootle
 
@AmaanCheval Damn it. theoatmeal.com/comics/wwddd
 
Hahaha
 
@RaoEhsan 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.
 
@IvoWetzel When were you born?
 
@Zirak The wonderful year of 87
 
11:33 AM
July 26th?
 
That is indeed correct Sir
 
Thank you for your time and dedication
 
You're welcome... so... I do get something for free now, right? RIGHT? RIGHT?!?!?!?!?!
 
Here, take this complimentary sentence
2
It's a limited edition, mint condition
 
\o/
 
11:43 AM
@Zirak try clicking hte pudding :D
 
@Darkyen Now I'm hungry -.-
 
lol
@IvoWetzel so what can i call this ultra unrealistic .
coherent mixture ?
though its amazingly playfull :D
 
Where in the nursery rhyme does it say Humpty Dumpty is an egg?
 
12:04 PM
Hi guys !
 
@Darkyen That's pretty cool
 
@AmaanCheval i am making it more fun to play lol
 
Nice!
 
12:27 PM
@AmaanCheval check it now
coor is power of attack
btw
 
Oh, uses the mouse now
Looks a bit strange to me
 
@AmaanCheval it was using the mouse before, anyways.
it is supposed to be non-realistic anyways
 
Yeah, but it doesn't look unrealistic in the cool way
It looks odd.
 
:[
 
12:29 PM
Things don't have to be realistic to look good
 
the coherence ?
 
Maybe change the angle of the depression
@Darkyen If you mean the consistency of the terrain, no, that's fine
Just the bump created
 
ahh.. lemme try to fix it
i actually wanna make damage 2 dimensional and use gravity instead of normalizing the terrain [ or both ]
but i am wondering what i will use this for :D
@AmaanCheval does the bump look realistic when radius = 1 ?
 
Looks better, yeah
 
got cha :-)
i havent incorporated damage radius
so basically its 100 damage on all the points in the radius
 
12:35 PM
Have a quick question , I have a phone it input jack on my laptop I was wondering anyone recommend a program to make use of it as a caller ID and even possibly turn into advanced phone auto attendant features
I've been trying to find something but no reliable resources
 
@AmaanCheval check now
 
@Darkyen hehe, nice
 
:-) u checked the new version ?
 
Just checked it
 
@Darkyen I looked at your webpage. :)
...but I looked at the source code and you let common CSS mingle with the JS. gasp
 
12:40 PM
o_o which page ? codepen ?
0_o which one which one ?
 
why didn't you make a separate stylesheet?
it kind of clogs up the source code to have it there
 
@Johann cause i made it in like idk 1 hour or two
and i dont pay attention to it, all purpose of it is ... "GIVES ME MY EMAIL"
abhishek@hingnikar.com :D
 
oh ;)
 
if you really wanna see cool stuff "http://codepen.io/darkyen" awaits u
@AmaanCheval any idea what i can do wit this plum pudding experiment ?
 
hmmmm
 
12:44 PM
@Darkyen Nope. That's what I was wondering
 
i can make a game ....
which uses this as terrain :D ... removing normalization
and adding 2d damage
 
Could work out well
 
tank type game
 
Can fat people go skinny dipping?
 
Me: hrm, I'm gonna need random samplings from the normal distribution...I wonder how R does this
R: https://github.com/wch/r-source/blob/trunk/src/nmath/snorm.c
Me: Shit
 
12:59 PM
WAT @Zirak
 

« first day (925 days earlier)      last day (4023 days later) »