« first day (835 days earlier)      last day (4113 days later) » 

2:00 AM
7 mins ago, by Ryan Kinal
@SomeKittens I feel like that should be <script class="dont-look-at-my-shame" src="jquery.min.js">
you made a class joke.
was more readable as a comment
then I just ran with the comment stuff because i thought it was interesting.
 
Wow. That's like, 3 leaps beyond any logical reference I could come up with.
 
well get with the program buster!
you want me to spell this out for you all night?!
;)
 
Yes.
That is exactly what I want.
 
OK (agreement to your previous statement). So, (awkward interject, due to the fact that I do not know where to head the next point of conversation I break the silence with a random interject like this) how has (question about non-specific activities and/or feelings about any number of non-specific subjects) everyones (address to all people currently in the room and any users who may join the room in the future and read this message within the allotted social standards for response time) evening?
ok I am so done with that shit... took too long.
 
question, in a loop how do you prevent an assignment of an onclick changing the value to the last value in the loop =/ ?
 
2:08 AM
you confuse me with your question... I'll confuse you with my picture...
 
@Dave closures!
 
huh ?
i pushed it to an anonymous function thinking it would keep the value
 
I miss jAndy... @jAndy where did you go. you liked to joke and have fun. now people want to talk about code. :( i'm going to play video games.
 
It should, depending on how you do it
@rlemon ... sorry, talking with women is more important than joking with you.
 
well i do:

d.onclick = function(){ display_tree(catergories[i].id) };
 
2:11 AM
How about joking with women?
 
"Dave" sounds like a pretty shitty looking woman if you judge by name.
 
i is the value being increased each iteration
 
@BadgerGirl lol, fair enough
 
if i was a woman I'd be damn sexy thank you v.much ;)
 
@Dave d.onclick = (function(i) { display_tree(catergories[i].id) })(i)
 
2:12 AM
how come you have to put (i) at the end
 
there are many things about the male anatomy which make me wonder why men turn gay... or women sleep with men... or how mankind has lived for so long with the male anatomy being so much less attractive naked than the females.
 
@rlemon well women are more interested in character than physical appearance so looks like nature compensated for that
 
bullshit
 
@rlemon And that, my friend, confirms that you are, in fact, straight.
 
they are as shallow as men
they just have more couth
 
2:14 AM
kouth ?
 
Some people are shallow. Some of those people are women. Some of those people are men.
 
@RyanKinal exactly.
 
None of those people will go out with me :-P
 
I'm not saying "all women" :P just as many as men if you ask me
they just are able to hide it or lie about it or make me not want to believe it as much about them as I would my honest male friends.
 
i think you can spot shallow women alot easier than men
for example when their bf is thick as a plank but some kind of gym fanatic
 
2:17 AM
but then again I did work in retail stores for a few years and let me tell you the female customers and employees just re-enforced my belief that the only difference between men and women is men (generality) is that women have a more 'sophisticated' outward appearance. but behind closed doors are thinking and saying the exact same stuff.
I want to re-enforce customers & employees. not just young emplyees. young and old customers of all walks of life.
and not all people are like this - 50/50 i'd say ( thats gracious to the good intelligent folk.. it would appear there are not as many of us as there are morons)
 
But all men are shallow, and not all females are.
 
@RyanKinal so how come after the anon function you need to also have (i) ?
 
Because it needs to pass the value of i into the function.
And, now that I look at it again, my code is wrong.
 
@BadgerGirl ahh the call of a girl who's in her early 20's and has been told she was wrong by a man
 
You need to return a function from the function.
 
2:19 AM
=/
@BadgerGirl talk about generalising =/
 
@BadgerGirl, all girls generalise, and all men don't.
 
Haha. I didn't mean it like that. The majority of men are shallow and give more importance to looks.
 
I generalize half of all of the people I meet day to day are morons. I don't decide this by race or age or gender or religion or anything but the words that come out of their mouths (and sometimes their driving).
@BadgerGirl not at all.
in my experience women are just as shallow as men.
 
I don't that's very true in our industry...
 
men as just more open about the fact that they are being shallow.
 
2:21 AM
Half of people are dumber than the average person.
 
according to recent science, using vision tracking men more likely to look at a girls face - girls are more likely to look at the mans chest and package
 
so women are not made of sugar and spice and everything nice. they are made from carbon atoms and lies!
 
!!s/average/mean/
 
@phenomnomnominal Y U NO MAEK SENSE!? Could not understand s/average/mean
@phenomnomnominal Half of people are dumber than the mean person. (source)
 
There are more girls dating ugly guys than guys dating ugly girls. Or maybe girls are just more beautiful in general.
 
2:22 AM
I think i've already mentioned this
 
by that statement your kinda coming across shallow :P
 
with ( looks ) { women > men; // true }
 
with ( looks + makeup ) * fixed
different ball game when the make up is off.
 
@Dave not really. look at what we consider attractive in society today. the shape of a women.
cars bottles etc. all shaped like women.
why? because marketing sucked us in
 
yeh but girls like a broad shape on men not curvy
 
2:24 AM
but they also like curvy shapes as well. albeit not in a mate.
but they find their own type attractive otherwise the massive want to be "prettier than her" wouldn't exist.
 
well id rather it that way, wouldnt want billboards of men in underwear where ever i walk - keep it to women :P
 
this is all due to social failures. I don't think it's right. but it's the truth.
 
It's also down to evolution and competition
 
@phenomnomnominal in most species outside of humans and apes the females are the dominate gender
 
We may have FUBARed it, but it has it's roots in finding the best mate.
 
2:26 AM
they reproduce === they are more important in natures eyes.
 
I think I'd argue that it's true with humans too?
 
most species, males are quite a bit smaller and more fragile than females - cept apes and humans.
 
in the home i think the mother is the glue of the family
 
What about when there's two dads?
 
well a lion is not more fragile than a lioness lol
 
2:28 AM
@Dave most
I didn't say all.
 
!!s/cept apes and humans/cept apes/
 
@RyanKinal most species, males are quite a bit smaller and more fragile than females - cept apes. (source)
 
and a lioness would rip to shit a lion.
 
^ fix'd
 
umm a lioness would die in a single hit from a lion their bone is far too weak
their size is almost 3:1 difference
 
2:29 AM
Lioness never travel alone.
packs of 4-5 with 1 lion
 
yeh but the lion is the protector of said group
 
if they all ganged up (which they have been known to do from time to time) there is no winning for the lion
abandoned lioness is fucked
but that is a perfect example of how most ape communities work. cept females once abandoned are more easily adopted by other 'tribes'
 
well any gang against 1 will win no matter the gender lol
 
@Dave put me against 15 girl guides and watch me win.
:P
sorry for the pings
 
lol
 
2:31 AM
Only if they have poor tactics
 
you would still lose from exhaustion first
 
best part about beating up girl guides: all of the free cookies afterwards. and the sashes. sashes kick ass.
 
Someone buy me food.
 
can't you use a girl charm to sucker a bloke into doing it in your local area
 
Yes I can. But also on the internet.
 
2:34 AM
return $.food(); // damn.. didn't work.
 
weinre is SO cool
 
			var d = document.createElement('div');
			d.onclick = (function(){ display_tree(catergories[i].id); }(i)
			document.getElementById('cms').appendChild(d);

Whats wrong with this =/
unexpected identifier apparently
 
missing a bracket
var d = document.createElement('div');
d.onclick = (function(){ display_tree(catergories[i].id); })(i)
document.getElementById('cms').appendChild(d);
 
ah damn so i do ^_^
 
@phenomnomnominal how different from what already exist as browser built-in dev mode it is?
 
2:37 AM
Nevermind, ThiefMaster will send me a pizza. Thanks anyways.
 
thanks - hate it when my eyes do that
 
@Happyninja, identical, except you can do it remotely from any device, with any browser
 
@phenomnomnominal remotely? i don't (even after checking thw page) get it
 
So... if a girl says her cat is her only friend... that's probably a bad sign, eh?
 
wtf its still executing my onclick function as it assigns it to the div!!!
 
2:40 AM
Most mobile devices don't have a way to go 'inspect element' or do the kind of things we are used to from chrome dev tools or web inspector or whatever. This lets you use those tools over the internet, so you can do those things from another computer to solve issues on mobile devices
@RyanKinal. RUN
 
var d = document.createElement('div');
d.onclick = (function(){ return function() { display_tree(catergories[i].id); }})(i)
document.getElementById('cms').appendChild(d);
 
@Dave, you're executing the function as you assign it...
 
Xcode just joined the chatroom.
 
how do you stop it executing
i thought the anonymous function would prevent it
 
@Dave You need one more level of anonymous function. As in my code above.
 
2:42 AM
User-Agent: vim. Yes, I write emails in vim without an email client
3
 
ah gosh its quite ugly
 
// If I could make you pertier, I would
var d = document.createElement('div'),
    makeClickhandler = function(i) {
        return function() {
            display_tree(catergories[i].id]);
        };
    };
d.onclick = makeClickHandler(i);
document.getElementById('cms').appendChild(d);
 
hm still i ends up as the last one in the loop
 
var d = document.createElement('div'), clickHandler = function(i) { display_tree(catergories[i].id); }
d.onclick = (function(i){ return clickHandler(i) })(i)
document.getElementById('cms').appendChild(d);
 
(Note the typo in the function name)
 
2:47 AM
meh
 
@phenomnomnominal yours executes straight away too
 
@Dave ... yer doin' it wrong, then
 
			var d = document.createElement('div'), clickHandler = function(i) { display_tree(catergories[i].id); }
			d.className = 'box';
			d.onclick = (function(i){ return clickHandler(i) })(i)
			document.getElementById('cms').appendChild(d);
 
Yep. Doin' it wrong.
 
not seeing the difference with mine and @phenomnomnominal
 
2:51 AM
There is no difference. He's doin' it wrong too.
 
oh lol
let me try your one
 
Do note the typo
 
i see it :P
you mean the capital H right ?
 
Ha, I'm stupid.
 
yep
 
2:52 AM
That's what I get
 
display_tree(catergories[i].id]); it don't like this semi colon "unexpected token ;"
 
... to the capital "H", not to @phenomnomnominal being stupid
@Dave Remove the last square bracket
 
wayy working :)
thanks
 
No problem
Do you see what's going on there?
 
not totally
the whole return function in a function is some crazy inception
 
2:54 AM
Yeah, it kinda is. But it's all a matter of scope.
 
would an add event listener be a neater option ?
 
You'd end up doing the same thing.
But addEventListener is preferable to .onclick
 
how come
 
There are probably other reasons, but the one that comes to mind is the fact that .onclick will clobber all other .onclicks that have been assigned.
Usually, that won't matter. But it could.
 
why would any one add more than one onclick to the same element
 
2:59 AM
Maybe they're mixing libraries, or plugins. Maybe different parts of the same application need to be notified of the same events.
There are reasons.
 
ah i dont use js libraries i just build my own
chat room is best way to get non jquery replies :P
 
document.getElementById('input').onclick = function() { alert('Bang!'); }; // Works
document.getElementById('input').onclick = null; // No longer works.
document.getElementById('input').addEventListener('click', function() { alert('Bang!'); }) // Works
document.getElementById('input').onclick = null; // Stil works.
 
Right
Also, if you're using document-level delegation, it's probably helpful
// first-module.js
document.addEventListener('click', function(
    // Check the target of the event
    // to see if you should do something
));

// other-module.js
document.addEventListener('click', function(
    // Check the target of the event
    // to see if you should do something
));
 
ah
 
 
1 hour later…
4:22 AM
Stupid CSS prefixes...
Wasting my whole day
 
should jquery be its own programming language SO seems to seperate it
 
That's appalling.
 
seems odd to me to see a library count as its own programming language
its listed here on their blog: blog.stackoverflow.com/2013/01/…
 
hey, has anyone used google maps v3 ?
no one?
 
4:42 AM
0
Q: Google Map Api Search Results

Scott SelbyI have an ajax call that is made that returns a list of latitude and longitude coordinates and I make markers dynamically to put on the map for each search result. Can some one point me in the right direction of how to make the list on the side of the map of each search result. Each result woul...

 
5:04 AM
@jAndy Did you know that Node has a similar mindset to NoSQL, just a different goal?
In related news: linuxatemyram.com
 
5:24 AM
 
Anu
hello every1.
Anybody knows about hightcharts ?
 
Evening folks.
 
5:56 AM
­
 
6:12 AM
hi all
 
hi all
this is not working
is any jqurey expert ?
 
They left.
 
u know abt that ?
@BadgerGirl
 
No, but @bushdiver does.
I'm going to sleep.
 
0
Q: How to connect with accdb via Javascript?

user79717How can i connect with Microsoft Access db, via javascript?. I want to read/write and update records via Javascript. Can anyone help me out of this?

 
6:28 AM
@Bracketworks : hi
 
Hi there
 
can u help me in ajax ?
I have one problem from fetch data from URL
 
6:46 AM
Hello
 
7:14 AM
hi
 
anyone wanna diagnose a problem for me?
 
sweet
 
@Charlie : I fetch data from URL
using ajax
but value is null
 
any idea how I can make why renewal drop down and page load at the same time?
how are you collecting data from url?
 
7:17 AM
can u give me personal id or can we do personal chat ?
because some confidential data
@Charlie : ?
 
yes
I invited you into another room
 
Hello
please can anybody help me with something
 
@RomanticElectron :yes
 
@NiravRanpara I want to make a suggestion while the user is giving input in a text area about the word being entered like the one that suggests users when I type in @ here
Any good tutorial link
I want to fetch the words from a specific list
?
 
Suppose I have a transparent png logo which I want to bleed over from one colored div onto another (giving an effect of it 'hanging over'). If I use absolute positioning, the hang is correct, but I can't get the positioning to remain relative to an 'anchor' div. If I set it to relative, the div which it's inside expands, thus removing the "hanging over" effect onto the other div. Any ideas?
 
7:32 AM
create a container for the 2 divs and position the logo accordingly
that way it will not move around on different screensizes
 
Morning all :)
 
I've been working around with that, but I haven't gotten very far yet. I'll continue to try...
 
make a jsfiddle of what you have
 
It's a bit obfuscated by jade, node, and bootstrap... it'd be a bit difficult to tidy up for jsfiddle..
 
m59
7:50 AM
I have 2 arrays of information...one of them needs to take preference in the output, so if it has a property, that property needs to be displayed rather than the other array's property. The 2nd array is a fallback if the first array doesn't have the information. Does anyone have a suggestion for a clean way to do this?
The only way I can think of is going to make a bunch of loops and ifs.
ah..I may be getting to sleep. I think jquery .extend does this perfectly.
 
8:02 AM
@m59 what about a foreach with a break within it?
 
m59
extend is super cleaner since I'm using jQuery already.
 
happy ninja
Hello!
 
8:14 AM
{"0":{"id":131,"Name":"Hello","fId":95,"email":"same@gm.com"},"1":{"id":172,"Name":"ABCD","fid":115,"email":"john@demo.com"}}

How can i iterate over such an object anyone ?
 
o/
 
m59
why is that not an array?
@user1537158 I can't see a reason for an object like that to exist (maybe I just don't know any better...)
	var foo = [{"id":131,"Name":"Hello","fId":95,"email":"same@gm.com"}, {"id":172,"Name":"ABCD","fid":115,"email":"john@demo.com"}];
	fooLength = foo.length;
	for (var i=0; i<fooLength; ++i) {
		console.log(foo[i].id);
	}
^^ that makes a ton more sense to me.
 
@m59 , i know silly me , actually i m using BackboneJS models , i should have simply returned a collection , extremely sorry for the foolishness
thanks @m59 anyways :)
 
m59
@user1537158 np
 
290
Q: Why do game developers prefer Windows?

M.SameerIs it that DirectX is easier or better than OpenGL, even if OpenGL is cross-platform? Why do we not see real powerful games for Linux like there are for Windows?

the accepted answer is useless
yet you can't stop reading it
Wow. I don't even care about most of this stuff and it's still a great read! — Peter Rowell Jun 29 '11 at 22:48
 
8:30 AM
0
Q: Wordpress video end function

vaibhavI need to trigger a alert box when video ends THis is the code i got from google <script> $("iframe[src^='http://www.youtube.com']").bind("ended", function() { alert("I'm done!"); }); </script> I am just using the oembed function of wordpress to play youtube videos I dont now w...

 
9:04 AM
0
Q: Reactive Programming on the Web?

DanielWith the rise of Node.js, Shared client-side and server-side languages, real-time web apps, why is reactive programming almost hidden? Frameworks like Meteor have started to expose this extremely powerful nature of imperative programming, but it seems like it's an extremely underused programming ...

 
hello, any one their i have question
 
m59
9:15 AM
go for it
I need to get to bed in a moment though
I can try to help quickly.
 
10:05 AM
Good morning.
 
Good evening
 
Good midday.
 
._. Damn you people who don't live at GMT -3
 
good 11h07
 
Good 3:37 PM
 
10:08 AM
8:08 ftw
 
Whoa. How are you awake already?
 
Because I work ._.
I wake up at 5:30am every workday
 
Wow, really?
 
Yep, things I do for a promotion..
 
I've woken up that early like twice, I think (on purpose. More if I count the times I had to piss)
 
10:09 AM
Haha
 
Morning all
did anyone ever used Reporting Service Configuration Manager @ SQL
 
0
Q: Why is that variables and hierarchy is not supported in css by default?

Yugal JindleI am somewhat new to UI development, but I am very much uncomfortable with how CSS actually works. My use-case : [ Attempted with css & less ] I wanted to apply some specific styles inside a particular div on a page. css attempt : div.class1 { font: normal 12px arial, helvetica, sans-...

 
@TimeToShine Yep.
 
@AndersMetnik Yes you got it right. Unfortunately I have to include IE8 in my list of browsers. Anyways I've a solution of storing values in cookies.
I've come across another problem. I want to use the clipboard data so that I can copy and display the copied data in some html format. Using the "window.clipboardData" I can do this for Internet Explorer and using "event.clipboard" I can somehow solve this problem for Chrome and Safari. I'm still not able to find a fix for Firefox. Any help or suggestion will highly be appreciated.
 
10:29 AM
@RupamDatta You could use a shim for older browsers and still use localStorage. Quite quick to write.
32
A: Copy / Put text on the clipboard with FireFox, Safari and Chrome

ineFor security reasons, Firefox doesn't allow you to place text on the clipboard. However, there is a work-around available using Flash here: http://bravo9.com/journal/copying-text-into-the-clipboard-with-javascript-in-firefox-safari-ie-opera-292559a2-cc6c-4ebf-9724-d23e8bc5ad8a/ function copyInto...

 
@FlorianMargaine Wow, nice
 
@FlorianMargaine wouldn't write any css without that anymore
 
that's nice too w3.org/TR/css-variables
ain't gonna need css preprocessor anymore :P
 
yep, but until that gets really implemented...
 
I could make a JS lib to support this today...
 
10:35 AM
or you could use a preprocessor :P
 
the problem of a preprocessor is that you need to run something
 
besides, there's a js-lib out there that supports this
 
and it's not css, it's something proprietary
 
@FlorianMargaine: thats indeed great news
 
well, looks like they go the same way though
 
10:37 AM
yup
still the same problem: you need to run it :P
 
that nesting example... you would write it exactly like this in scss or less
i don't need to run anything
that's what the watcher process is for :D
 
still, you know what I mean ;)
 
yes, of course
but i don't see a problem, really
 
my colleagues are kind of against using preprocessors
 
tell them to try it out anyhow
 
10:38 AM
they did
 
and they didn't like it? wtf?
what are they, masochists?
 
When your colleagues work on windows, they often are reticent to use scripts and build tools...
I just had to help my colleages include lessc in the windows version of our build chain
 
tbh, there are some less builders out there, that are terribly unreliable
WinLess for example
but i prefer scss over less anyways
simple ruby-process that runs in the background
 
I didn't took the time to really compare scss and less. What's better in scss ?
 
@GNi33 they had a lot of problems with them
also the fact that it makes you have 2 distinct sources
 
10:46 AM
@dystroy let me look up the article on css-tricks
 
@dystroy afaik, scss is more feature-complete than less
 
which makes less simpler to get
 
I had seen this article, it's the first google result
 
basically sass/scss compiler is just better at optimisation
@FlorianMargaine what do you mean by that?
 
10:48 AM
the less source and the css source
 
compiled css and your less/sass file?
oh, okay
 
which leads to tons of merging hells with svn
and no idea which one/how to tackle that
 
yeah, it can be a bitch when it comes to debugging, but source maps are on their way up
 
Right for the merging hell... even with git.. ^^
 
i don't see merging hell
 
10:49 AM
but they tackled it the wrong way imo
 
don't check in compiled stuff
 
yea that ^
 
the stuff that gets checked in is only less-files
 
I wasn't there when they tried it unfortunately
 
and we got a jenkins server with a compiler running for pushing stuff to a test-server
 
10:50 AM
the problem then comes with packaging when delivering
you have to include the preprocessing in the building process
 
Thanks for the quick response but I don't want to use the flash object. Any other way of solving the issue?

Thanks again.
 
yeah, and that's not that hard after all
 
yeah... we're not there yet
@RupamDatta Nope.
 
@GNi33 that might be the way to go. I've put the compiled CSS files in source control to make sure the packaging goes always right. It's harder when you manage tons of servers and tons of developpers...
 
i see it the same way as you would handle a compiled c++ - project for example
compiled files shouldn't get near your repository
 
10:52 AM
@FlorianMargaine okay. Searching for something more convenient.
 
On the principle, you're right, and I'll probably remove them in the end, but that makes lessc, wich is a kind of detail, an essential part of the build chain for all compiling environnements.
And it adds a few seconds to the compilation/deploying on windows. But I'll try to do this...
 
all this to say... I wanna try to write a JS library to shim the CSS hierarchies/variables
@dystroy say "detail" to these front end dev out there :P
it's really nice to cut down the CSS code.
 
yes yes... but when your backend is the process control of plants with AI, many data flows and so on, you don't like so much to make the build chain heavier...
 
11:10 AM
seperate frontend and backend-builds? at least that's how we do it
@FlorianMargaine less.js pretty much does that ;)
 
@copy Heh, tried mutt. Then, using a custom smtp server turned out to be a bitch.
@GNi33 less is too bloated compared to w3c proposals
 
anyone know of a good sitemap generator
that can work for an ajax site
 
(Yes, less is bloated. You won't hear that everyday.)
 
well, yeah, it has additional features though
and mixins are a great thing imo
but, nested css and variables are pretty much the biggest benefit of preprocessors
 
11:27 AM
how do I get my site to deal with escaped characters?
 
$('body').dealWith('it');
@Charlie Need more information to actually be able to help
Escaped characters coming from where?
 
sorry I meant escaped fragment
for googlebot
 
What does it look like?
 
11:43 AM
0
Q: Importance of 'href' attribute within an <a>

ZubzobI am aware of the 'content is king' seo rule, but I'm also wondering whether empty <a> HTML elements is a relatively big downside regarding SEO. To be more precise and actually cut to the chase, I want to use this javascript plugin http://kirkas.ch/ascensor/#/Home for a site. As you can ob...

 
11:53 AM
but, when we are talking about css - proposals... i'd be so stoked about a parent selector!
the syntax with the exclamation mark looks a little weird, but who cares
 

« first day (835 days earlier)      last day (4113 days later) »