« first day (555 days earlier)      last day (4388 days later) » 

12:00 AM
var fn = function(){};
window[fn] = "hi";
window["function (){}"] === "hi"
depending on browser :P
 
 
3 hours later…
3:57 AM
Hello, im having some terrible trouble getting a checkbox to work in a dojo datagrid
The data grid works fine, until i add the following to the layout: cellType="dojox.grid.cells.Bool"
then it throws the error: Uncaught TypeError: string is not a function
awww, jsut figured it out.
They example i had used quotes around it
when i take the quotes out it works: cellType: dojox.grid.cells.Bool,
 
 
3 hours later…
6:46 AM
-1
A: How to get the value of an unknown id using javascript

Argiropoulos StavrosYou should try attr $(this).attr('id'). Cheers

._.
 
anyone know of any free hosting service? i dont have cash to buy godaddy hosting so... need to test a site out
 
000webhost
 
do they have smtp?
 
> I'm well versed in javascript and jquery so I'm open to an answer in either language.
dunno
nope, not for free
 
no smtp :(
 
7:14 AM
@Yohann dotcloud / heroku / appfog / etc
 
Morning JS people. Just exploiting my newly earned privilege of talking here :)
 
congratulations :)
 
@FlorianMargaine Thanks :)
 
Make sure not to screw up.
 
I'll do my best ;)
 
7:24 AM
0
Q: Literal tabs in textarea

ManishearthAllows one to use the tab key on StackOverflow, Codereview.SE, and Programmers.SE in the editbox. Installation Click here to install. Will only work in Chrome or Firefox (the latter requires Greasemonkey). Source Usage Hit tab in an edit box. Instead of defocusing, the literal ta will be in...

 
@Raynos You saved my day !!!
Thanks again
 
7:40 AM
hello
 
8:22 AM
o/
 
hey Florian, how are you doing?
 
fine, what about you?
 
well, trying to stop smoking, i feel a little weird :D
 
hahaha
I've tried that countless times ._.
 
8:28 AM
yep, i hope i'll manage to make it this time :/
 
Hello, is there any way to get the number of columns created using CSS colum-width? stackoverflow.com/questions/10276359/…
 
@IswantoArif taking into account the window size?
man
 
@floria
@FlorianMargaine what does that mean?
 
8:57 AM
0
Q: Can we create a reference to DOM objects like document.location

SindhuAs we have a wonderful concept called hooking where we can create a reference to a function and connect another function In the same way can we create a reference to DOM objects. For example can we create a function and hook it to document.location so that whenever document.location is used the o...

 
9:41 AM
emmm .. guys .. can you explain to me why the target is different each time : jsfiddle.net/teresko/hvgBx/7
i mean when clicking on <button> VS clicking on <a>
 
I get img every time
 
@tereško you've looked with firebug how this was?
 
@FlorianMargaine , i get BUTTON vs IMG
 
on the left img?
 
9:45 AM
@tereško I get a different target in firefox. I guess it has to do with the event not bubbling up to the <a>?
 
for the anchor, the image takes the whole anchor, so you always get img
 
on the left one i get "BUTTON" in IE,FF and Opera .. but on Chrome i get IMG
 
oh
I get IMG or BUTTON depending on where I click on the left one with chrome
it's a matter of block level there I guess
 
Depending on your use, wouldn't it be nicer code to attach the event to the button and put image as background in the button?
.. since buttons happily work with click events
bbl. lunch :)
 
@tereško: I can also get A on the right button
when I click on this part
it's just a matter of css for me
there is too much margin/padding by default on the button, so it takes some place
if you reduce it, you have a much slighter chance to get BUTTON
 
10:00 AM
oh ..
damn
now i feel stupid
 
don't worry, everyone has this feeling at some time.
 
to crowdsource your bug hunting is no shame ;)
I've heard of Neuro for Mootools. I can find the repo (github.com/GCheung55/Neuro) but for the life of me I can't find any documentation or anything. Anyone have any pointers? It seems very interesting :)
 
@MichaelSørensen add an issue there github.com/GCheung55/Neuro/issues if there is no doc in the repo, it's surely because there is no doc whatsoever
 
@FlorianMargaine thanks :) well if someone had heard of it, I'd ask first before pinging the developer ;)
 
10:24 AM
IE9 knows how to do for-loops i suppose... :D
 
we know that for is faster than anything else, it's just way less semantic
 
IE9 just does a really good job with for loops
 
or maybe the person using IE9 has a good computer
 
10:40 AM
nope... :D
 
also, some has variable performance, just like every
depending on whether he finds true/false at the end or beginning of the array
 
ah, okay
 
> some executes the callback function once for each element present in the array until it finds one where callback returns a true value. If such an element is found, some immediately returns true.
 
10:56 AM
0
Q: How to set div width based on a set of dynamic images?

Chris MI have a set of 15 images that are stacked horizontally. They are completely dynamic in size based on the viewport size. To extend the page past 100% I'm using a DIV which needs to have it's width updated periodically with the widths of the 15 images + a fixed amount. I'm fairly new to javascri...

and noone finds weird the document.getElementById('#1') -_-
 
@FlorianMargaine herp derp I jquery, I use getElementById(selector)
 
heh, yeah. It's also a complete violation of the spec (ids can't contain a #), but Chrome doesn't seem to mind: jsfiddle.net/s2xgp
 
if i do a git commit those changes are final ? or can i keep rolling back to the first version of that file?
 
@Yohann you can roll back
that's why it's called version control
 
i did git commit -m "First Version"
git add .
git commit -m "Second version"
 
11:11 AM
Want a cookie?
 
now when i modify stuff in a test file
then do git checkout FILENAME
it rolls back to the second version the last committed version of the file
i tried a checkout again after that but its still the most recent committed one
 
Have you read what checkout does? linux.die.net/man/1/git-checkout
 
oh god, this is complex
 
No it's not. checkout restores a file to the latest commit
It's about reverting mistakes
 
thats what i was thinking, how do i get git to restore it all the way to what was there in the first commit?
 
11:15 AM
Get the commit id, and use git reset
1
Q: Reverting to a specific commit based on commit id with git?

prosseekWith 'git log', I get a list of commits that I have made so far. commit f5c5cac0033439c17ebf905d4391dc0705dbd5f1 Author: prosseek Date: Fri Sep 3 14:36:59 2010 -0500 Added and modified the files. commit c14809fafb08b9e96ff2879999ba8c807d10fb07 Author: prosseek Date: Tue Aug 31 08:5...

 
@Zirak thanks
 
Enjoy
 
:( struggling for a non-complex line of information so i can learn git without going through complex stuff?
hardly enjoying
 
They lied when they said that source-control is heaps of fun
 
I knew it!
 
11:23 AM
Take the red pill
2
 
11:51 AM
0
Q: How can i create a hook to eval functions in javascript

SindhuI want to count the number of function calls that are used to dynamically interpret JavaScript code (e.g., eval and setTimeout). My main intention is to find the strings passed as parameters to eval and setTimeout . This is because it is common for malicious scripts to dynamically evaluate comple...

 
12:05 PM
o/
 
\o
 
Hi @all i am facing a problem with IE8 using window.open function
can anyone help
 
it will be hard to help if you don't ask
 
Hi @FlorianMargaine
I am using javascript code inside a jsp page to get some information from another jsp
like this
<script>
var newWindow=window.open("test.jsp");
opener.self();
self.close();
</script>
error: test.jsp is being opened in a new browser asking a confirmation message to close or not;
expected behaviour is just the result has to be displayed
but jsp page is being opened
 
12:45 PM
@rlemon +1
@FlorianMargaine what should i make my blog like ?
Full scale only CSS or JS + CSS mixture ?
+ Single page vs Multi Page
+ last but not the least , theme :-( ?
 
depends on your target
and depends on what you want to do
and depends if you want it to be crawled by google
 
@FlorianMargaine you linked me Query !
 
I linked you a nice plugin yeah
I'll see if I can get it in vanilla js instead
 
@FlorianMargaine i dont need em
i can write em self :D :D
 
doing lots of UA sniffing :/
well it's really nice, you can fallback to $.animate
 
12:52 PM
if you have ten minutes read this: 6 Disasters Caused by Poorly Designed User Interfaces
 
@Abhishek So you're basically asking Florian Margaine, "hey, design my blog for me so that I'll only have to write code"
 
@Zirak yeah lolz
 
ohh can I get in on that?
 
actually i was seeing what he is doing
 
I fucking hate UI
 
12:53 PM
@rlemon how about UX ?
 
i'm opinionated. but usually just ask the us guys and do what they tell me
 
@Abhishek do you know how I designed my blog?
I searched "jekyll template" on google and took one of the firsts I saw, tweaked some bits, et voilà!
 
@FlorianMargaine no shit (XD)
@FlorianMargaine being a CSS warlord i like to make insane User Interfaces with CSS ..
 
RT @stevefaulkner: how to remove CSS outlines in an accessible manner? http://www.paciellogroup.com/blog/2012/04/how-to-remove-css-outlines-in-an-accessible-manner/ #HTML5 #CSS #accessibility
RT @stevefaulkner: wow! quick work by @arglazer Cross-Library accessible outline removal https://gist.github.com/2470682 #accessibility
 
@rlemon: damn I hate you.. I'm going to vegas next month and I have a 11 hour flight.. the story about that 4 digit display makes me worry now
:p
 
1:02 PM
@jAndy hahaha planes are safe
you should hear about the shit that auto makers let slip into production vehicles.
think of the PS3 - where 50% of the processors are expected to fail. now Imagine that type of accepted failure rate amungst automobiles.
 
@rlemon: I just had the discussion with my coworkers :p planes are safe on the paper and statistics... yay true story. The thing that makes me worry is.. you can have like 20 car accidents without any real .. damage or injuries whatever :) but.. in a plane you know
there can't be onnneee accident
pretty much game over
 
@jAndy same with shaving my junk.
 
@jA
 
but really... i'm not worried
 
@jAndy did you read that study that came out last weekend? Out of 53000 people who had been in plane crashes in the last 50 years (or whatever) 51000 survived.
 
1:05 PM
@rlemon: true, but there you're in full controll of what you're doing
I trust myself :)
 
also statistically speaking we (people as a whole) should be much more worried about annihilation from space in the form of a comet or asteroid. we are way over due for a big one.
like a couple hundred thousand years over due
 
> Your chances of being involved in an aircraft accident are about 1 in 11 million. On the other hand, your chances of being killed in an automobile accident are 1 in 5000.
 
also we're around the time of the yellowstone cascadia event (+- a couple hundred years)
 
killed in an automobile accident
 
Statistics are bullshit. Learn a bit of it and see how unrealistic it is when applied to reality.
 
1:07 PM
not just "injured in an automobile accident"
 
@user973810: where is that study? :p
 
> Your chances of being involved in an aircraft accident are about 1 in 11 million. On the other hand, your chances of picking a terrible JS library are 1 in 10.
 
@FlorianMargaine i am done with 1 part of my website!
 
That article mentions it
 
1:08 PM
jsfiddle.net/darkyen/66nbs/2/show/light <- this is wut they will get if they fall from IE
 
Also, if I'm not wrong, Vesuvius was meant to erupt long ago
 
basically there are two major players in total world destruction that we scarcely consider because we're not the ones doing the destroying. however a lot of scientists are starting to understand the real threat from these areas and they need more visibility.
 
@Abhishek I'd rather have you installing this chat.stackoverflow.com/transcript/message/3387365#3387365
 
@Zirak they're all a +- a couple thousand years... point is we dont know when. so we're left with like at best a couple months/year warning.
 
2 mins ago, by rlemon
also we're around the time of the yellowstone cascadia event (+- a couple hundred years)
 
1:09 PM
I'd do that if i wanted a professional website
 
what's that? google's not helpful
 
yellowstone will screw us all!
 
@FlorianMargaine basically all of yellowstone is one big volcano
 
O fuck
@rlemon its a SuperVolcano
 
we don't know when it will erupt next. but we know it's cycle is soonish.
 
1:10 PM
last one like them was Lake Toba
which was a moutain line before explosion now a huge lake
 
yellowstone is freaking huge though.
 
Toba was nearly equal
i have seen / read articles bout that :-('
en.wikipedia.org/wiki/Lake_Toba that the crator of Toba btw
 
@rlemon they estime Yellow Stone at VEI 7 ?
or 8 ??
 
oh it's over in US
 
1:12 PM
yea.. i'm not so worried about al gores convenient lie.. i'm more concerned about shit like this.
 
don't care here :p
 
@FlorianMargaine an erruption from this would be a world ender. global ash cloud.
the caldera is like 50 miles wide.
 
fucking americans, always screwing up the world :p
 
so @jAndy don't be afraid of crashing in your airplane... live every day in fear of the great volcano or being smashed to death by a comet.
@Abhishek can't remember.
VEI "ohh fuck"
 
@rlemon: yaaahh I'll try to be rational on that too :p
 
1:15 PM
@FlorianMargaine dont be happy you have one of those fuckers in Europe too
 
@FlorianMargaine it doesn't matter where you live. the last time this beast erupted the atmosphere was so full of ash and other crap, that no light was able to come trough for about 3 years
at least i read that somewhere, don't know if that's exactly true
 
damnit.
 
@FlorianMargaine yea these are one of those things where you almost want to be close to it. you'll die quickly instead of from poison atmosphere and no food/clean water.
or in space... i think i'd rather be in space...
 
geeks will survive since they don't need to get out.
 
but then the world would only be nerds. we'd be dead in a generation. no one would be reproducing.
 
1:19 PM
why? there are girls nerds too.
or we can keep some girls in our caves.
 
and the clones would suffer genetic degradation and in a few generations of them we'd be like the Asgard
 
smart?
who cares, we'll be the first, we'll still enjoy it
and we'll be dead
 
@FlorianMargaine yea i've seen some of these aforementioned "girls" and i think we'd be goners.
anyways enough of this now.
 
@rlemon turns out Toba > Yellow Stone
 
1:24 PM
user image
2
 
O_O
 
@rlemon wat ?
 
epic napkin
 
Does the other side have "Forever Alone" on it?
 
LOL
thats a great image
 
1:32 PM
Hi! Is anyone here familiar with jQuery.data() ?
 
we all are, what's up?
 
success: function (data) {
// calculator: add item
if (data.length == 1) {
item = $.tmpl("calculatorItemTemplate", data).appendTo("#calculator-items");
item.click(function () {
console.log(jQuery.data($(this), "item"));
})
jQuery.data(item, "item", data[0]);
console.log(item);
console.log(jQuery.data(item, "item"));
//
}
}
sorry for the format
but I need some code to tolk related
this is an ajax succes function
i use a template there to create some html
 
use ctrl + k
to format your code
 
thx, i did not know that
 
does no one see the 'fixed font' button
 
1:35 PM
my frustration is linked to the fact that the data i assign to item is not reachable when the .click function() is triggered
 
which button?
 
the click is binded to the html produced by the template
i have tested
with some log
the event triggers
but when I want to get some data, I get undefined
shouldn't this data be available on all scopes after assignement ?
 
Hi all
^_^
 
hi @Neal
 
hey @Neal
 
1:38 PM
The new website I am making looks crappy in IE....
Can anyone help me fix it so it looks close enough to the Chrome and FF version?
:-(
 
that girl is way too pretty for him
 
@Loktar haha thats me and my wife
 
:P
shit.. dude I was just joking
 
@Loktar :-P
 
you have a pretty wife.
 
1:40 PM
@Loktar ha thanks
^_^
but this site loooks sooooo crappy in IE... :-(
 
Ive only got IE8 here
ill check it out anyway
 
@Neal you could reduce the margin for the square when mouseover, because it creates some kind of noise..
 
@Loktar looks crappy in any IE
@Radu eh?
 
oh wow. yeah its pretty nutty looking in IE
 
yea, but it looks awesome in FF and Chrome
 
1:42 PM
sees jQueryUI, gives up all hope. goes to eat ice cream
 
@Zirak :-P I just wanted quick and easy
 
@Neal Y U NO WEAR STINSON?!?!
 
@rlemon say what?
 
@Neal nevermind. it's a specific make of hat. one of the doctors wore it in one eppy. I can't remember which season / doctor / eppy it was so it was just an epic fail.
 
@rlemon ahhh stenson :-P
 
1:46 PM
yea well typo's aside.
 
Just from a quick glance, you're duplicating several jquery calls (like .imgBox), have a useless .css call (selectedBox.css(...)) and using jQuery UI...without actually profiting (if that's possible.)
 
you type in which doctor wears the stenson and you get nothing (or at least my google doesn't like to give me results)
 
Hey there guys
 
howver I did find this epic tardis hat
 
@Zirak I am using .animate(...) all over the place in the start animation.
 
1:48 PM
ok now back to work.
 
@Zirak I dont care abt my js right now. it needs to be refactored. I just care abt the look in IE at the moment...
 
Who cares about IE? Just bitchslap them
 
@Zirak most people have IE (for some reason) So I at least want to cater to ie8+
 
54 secs ago, by Zirak
Who cares about IE? Just bitchslap them
 
1 min ago, by Neal
1 min ago, by Neal
@Zirak most people have IE (for some reason) So I at least want to cater to ie8+
 
1:51 PM
This doesn't seem to be going anywhere :P
 
:-P
 
ggaahh stop pinging me
 
@Zirak
 
Sam
Hello :) Anyone able to help me with an issue im having?
 
that depends on the issue you're having :)
 
1:55 PM
@Sam prozac is your friend.
 
@Loktar :-(
 
Sam
Im calling a function on click and on document ready and i have an error in one but not the other. Pulling my hair out over this!
 
so are mashed potatoes
 
?
 
@Sam ouch. that is what a barber is for...
@Loktar DIE IE DIE!!!
 
Sam
1:56 PM
This is my function:

function goToByScroll(id) { $('html,body').animate({scrollTop: $("#"+id).offset().top},'slow'); }
 
Well, since you gave the errors, the problem is obviously there
 
@Sam after careful consideration I can now see that your problem is being caused by having lack of 'Unicorn' in your body statement.
 
@Neal lol im with you on that
 
@rlemon lol
 
Sam
@rlemon Ill try that ;)
 
1:58 PM
"Please state the nature of the JavaScript emergency"
 
@Sam make a demo on jsfiddle.net or don't be stupid and use named anchors.
 
@rlemon I did that but now I get this: RangeError: Body statement too awesome.
 
Sam
@rlemon Ill make a fiddle
 
I don't need the page to smoothly scroll to the point - it can jump there and i'll be just as happy.
as long as it actually gets there
 
but its so much more smooth if you scroll it smoothly...
 
1:59 PM
also, if you understand what the jQuery there is doing... which it almost looks like you might... you really dont need jQuery for this...
 

« first day (555 days earlier)      last day (4388 days later) »