« first day (670 days earlier)      last day (4268 days later) » 

2:00 PM
Have to star that.
 
WHAT IS THIS TREACHERY?
MORE THAN ONE SIMON?
 
Thats the kind of phrases I love using.. but I try to keep it kid friendly on the chat.
 
erm...no pun intended.
 
haha
 
I flagged you :(
 
2:01 PM
now I don't know who to listen to..
Simon.. or SimonSarris
this is like troll Simon says!
 
@SimonSarris flagged me?
 
@rlemon nay zirak
 
@SimonSarris I know it's all from love <3
 
well now I feel bad about it, but its still not a nice thing to say!
 
So?
 
2:04 PM
SIMON <3
4
 
hah nice
 
1
Q: What is the difference between Number(...) and parseFloat(...)

NealWhat is the difference between parseInt(string) and Number(string) in JavaScript has been asked previously. But the answers basically focused on the radix and the ability of parseInt to take a string like "123htg" and turn it into 123. What I am asking here is if there is any big difference bet...

 
@Neal huzzah
 
@rlemon :D:D:D:D:D
 
@Zirak :-)
 
2:11 PM
@rlemon you know what ? My name is Simon. And I love to see you " SIMON <3 ". You made my day Bro.
 
:)
 
@rlemon Add sound and you'll be godlike
 
1
A: Why doesn't the badge system incorporate intermittent rewards?

SomeKittensIntermittent rewards would work for what you want (encourage users to do X), but not in the way that we at SO want to encourage users. Stack Overflow isn't, and never will be, a RPG. The badges are there so that users can see what's encouraged (answering your own question, for instance) not so ...

hehe, worked that guy into an answer
 
@Zirak sound + touch support. is what it needs :P
 
@rlemon me no hearz
 
I love mee too @rlemon
 
@rlemon > "Don't be afraid to ask for help. It shows strength, not weakness"
 
how do you make tags here?
 
@fou huh?
@SimonSarris you install my userscript ;)
 
@SimonSarris [tag:my-tag]
 
2:15 PM
or [tag: some tag but without whitespace ]
 
fou
@rlemon ??
 
@FlorianMargaine yeah, that one made me smile a little...
 
@fou !!
 
fou
2:18 PM
Any one can help ?
 
3 mins ago, by Florian Margaine
@rlemon > "Don't be afraid to ask for help. It shows strength, not weakness"
Just ask. Provide useful information about what you tried and what is the problem. If you can, show code. And we'll see
 
fou
-2
Q: zoom to show all points on google map

fouI want to have the best zoom to show all points on the map I use this code but it didn't show all points. Any person can help me to correct my code or if there is another solution for the zoom. I use Google Maps API v3. for (i = 1; i < locations.length; i++) { marker = new google.maps.Marker...

I can't zoom all the points on the map
@dievardump have you an idea about that?
 
Do you have any error ?
map.fitBounds should work perfectly
 
fou
@dievardump I don' t have error but I can show only one point I think there is a problem with LatLngList = array (new google.maps.LatLng (lt[i],long[i]));
 
lol
indeed
this is not javascript, heh
 
2:27 PM
oh yes i didn't see the array()
and i'm not sure you can use long as a var name, can you ?
you can.
 
in Tavern on the Meta on Meta Stack Overflow Chat, 15 mins ago, by Bart
@amanaP When life gives you rlemons, make rlemonade...
:D
hahahaha
 
Oh my Fricking gosh
googles signup broken!
 
not it's not :/
 
No it's not, and stop being a 13 year old girl already
 
it is for me (xD)
its using javascript based overlays for placeholder
 
2:31 PM
...quick, call the president. It's a national crisis.
 
ladies and gents
i'm pissed at these charts
 
@Zirak i m amused
because chrome was the first i remember to implement all teh API's for placeholder
 
http://vndm.rtdsllc.com:8086/rtds/examples/stocks/examples/basic-line.htm - works
http://pica.rtdsllc.com:8086/rtds/examples/stocks/examples/basic-line.htm - doesn't work
http://localhost:8086/rtds/examples/stocks/examples/basic-line.htm - doesn't work
 
hrm. typed man mount, and the humour only hit me after 2 minutes. Is that a possible symptom of cancer?
 
why? XSS?
 
2:37 PM
What does XSS have to do with it, and why would they all work?
rfsad5421ghcfwqh8.google.com doesn't have to work
It only works if it exists
 
in my webservice the getJSON is hardcoded as vndm.rtdsllc.com:8086/webservice.php
@Zirak they all exist and point to the same place
 
@hanleyhansen if you had looked at the error console, you would understand immediately
> XMLHttpRequest cannot load vndm.rtdsllc.com:8086/rtds/webservice.php. Origin pica.rtdsllc.com:8086 is not allowed by Access-Control-Allow-Origin.
cross-domain requests, you know...
 
ah they exist (note to future self: check domain existence before yelling.) So yeah. Error console.
 
@Zirak see above
 
2:38 PM
XSS = Cross Site Scripting, not cross domain requests
 
how do i solve the cross domain requests issue?
 
Remember that there is a limited number of XMLHttpRequests at a time.
 
either you use CORS, or you use JSONP
 
You either put them all on the same domain, or use jsonp (google it.)
 
2:39 PM
@JasonStackhouse that has nothing to do there
 
window.securityStuff = false;
 
@hanleyhansen Sorry for yelling, Chris Hansen ~_~ Please don't tell me to take a sit
 
lol apology accepted
 
Just because I said "fuck kids" doesn't mean anything!
IT'S ALL LIES
 
in which way did you mean it?
 
2:41 PM
THERE ARE NO EGGS
 
in a sexual way, or in a mean way?
my flag will be added depending on your answer :D
 
@FlorianMargaine It has. Use long-polling, Comet or WebSocket
 
41 mins ago, by Zirak
@Loktar fuck the kids.
 
@JasonStackhouse what? we're talking about cross domain requests there
 
is there such thing as .getJSONP in jquery? lol
 
2:42 PM
@Zirak yeah, that doesn't answer
 
Click the time on that
 
@FlorianMargaine Oh ok :D Nevermind.
 
@FlorianMargaine i'm pretty sure he was referring to the song from NoFX
 
lul
if you know some french, you'd like "dider super"
 
it's the only thing i can think of :P
 
@FlorianMargaine hey, basically what you'd like to do is to kind-of "reserve" a proxy right?
 
@TomShreds no, I just want to use the event object available in all the proxies
 
for JSONP i just need a call back right?
 
maybe there is a way to just require it, dunno
 
Oh good song haha
 
2:44 PM
^^
 
Do you mean EventEmitter? If so I guess you can do like in the code: require("events").EventEmitter.prototype
 
@GNi33 the name of the song is "the kids, we gotta burn em"
@TomShreds require('events') works?
 
@FlorianMargaine I really don't know, based on the code Raynos does:
        proxy = bindAll(proxyForFunction, EventEmitter)
 
yeah...
 
So he merges that object in the proxy
 
2:46 PM
require('events') works
 
Still feeling like a hack uh? :P
right
 
Are the standard pictures on Stackoverflow randomly generated?
 
Morning everyone!
 
Sam
Hey guys, I have an technical test for a front end developer role in a few hours. Any idea what I could do to prepare for it?

http://pastebin.com/TXzWFWd5
 
@TomShreds no that'd be good
 
2:49 PM
@FlorianMargaine this is what you were actually looking for? :D
 
the require('events') yep
I'm checking to see if it works
 
good
 
Guys, does anyone know how to send pdf file to browser printer without any frames. I have link to pdf file. I click on it no, then it starts to download it. I need to somehow send it to printer. Any ideas?
 
@TomShreds no that doesn't work, because if I create a new instance of EventEmitter, it's not the same object used by ncore proxies...
 
Oh crap.
 
2:54 PM
@Sam try the facebook technical online test ^^
 
js, y u no sprintf
 
@FlorianMargaine if you want to take a look it seems to be happening there github.com/Raynos/ncore/blob/master/lib/core.js#L85
 
Sam
@dievardump Ill give it go, cheers. Do you have a link to it?
 
@Neal you have your accepted answer. Don't need to reopen it.
 
@dievardump even so. people are not as likely to look at a closed q.
 
@FlorianMargaine I guess you could make yourself some basic function in core.js that would return the ncore's events instance?
 
I could do ncore.add( 'event', {} ) and add it to the module I need, but that'd be a hack :/
 
new error. I implemented a callback and now i'm getting:
Resource interpreted as Script but transferred with MIME type text/html: "http://vndm.rtdsllc.com:8086/rtds/webservice.php?callback=jQuery171040940458490513265_1345128975818&_=1345128975889".
 
I'd have an empty proxy with just the eventemitter object that ncore uses
this is what I'm talking about as a hack in the issue
 
2:57 PM
@Sam nop i can not find it
 
@hanleyhansen it's not an error, it's a warning
don't give a shit about it, everybody gets it and the web still lives
 
@FlorianMargaine But it still doesn't work pica.rtdsllc.com:8086/rtds/examples/stocks/examples/…
 
1
Q: front end development test - html/css/jquery/javascript

JasonWe are continually revamping our front end developer test that we do in-house after a candidate has passed an online test. The online test has questions such as: How does a for loop start? What is the correct way to write a JavaScript array? Write the css selector for the 3rd list item within a...

 
@FlorianMargaine okay yeah... I can't see a better way yet. I'll still check around for a better way, I'm in that part of the code right now anyways
 
agh, how do i properly do templating with javascript
getting a json with data, and i need to build the proper markup for some elements
 
3:01 PM
ait just got an idea
@GNi33 look at "Plates"
orrrr you can use @rlemon's FragBuilder
 
I used to wrote a zencoding template engine... I wonder if i can find the source somewhere
 
yep, i'm just getting the data, not the markup via json
 
@FlorianMargaine do you have any idea about these questions? github.com/Brainpad/ThinAir/issues/7#issuecomment-7776586
 
@FlorianMargaine should I change the header content-type?
 
hm, i think i'll need to handcraft this thing
 
3:03 PM
@FlorianMargaine I inject the right files now, but when the setup() is called the proxies just aren't there damn it.
 
@TomShreds The name passed must be the same as the name used in the constructor (ncore.constructor( constructor ))
@hanleyhansen no, that's not the problem
 
@FlorianMargaine now i'm getting no error but the chart is still not displaying. please help.
 
don't wanna
 
can anyone help me?
 
@FlorianMargaine the name is the same passed all over the place. I'll keep searching
 
3:05 PM
sorry I can't help you there :/
@TomShreds is it injected only where there isn't folder names?
 
Anyone?
 
Could someone explain me jquery closest ? ( jsfiddle.net/jonathanlafleur/RH69n )
thank you :)
 
@Eugene ?
 
@FlorianMargaine I can see all the injections in _interfaces and everywhere names are relative paths.
 
16 mins ago, by Eugene
Guys, does anyone know how to send pdf file to browser printer without any frames. I have link to pdf file. I click on it no, then it starts to download it. I need to somehow send it to printer. Any ideas?
 
3:07 PM
@JonathanLaf read the docs :p
> Description: Get the first element that matches the selector, beginning at the current element and progressing up through the DOM tree.
"progressing up"
 
DOE
i've missed that -.-
AM I BLIND ?
lol
 
@JonathanLaf you want siblings() jsfiddle.net/RH69n/1
 
@FlorianMargaine just run ur tests
 
@JonathanLaf and this is just the same ^^ jsfiddle.net/RH69n/2
@Abhishek so, you like mocha? :p
 
@FlorianMargaine I think I found the culprit, once in injectDeps, dependencies is freaking undefined.
 
3:08 PM
:o yesh
 
@TomShreds oh...
 
@FlorianMargaine modules[] is filled, codeDeps no. brb 2min
 
Thank you @FlorianMargaine
 
3:10 PM
@JonathanLaf next time, enable E_DUH
 
@SomeKittens LOL
 
@GNi33 well you could format the json to pass the markup data - was designed so you could inject new templates into your site easily via JSON
 
@rlemon hm? i don't fully get that sentence i fear
what was designed?
 
fragbuilder
 
3:13 PM
ok, yeah
problem being, the service where the json gets generated has no idea of the actual markup
it's just an interface where employees of our client put in data
 
@FlorianMargaine listen bro
on fedora
it requires "sudo"
 
still. not too bad to do it with fragBuilder. performance is very good on it.
 
oO
@GNi33 look at plates, your json datas have property names right? this should suffice
var Plates = require('plates');

var html = '<div id="test">Old Value</div>';
var data = { "test": "New Value" };

var output = Plates.bind(html, data);
 
this works with classes too, right?
 
3:16 PM
or even with any selector?
 
thanks, will look over it again
oh, ok, you would need to map that
 
var html = '<span class="name">User</span>...<span class="name">User</span>';

var data = { "username": "John Smith" };
var map = Plates.Map();

map.class('name').to('username');

console.log(Plates.bind(html, data, map));
if you have different names, you can map them
there are even complex stuff available
 
gist: simily Zencoding Template Engine, 2012-08-16 15:17:14Z
var template = '(div[id=menu, class={menu.menuclass}]>ul>li[class={menu.itemclass}, html={title}, map={menu.items}])+(div[class=body]>div[class=content]>p[html={maincontent}])',
	data = {
		maincontent: 'foo bar',
		menu: {
			menuclass: 'menu',
			itemclass: 'menu-item',
			items: [
				{ title: 'first entry' },
				{ title: 'second entry' },
				{ title: 'third entry' },
				{ title: 'fourth entry' }
			]
		}
	};
	
	Template.render(template, data);
	/*
		<div id='menu' class='menu'>
			<ul>
				<li class='menu-item'>first item</li>
				<li class='menu-item'>second item</li>
				<li class='menu-item'>third item</li>
				<li class='menu-item'>fourth item</li>
			</ul>
		</div>
		<div class='body'>
			<div class='content'>
				<p>foo bar</p>
			</div>
		</div>
	*/
	
 
var html = '<a href="/foo/bar"></a>';

var data = { "newurl": "bazz" };
var map = Plates.Map();

map.where('href').has(/bar/).insert('newurl'); // `has` can take a regular expression.

console.log(Plates.bind(html, data, map));
 
3:17 PM
resolved
 
@FlorianMargaine datums*
 
i just allowed header('Access-Control-Allow-Origin: *');
 
@hanleyhansen I'd suggest you only allow it for the domains specified :)
* means that I'll be able to get your graph too
 
@FlorianMargaine ok, i'll give it a try, after all it looks a little more convinient than the thing i'm writing right now
 
3:18 PM
@FlorianMargaine yeah i'll hardcode that in. thanks.
 
@dievardump haha nice
@hanleyhansen or you can load them from a config file :)
 
@FlorianMargaine I coded almost everything (MooTools based) some years ago. Idk what I did of it.
 
@FlorianMargaine that's an even better idea. i'll do that.
 
i would've just concatenated the markup together in a string and package that in a specific function for every element
 
@FlorianMargaine Woah. My SO chat is glitching. that was supposed to send a while ago
 
3:20 PM
@dievardump cool :)
 
I think I'll redo-it
In pure js
 
@FlorianMargaine ITTTT WOOOOORRRKKKSSSS!!!
 
yaaaaaay
congratulations
 
Thanks :D
 
now get onto my problem :<
 
3:24 PM
moduleLoader was loading ALL THE THINGS, but now it only loads stuff from deps.json so everything works right
sure I'll try to help you :)
 
make a pull request :p
 
everytime my co-worker pass by, I am on SO chat...
 
I'll see if it doesn't break anything first :P
 
@dievardump hahaha
@Abhishek so, trying to fix the parser? :-)
the first tests are good already, it's a good start to have
although for now, it will only take one avatar per string
and btw, I thought about it, this should definitely be done on the server
 
3:37 PM
@FlorianMargaine yes
 
@FlorianMargaine maybe am i blind again, but I don't understand why that the open class is not respected in that case :

http://jsfiddle.net/jonathanlafleur/RH69n/3/

Thank you to take your time :)
 
ouch...
 
@JonathanLaf what do you mean the open class is not respected?
 
When you click the h2, the icon pass to minus, and when you mouseout it goes back to +
 
Well, those were a fun 30 minutes. Haven't been banned in a while
Now I can finally do some testing
 
3:48 PM
haha
@JonathanLaf should work, dunno what's wrong
debug it :)
add "debugger;" to some line, and open your console
 
@FlorianMargaine debugger; ? Could you explain that please ? It will be really nice to know another way to debug :)
 
open your console and run that
 
Add that line and you'll see for yourself
 
hm, doesn't do anything, that line is never reached
@JonathanLaf use this one jsfiddle.net/RH69n/13
well, it helps you know the issue.
 

« first day (670 days earlier)      last day (4268 days later) »