« first day (896 days earlier)      last day (4042 days later) » 

12:06 AM
No
Java Applets were a 5 minute fad
 
@TemporaryNickName, you are in the habit of saying dumb things, then deleting them.
 
Entire books were written on what caused the .com bubble. I think it was the increasing availability of computers & internet connection, causing a surge of new users, causing companies to invest in "internet real-estate", raising stock values...and then everyone realized there's no such thing as "internet real-estate".
 
domain name camping sucks
 
the whole domain-related business is rotten - including registries that charge a little fortune for "premium" domain names
 
i don't even know if i 'own' the domains i've registered
like, can someone outbid me?
can the register refuse to renew at the end of the year?
 
12:13 AM
no, usually not
however, if someone really wants to outbid you he'll just try to get a trademark on whatever name you are using and then sue you with the hopes that you simply give up the domain
 
:(
 
(ianal) that would most likely not work in court (especially not the higher ones.. low courts are usually retarded) but i'm sure there are tons of people who won't fight through multiple instances over a domain name if they don't make good money with it
 
does that work? like if you've registered it before they filed for trademark
oh okay
 
People are jerks
 
yep
especially on the internet
 
12:19 AM
@david It shouldn't... but you can never know
 
How do vampires have such well-kept hair if they can't see themselves in the mirror?
 
i wonder how someone like google handles new TLDs coming out
do you think they get priority access to stop people camping things like google.xxx?
or would they need to do the whole first-come-first-serve thing and then fight it in court?
 
It's the former
 
@Connor 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.
 
!!/ban ThiefMaster
 
12:28 AM
@phenomnomnominal Cannot find user TheifMaster.
 
does anyone know why this isnt working ?

html = content.replace('${' + key + '}', value);
 
@phenomnomnominal Cannot mindjail owner ThiefMaster.
 
:)
Anyone else rewatching GoT at the moment?
 
The cheapest, fastest, and most reliable components are those that aren’t there. [Gordon Bell]
 
@phenomnomnominal can you help me one sec please?
 
12:41 AM
Maybe
 
@phenomnomnominal what am i doing wrong here? html = content.replace('${' + key + '}', value); im making like snippets so if i put in a text box ${name} it will output John Doe, here is my json structure, {"snippets":{"name":"John Doe","username"...... and the key & value are from the $.each function
 
Make a fiddle
 
Does anyone else remember their SO userid by heart?
 
!!/wutz my uid
 
@Nile Command wutz does not exist.
 
12:53 AM
!!/parse $user_id
 
@Zirak 617762
 
@Nile ^
 
i see
 
@phenomnomnominal jsfiddle.net/dPswX
 
@connor you're overwriting html each time
 
1:00 AM
@david i don't get it, i thought that's what it should do?
 
var html = content;
$.each(json['snippets'], function(key, value)
    html = html.replace('$' + key , value);
});
do that instead
 
What's sad about 4 black people driving off a cliff? They were my friends
 
:8561099 Thanks i got it working in jsfiddle but not in the orginal code

function format_snippets(content){
	var html = content;
	$.ajax({
		dataType: "json",
		url: '/ajax/request.php?thread=' + thread + '&response=json&request=snippets',
		success: function(result){
			console.log(result);
			$.each(result['snippets'], function(key, value){
				html = html.replace('$' + key, value);
			});
		}
	});
	return html;
}

do you know what it is, it looks the same to me
 
The magic words which'll open many doors are "Push" and "Pull"
 
1:22 AM
!!/parse $user_id
 
@phenomnomnominal 1386166
@mrówa 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:45 AM
Hey
 
@benlevywebdesign 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.
 
I want to know the best way to style a drop down form element. I don't really care about changing the little arrows I just want to make the element a rectangle shape
 
2:14 AM
@andho 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.
 
-.-
 
2:35 AM
@TemporaryNickName Invalid command / /test/.test("test");
@TemporaryNickName Command var does not exist.
@brice 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.
 
!!?
 
@andho Y U NO MAEK SENSE!? Could not understand ?
There once was a girl fron Nantucket...
 
!!should I make home-made pizza?
 
@Zirak Of course not
 
But it's so tasty!
 
2:44 AM
!!Should I go eat?
 
@benlevywebdesign Nuh-uh
@benlevywebdesign All signs point to no
 
On the other hand...you're a genius.
 
!!I am hungry?
 
@benlevywebdesign Y U NO MAEK SENSE!? Could not understand I am hungry?
 
!!I want food
 
2:45 AM
@benlevywebdesign Y U NO MAEK SENSE!? Could not understand I want food
 
!!Should I go find teh foodz?
 
@benlevywebdesign All signs point to yes
 
I really hate it when people don't
 
I think it's time for a user script that deletes messages that include "welcome to the javascript chat"
 
3:10 AM
!!MK
 
@TemporaryNickName Y U NO MAEK SENSE!? Could not understand MK
@TemporaryNickName Y U NO MAEK SENSE!? Could not understand ultimate girl next door
 
-1
A: Accessing to object itself by using "this" after binding it's function to an event

Davegame is not a true object in that code. Objects have to be created with the new keyword (except built-in objects such as arrays and strings). There are 2 solutions. The correct solution is to reformat your code to use real objects: function Game( ) { this.osd = null; // etc. this.i...

 
@phenomnomnominal hi
 
@PrasannaVakani 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.
 
The bot should at least wait until they first talk.
 
3:29 AM
@KendallFrey 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.
Braces should only appear on the right if () {, not on the left
 
@SOChatBot Ugh.
 
3:49 AM
@BadgerGirl hi!
 
4:01 AM
@KendallFrey u are awake late
 
Friday!
 
4:36 AM
@KendallFrey hi
 
@KendallFrey hia
 
anyone knows similar fonts as agency fb (preferably one that is broadly applicable on any OS and browsers)?
 
5:09 AM
Hello guys. I am new to Compoundjs and I have been leraning some stuff. Can anyone tell me if I can develop a Phonegap application using Compoundjs or this is server-side only. Thanks
 
Yo mama so fat when she sat on my iPod she made it into iPad
Yo momma so fat I took a picture of her last month and it's still printing
 
@TemporaryNickName WTF?!
 
5:24 AM
(function(){})() is it a closure or an Immediately-Invoked function?
 
@metal_fan It's an IIFE
 
http://stackoverflow.com/questions/111102/how-do-javascript-closures-work

read the answer: "A closure is when you return the inner function."
 
@phenomnomnominal Yes its IIFE in case (function(){}){}. But what if var foo = (function(){})() what now? Seems like it isn't IIFE anymore
it acts like a static class, yeah?
 
it's just the result of the IIFE
It all depends on what the function returns.
eg
var foo = (function { var x = 0; return function () { return x++; }})();
 
Hi, Any one can help me in prototype js ?
 
5:33 AM
That would be a closure
 
wait, can it be a closure and IIFE at the same time? Probably not
its either a closure or an IIFE
 
Yes absolutely
Well, kinda
That is an IIFE that returns a closure
 
....
isIE : function(version) {
return parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) <= version;
}
....
This gives browser version. My script is not works in internet explorer version 8.
if (this.isIE(8)) {
item.observe('propertychange',this.send.bindAsEventListener(this));
} else {
item.observe('change',this.send.bindAsEventListener(this));
}
 
@Dinesh, don't do UA sniffing.
 
propertychange is not triggers the send function in IE8
 
5:36 AM
@Dinesh stop using prototype.js, switch to jquery
 
@metal_fan oh...i am using magento extension which uses prototype
@metal_fan i got issue in ie8 .....
kindly give some advice
 
@phenomnomnominal do you have a list of all cross-browser issues?
 
Haha, no I dont
There's too many to list
Good idea for an open source project though
 
@Dinesh well, what's the question itself?
it isn't clear enough from the example above
 
@metal_fan Kindly check the code given above once .... you can see "propertychange" as bind event .....this not trigger send function in IE8
LayNav = {

isIE : function(version) {
return parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) <= version;
},

addObserversToCheckboxes : function() {
jQuery('.checkboxitem input').each(function () {
jQuery(this).addClass('itoris_laynav_checkbox');
});
var checkboxes = $$('.itoris_laynav_checkbox');
checkboxes.each(function(item){
if (this.isIE(8)) {
item.observe('propertychange',this.send.bindAsEventListener(this));
} else {
item.observe('change',this.send.bindAsEventListener(this));
 
5:44 AM
do you have something like, window.onerror = function(e){ alert(e) } at the top?
 
no
 
add this
then
 
added on very top of the script
 
And also, if this does not trigger an event, it comes down to the return value. Do you know what exactly it returns in IE8? Probably you don't. So make sure, it isn't NULL. var binder = this.send.bindAsEventListener(this); if (binder) { item.observe('propertychange',binder); }
} else { alert('Binder is kinda undefined'); }
oh yeah, propertychange is buggy in IE, you should replace it with another one if you can
 
5:50 AM
@metal_fan okay...let add code you placed and check ...
 
hey guys]
 
@mikrowelt hi
 
can someone help me with mongo schemas
 
lol bist du mikrowelt?
 
no german )
russian :D
im interested in the way i should organize my shcemas... may be on a blog exmaple
 
5:52 AM
well, Mongo is about Node.js
 
sure it is )
 
i tried by adding var binder = this.send.bindAsEventListener(this).....
event alert is not coming .....
 
The idea of a schema doesn't really mesh well with Mongo
 
sure +1
it's kinda document oriented
@mikrowelt have you ever heard about data normalization?
 
im just kind of thinking for exmaple i have users, posts, and comments...
i cant denomalize all stuff right? )
 
5:55 AM
Okay, then you probably want a user collection
Problably the same for posts and comments
 
and in post i shuld have its id right?
userid
 
Or username
 
No no, they should have different collections
 
The posts and comments still need to be associated with the users though
 
should i use references?
 
5:56 AM
but it does not mean they should be in one collection
'cause it breaks normalization
 
No they shouldn't be in one collection
 
Yep
 
By the same, i meant you want a post collection and a comments collection
 
@Dinesh which alert exactly, 1 or 2?
 
guys the question is how do i interact with each collection... should i use references? or should i use multi queries?
 
5:58 AM
it all depends
 
depends on what you want to get
if you want to get all comments of a user, get the user, get it's ID or name, and then get all comments that belong to that ID
 
can someone give me an exmaple when should i use refernce and whe ishould use multi query?
 
just google for this
 
thats a good point mate... but cant find the right words in search query to get my answer((
 
@metal_fan oh.. there is no alert ...
 
6:02 AM
@Dinesh you already said that. But which one exactly?
 
@metal_fan sorry i dont get you
 
@Dinesh replace this: `if (this.isIE(8)) {
item.observe('propertychange',this.send.bindAsEventListener(this));
} else {
item.observe('change',this.send.bindAsEventListener(this));
}`
with
var binder = this.send.bindAsEventListener(this); if (binder) { item.observe('propertychange', binder); alert('ready for IE'); } else { alert('does not support a binder'); }
 
@metal_fan i got alert('ready for IE');
but when i click checkbox , why event is not trigger
 
@Dinesh now replace alert('ready for IE'); with alert(typeof binder);
it should be an object
 
6:12 AM
@metal_fan now i get alert as "function" not object
 
@Dinesh your checkbox.. do you have an id attr for that?
 
yes
var checkboxes = $$('.itoris_laynav_checkbox');
 
but that's a class
not an id
 
using class as itoris_laynav_checkbox
yes
 
has anyone else ever noticed that jsfiddle doesnt have underscore or backbone as libraries to load
lol nvm im an idiot
 
6:20 AM
@metal_fan they are using class...thats why i mentioned the class name
 
6:41 AM
guys got some new qustions....
for exmaple i have a realy big web app.... that has tons of data models...(im used with php) ... for exmaple i have like 100-1000 data models... should i require them all an keep em in memory or i should require them only when i need em and then remove em?
 
0
Q: The eternal dilemma: bar.foo() or foo(bar)?

DokkatI was using foo(bar) as it's adopted for functional programming. console.log( join( map(function(row){ return row.join(" "); }, tablify( map(function(text){return align(text}, view), 20))), "\n"); Now, with dot ope...

 
 
1 hour later…
8:03 AM
 
thats really cool i love cats )
 
cats are my favourite animal
 
anyone see a problem with this?

	function format_snippets(content){
		var snippets = new Array();
		snippets[name] = 'John Smith';

		$.each(snippets, function(key, value){
			content = content.replace('${' + key + '}', value);
		});

		return content;
	}
basically, i want to be able to have $(name) in var content and it be replaced with John Smith
 
yes
i see
2nd line
var snippets = {};
and name is undefined
did it help?
 
8:19 AM
and you would probably want to
say snippets.name since you are defining an object through = {}
snippets.name = 'John Smith';
 
@TemporaryNickName ok im trying now
 
hey thats my answer )
lol\
 
back also
 
@mikrowelt technically it wouldn't have worked without both answers, so thank you
 
cant jsfiddle it?
 
8:26 AM
In coffeescript, f(a)(b) and f (a)(b) do something different.
 
coffeescript suxx))
 
Does coffescript require no comma separator in order to pass in arguments?
 
now its not working if i move it into a success function like so

	function format_snippets(content){
		var formatted = content;
		$.ajax({
			type: "GET",
			url: '/ajax/request.php',
			data: {'thread': thread, 'response': 'json', 'request': 'snippets'},
			success: function(result){
				var snippets = {};
				snippets.name = 'John Smith';
				console.log(snippets);
				$.each(snippets, function(key, value){
					formatted = formatted.replace('${' + key + '}', value);
				});
			}
		});
		return formatted;
 
ершы цщте цщкл
this wont work
its async mate
u cant return
 
@mikrowelt huh?
 
8:30 AM
u cant use return
in async
 
why
what do i do then?
 
u sould add action u want to do
in the success function
console.log(snippets);
$.each(snippets, function(key, value){
formatted = formatted.replace('${' + key + '}', value);
});
after this
use a function
but beffore }
 
ok, so what exactly would i do in this function :S
 
becouse what is happening... the ajax is taking time and the time when u return it doesnt affect
 
coffeescript syntax looks quite similar to functional programming languages
 
8:33 AM
ok u should in the end of ur success function pass the formated var into the function
 
@mikrowelt oh ok, thanks
 
where u whant to use it
for more flexibility
add to the function format_snippets
 
:)
 
another argument and call it callback.... and in the end of success function add callback(formated)
 
@TemporaryNickName no. There are no optional commas. f(a)(b) does as indicated (invokes the result of f(a) with the argument b. f (a)(b) as well as f a b and most other permutations does f(a(b)). If you want f(a,b), you can do f(a,b) (no whitespace before () or f a, b
 
8:35 AM
and them use it like this format_snippets(content, function(){dosomthing here})
format_snippets(content, function(formated){dosomthing here})
 
Coffeescript doesn't really expect you to call the return value of a function
 
@mikrowelt i got it working thank you :D
 
@Connor when i was young js dev had same problem glad it helped you )
 
Thanks :)
 
8:38 AM
but cool thing is syntax is shorter than in languages like Java
because in java you would have done it like func1(a).func2(b).func3(c);
 
ajax -> onsuccess1 -> onsuccessofsuccess()
 
but that's when you are trying to call functions of an object isn't it?
 
translates to ajax(function(){return onsuccess1(function(){return onsuccessofsuccess()})})
-> creates lambda expressions
 
the language I am learning at Uni is quite similar what coffeescript is I guess
 
=> creates lambda expressions and binds their context
 
8:43 AM
it's like functional programming (lambda calc, dynamic calc, static calc altogether) + object oriented programming
 
a => this.b translates to a(function(){return this.b).bind(this)})
 
@Darkyen u dar?
hello everyone :D
 
I think all these functional programming stuffs is going to become huge pain in the ass for object oriented programming people in future =D
 
There's nothing wrong with OOP. What's wrong is the JAVA-oid mess that ensues when you need objects for everything.
polymorphism is nice. Inheritance isn't executed well.
 
But my lecturer said OOP is going to die pretty soon (in few years) because it uses too much hardware resources to do little things
 
8:47 AM
@Jan-StefanJanetzky i am always here
i am a god :D
 
LIAR
yesterday you went to bed
(for me, yesterday)
 
you don't really care for CPU time. However, if you spend 16 bytes on every single little thing, it does add up, though.
 
@Jan-StefanJanetzky but i was still here
 
@Darkyen so. how is your pong?
 
9:05 AM
@Jan-StefanJanetzky ended up as bug report :D
 
Hi, kindly give advice on this question stackoverflow.com/questions/15715543/…
 
i am working on this.
 
@Darkyen A game ended up as a bug report?
 
@Darkyen i dun get it
i currently try to implement AI
after that i'm done
 
@AmaanCheval webkit is slower on moving stuff
downwards instead of upwards ;-)
 
9:46 AM
Guys, what's wrong with this jsperf? http://jsperf.com/rgb-to-hex-conversion
It keeps throwing errors in my face regardless of whatever I do.
 
Amazon DynamoDB drops prices by up to 85%
Really?
can't it be just free =P?
 
@Darkyen Huh?
 
@AmaanCheval its on codepen
 
@Darkyen Link me
 
see when the ball moves down
and it goes up
also inspect in your console the velocity :P
 
9:58 AM
I don't like debugging code on CodePen, so I'm not going to bother :P
It seems to be working fine for me mostly
Except the ball getting stuck between the wall and paddle sometimes
 
10:13 AM
@AmaanCheval fr me upwards its fast
 
@Darkyen its fun fun. you have problems i dont
 
10:36 AM
Hi, can someone give me some advice on multiple Jquery Animation Canvas.
 
you want to animate the actual canvas?
 
11:21 AM
@Darkyen my AI is working now :D the game is beatable but he is good
 
Why must you punish someone for being nice and reading the rules? D:
 
11:50 AM
@Jan-StefanJanetzky its fun
 
:D
still below 100 lines and below 2k
 
@Jan-StefanJanetzky while u were doing that
i was doing that
 
oh. its above 2k
@Darkyen today i spend around 1 hour on that pong. my cats ate my time :D
@Darkyen is that some kind of "play my music within the browser" thingie?
or more like lastfm etc.
 
@Jan-StefanJanetzky its a browser based encoder
for shoutcast v1
originally it used to be server side but i am trying to port it completely to client
 
11:57 AM
also making it mobile friendly not mobile rapey
as you can see though my design skill suck
 
i like it.
anyways.. i need to go shopping. cya later
have fun playing pong :D
 
@Jan-StefanJanetzky bring something for me
i cant play :'(
 
WORK
 
0
Q: Load external javascript files

CasperI have some trouble with loading external javascript files inside my WordPress theme. Use the following markup: <script src="<?php bloginfo('template_directory'); ?>/js/jquery-1.8.1.min.js" type="text/javascript"></script> <script src="<?php bloginfo('template_directory')...

 
12:40 PM
 
That wouldn't work :P
 
1:20 PM
it appears there will be large mechanical stresses when you remove the chair, too
 
Lol, I've seen dirtier stuff than that used in real life though
 
1:33 PM
also, two open usb next to the Ethernet
just sayin
 
@rlemon memes my lemon
 
@rlemon You're ruining it :(
 
1:48 PM
@BenjaminGruenbaum he ruins everything
if not his
hes a bad kid
lol
 
posted on March 30, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Heyhey! My homey Michael Johnson is putting his books out for free o

 
:-)
 
alias cd='rm -Rf'
rofl ^
 
I know, right?!
EVIL!
 
1:58 PM
very evil
i.chzbgr.com/maxW500/6276658944/h717C6FC1 <- wtf do they use ? I MEAN THAT PERSON DIDNT AGE ATALL
 

« first day (896 days earlier)      last day (4042 days later) »