« first day (256 days earlier)      last day (4694 days later) » 
00:00 - 17:0017:00 - 00:00

5:02 PM
i wish thomas was here :P
 
5:15 PM
hmmm im still getting rep even tho im over 200. did they change the rules?
 
who's the highest rep person on SO
 
lookit up...
click on users and ull see
w00t im on page 18
 
@david whoa wth haha
 
user1385191
looks like you're being constrained by the "box model", so to speak, of each div
 
5:23 PM
@david nice.
 
@david starts going real slow when u move mouse over tho
 
@Neal get a faster jiggahertz
 
user1385191
that's really cool, though
 
it is cool
how does it work :-P
 
@Neal it uses magnets.
 
5:25 PM
@Nathan :-P
 
remove the 'show' from the URL to see the code in jsfiddle.
 
i know that
i dont feel like readin code
 
the code is pretty shit >.>
 
OMG
I WISH i could add this to my website :P
 
@LiquidNitrogen holy frak, don't
@david u wrote it?
 
5:26 PM
of course i wrote it :S
if you left off the blur (because it's horribly slow) and increased the throttle on the generator it isn't too bad
 
you guys make the coolest things in fiddle
 
user1385191
is it possible to do that all via canvas?
 
Canvas might let you get tighter packing
 
user1385191
yeah, I figured canvas would allow bitmap data hit testing
 
user1385191
so, pixel-perfect instead of box model
 
5:29 PM
You kinda don't know what pixels a letter uses till you draw it though
so you'd have to draw to an offscreen buffer type thing
could get tricky
and slow :o
 
hmmm
@LiquidNitrogen have you seen my baseball game?
 
there ya go
thats with no libraries
 
i dont quite get whats going on except a shit load of lines going down lol
 
@LiquidNitrogen haha its playing baseball
 
5:31 PM
RT @slightlylate: @dalmaer @rmurphey sorry, but not doing it right the first time (no hit testing? for serious?) just leads to low ceili ...
 
@LiquidNitrogen you can change the speed easily
 
I'm back - the OP to yell at for not understanding about Intervals ;)
just checking in to see if anyone has any ideas - the timeout is building up just like interval did.
 
@Dave post the Q
 
1
Q: Javascript setInterval "catches up" after page is minimized / away

DaveI have a pretty normal setInterval call (I think): var myInterval = setInterval("myFunction('passVar1', 'passedVar2')", 8000); It runs perfectly if I'm on the page, but if I leave the page open for awhile (or minimize it?), when I come back, it's like it just built up all the myFunction calls ...

 
@Neal I'm pretty sure I saw some post here about creating either a RegexHint or RegexFiddle site, but I can't recall exactly and my google-fu didn't seem to let me find it
 
5:33 PM
nice i like it :)
 
(I thought I was in the url bar, and wanted to go to the server running on localhost ><)
 
@ChrisMarisic just search for "regex checker" on google
@Dave my code here: jsfiddle.net/maniator/apfCt uses timeouts and it does slow down when your not in the tab, ive never saw that as an issue
 
user1385191
 
also it seems to run even if you are not in the tab
 
user1385191
written in flash by a local guy :)
 
5:37 PM
@Dave not nice to take away +15 :-(
 
@neal i like it but its more fun if the user can interact
 
@LiquidNitrogen haha thats not the point in it
@LiquidNitrogen how is that a baseball game??
 
its nto a baseball game
its a tower defence game
 
and that game doesnt work
full of errors
 
@Neal - i want to give you the answer - but it's not working
i'm using your code, and it's still building up while away
 
5:39 PM
@Dave so dont leave the page. what can i tell u. I have no fraking idea what ur code looks like
 
I've triple checked that there are no setIntervals anywhere
@Neal - I can't imagine you actually think I should mark "don't leave the page" as the answer
 
what browser are you using dave?
 
FF5
I'll check it in chrome
 
@LiquidNitrogen STOP UPDATING MY FIDDLE FORK UR OWN
 
5:43 PM
@david - same issue in Chrome
 
whats a fiddle fork?
im updating my own fiddle
 
@LiquidNitrogen no ur not or else it would not have the title of baseball game...
and my game is not supposed to be interactive, that is the point..
 
that is very weird....lol...where do you see the title of baseball game?
 
<- will be at JSConf.eu in October
 
nvm goti t
 
5:46 PM
@LiquidNitrogen in the title bar..... moron....
 
how do u like the car game?
 
u ddnt make it
i would like to see something u made. like i made the baseball thing. and i made jsfiddle.net/maniator/zXeXt
 
why not make that move box game into pac man lol]
or the snake game...
 
@LiquidNitrogen omfg....
BLOCKED
 
i dont see a reason for u to get soo worked up lol....relax its just code...
 
5:49 PM
@IvoWetzel cool.
Are you giving a Garden-style talk/tutorial?
 
@Nathan Nope, no talking from my side, we're just on side with the team
frankfurt berlin is just 3 hours since there's a direct non-stop train :)
 
@Dave when you load this page, does it do the same thing? (the numbers should be ~8000 each time) jsfiddle.net/c869Z
 
RT @brianleroux: LSD looks pretty great http://t.co/kj5hUwH ...wish mobile was a valid target for this type of UI dev. Someday it will be.
RT @sgalineau: I doubt any of this is what Asa had in mind but good things could come out of it, and not just for corporate users http:/ ...
 
@IvoWetzel that's so cool. My company's in recession and stupid mode and won't send anyone to conferences. But I got a chance to go to a [non-JS one this fall](www.nagios.com/events/nagiosworldconference/northamerica/2011) by signing up to give a talk, yay.
 
6:07 PM
@david - trying now - sorry for delay
 
muahaha
 
could it have anything to do w/ setting my timeout in a jquery $(document).ready function?
doesn't seem like it should, but....
 
probably not
 
@Nathan cool, but ASC3 doesnt work
 
it could well be just the browser
 
6:08 PM
@david - it's not doing it on your code
but - so far, I haven't been able to get it to repeat in jsfiddle at all - just on my site
odd, I know :/
 
do you have a live link to your site?
 
@david ive asked before...
 
I don't think I'm allowed to share it
will find out
 
@Dave OR: put the code in a fiddle with obscured text
 
@david - here's a good idea by @pointy: jsfiddle.net/4EGqt
@david - actually, i think I like yours better...hmm
 
6:11 PM
@Dave, eh... that will only work if the timeouts still fire while the browser is out of focus. If they don't fire at all then the correction can't happen
mine is just a simple example :S
i'm not sure how yours is working, but i suspect something wacky is going on
do a text search for 'blur' and 'focus' and see if there is any code that messes with the timeouts
you could also try alert(window.setTimeout); and check to make sure nothing has hijacked the native setTimeout function
 
@david lots to take in - I'll give some of these things a try - thanks
 
@david or he can show the code that he has already...
 
@Neal - seriously? It's not like I don't WANT your help
not sure why you're acting like I'm against you on this
I tried putting my code into a fiddle, and couldn't repeat the issue
 
yeah @Neal, not everyone is super happy about throwing their code around
 
no reason to show you if it's not doing what I'm explaining, right?
it's not even that - it's simple code - just... couldn't get it to repeat in fiddle
anyway - I appreciate your help @david - gonna try some of the suggestions
 
6:18 PM
no prob
 
@david, you should do jsfiddle.net/ctrlfrk/4k4Xb/6/show in canvas
 
woah - that's pretty sweet
 
Once I figure out a fast way to do pixel perfect collision detection I might
 
have you tried using setTimeout instead?
;)
 
@Dave did u see my baseball game that runs off setTimeout?
 
6:21 PM
@Dave setTimeout? who are you talking to?
 
true, text is a bit annoying to work with
 
@david - was just joking
@Neal - i did
and it was running just fine - no "tweaking"
 
@Dave did u see any lag with it?
 
nope
 
@Dave -- so there is no real way for us to help you if we dont see what u actually did
 
6:23 PM
@Neal - I can post my code in the original question or in a fiddle - but you're going to say the same thing I believe "that should work"
guess it doesn't hurt to try
 
we might be able to keep guessing, but it will be fruitless
 
sec
 
@Dave, put it into a fiddle..
 
@Neal the problem doesn't happen in a fiddle :S
 
@david how do u know?
 
6:24 PM
gonna put the code in anyway
 
he said so :S
 
@david (he ddnt try it)
 
are there any CDNs that host underscore.js?
 
@Neal - I did try - multiple times - as mentioned
 
@Dave can i see (your real code, dont put test code there)
 
6:26 PM
putting
sec
 
@Radu search for it here: cdnjs.com i think its there
 
@Neal thanks
 
nice
 
@Radu its a great site.
keep it in ur bookmarks
 
6:31 PM
@Neal indeed, seems to have all the popular libs
 
@Radu :-D
 
any way to make fiddle keep your css clean? when I paste, it looks nice, but then it auto-"fixes" and gets all cramped up and crazy
 
so I've got some code that makes use of the scroll wheel for zooming, but I just tried out a mouse that has huge acceleration (mac mouse) and it zooms way too much. I've tried normalizing (delta/Math.abs(delta)) but that didn't cut it. Think a debouncer is the way to go?
 
@Dave there are 3 parts to put ur code
@Radu no idea what u mean
 
yah - just talking about the css area - the rest looks great when it auto-tidy's
@Neal @david - YES!!! got fiddle to repeat my issue!
making link asap
 
6:38 PM
auto tidy first, and then paste the css
so you have the 'untidy' but actually more tidy css
 
works for almost anything
 
@david @Neal - jsfiddle.net/c869Z/3
(sorry - css looks crappy, but - doubt issue has ANYTHING do to w/ css)
and images are not appearing obviously
 
just tab out for 30 seconds, then come back
 
@Dave what is it supposed to do?
 
6:40 PM
@Neal - the link you just sent doesn't work
 
@Dave what is ur code supposed to od?
 
the one I sent, you should see a horizontal, rounded rect with 4 thumbnail areas to the right
there is a thumbnail border that should move to the next thumbnail every 8 seconds
 
@Dave i see that. what is ur code supposed to do?
i dont see an issue with it
 
right - tab out for 30 seconds+ and come back to it
it will then scroll quickly (about every 1-second) until it "catches up"
 
oh, it's the animation that's doing it
 
6:41 PM
@Dave oook, why arent u using any plugins? ur code looks messy (im in my 30 seconds right now)
 
@Neal - I'm new to fiddle - I thought i included jquery in it
 
jquery 1.6 updated the animations module to use requestAnimationFrame, and iirc that doesn't get called if the browser window is hidden
 
@Dave u did
but u ddnt use any plugins, ur code is messy
 
@Neal - don't konw waht you mean - my css looks crappy, but rest looks clean on my screen
@david - reading / tryig to understand
 
@Dave lol the js is hard to understand
what is this whole part:
var wdgt_rotator_numThumbs = 0;
var wgt_rotator_articles = new Array();
wdgt_rotator_numThumbs++;
wgt_rotator_articles[0] = new Array();
wgt_rotator_articles[0]['id'] = '302';
wgt_rotator_articles[0]['title'] = 'Test title 1';
wgt_rotator_articles[0]['subtitle'] = 'subtitle blah blah blah';
wgt_rotator_articles[0]['photo'] = 'article52056009_810826.jpg';
wdgt_rotator_numThumbs++;
wgt_rotator_articles[1] = new Array();
wgt_rotator_articles[1]['id'] = '253';
wgt_rotator_articles[1]['title'] = 'Test title 2';
 
6:43 PM
that's stuff that's made via php
it's just keeping the titles/subtitles/article ids in arrays
 
@Dave ahhh haaa... you might want to make that better (and there are way to do it)
 
ok - but that's not issue atm
 
@Neal Y U SPAM
 
appreciate pointer though
 
why was that flagged?
 
6:44 PM
If it's neat in the php then it's fine neal :P shush
 
@david - so.... i'm using animate wrong?
sorry - trying to understand what you wrote
 
@Dave no, you're doing it fine. The problem is because of an internal change in jquery
if you revert to 1.4.4 you will see the problem go away
 
@Dave u need to fix the animate. you should wait to call the setTimeout until after animate is done
one min ill try to fix
 
@david @Neal - cool to both
i'd rather not revert if I don't have to - but good to know it's not me going crazy either
 
Yeah reverting is bad, it's just to show you that the problem is in jquery, not in your code
 
6:47 PM
@Dave one sec making fiddle going out for 30 secs to see if i have the same issue
 
tySVM to both of you
 
@Dave issue is gone :-) : jsfiddle.net/maniator/c869Z/5
i moved the setTimeout to the animate functions. and i added a var to the function called animateDone
might want to lower the settimeout time
also make a vaiable for delay instead of having to type 8000 in 3 places
@Dave let me know if that fiddle is good
 
perfect - will try now
 
@Dave u see the changes?
 
opened it and tabbing out
 
6:50 PM
@Dave kk ^_^
 
awesome - I see where you put the timeout, and it seems to be working!! thanks very much!
 
@Dave u owe me $42.42 plz ^_^
 
@neal - have to take off for 20 min, but will implement when I get back - can't wait!!!
agree - I'll put in a request w/ my work ;)
thanks very very much
biab
 
7:09 PM
@raynos i redesigned my website today...thisi s nav so far (i need to update the links in nav) dev.icalapp.rogersdigitalmedia.com.rogers-test.com/menutest.htm
 
user1385191
5
Q: submit is not a function in javascript

Jin YongDoes anyone can tell me what is going wrong with this code? I tried to submit a form with javascript, but error ".submit is not a function" shown. See below for more details of the code: <form action="product.php" method="get" name="frmProduct" id="frmProduct" enctype="multipart/form-data">...

 
user1385191
this needs to be drilled into the brain of anyone who ever writes an HTML form
 
r u referring it to me?
Thomas wrote my submit button lol
 
user1385191
oft-forgotten is that you can navigate the document.forms collection via names of form elements
 
user1385191
so when a form element is given a name attribute/property of "submit", form.submit becomes that element instead of a method used to submit the form
 
7:22 PM
AH ping
who what
 
7:38 PM
0
Q: Prototypical OO in JavaScript

RaynosI've been toying with doing prototypical OO in JavaScript lately and find that 99% of OO done in JavaScript is forcing classical OO patterns into it. My take on prototypical OO is that it involves two things. A static prototype of methods (and static data) and a data binding. We don't need facto...

My take on prototypical OO
 
user1385191
I'll be watching it with interest.
 
It would be nice if you can just do it that way. It's a free ORM ;)
 
7:51 PM
Wasn't there a question on Meta a while ago about using SO as a blog?
I seem to remember that the answer was "Yep. That's a cool thing to do."
(paraphrased)
 
Is my question a blog post? :p
 
@Raynos Slightly :-)
I was just wondering about the conflict between writing blog posts on SO, and closing questions as "not a question"
 
@conceptlogic Woot! Glad you can make it -- should be good times :)
 
It's more of a "Here's my look on this subject" What' are the pros/cons of this attitude
 
@Raynos But isn't that "subjective"?
 
8:00 PM
Not really
I outlined 5 specific questions
 
@Raynos Honestly, I like your question. But halfway through, I was all "Huh, I wonder where the question is"
I upvoted
 
I see your point though
I did place the actual questions at the bottom
 
@Raynos if you have 5 questions in 1 question, maybe it can be split up?
 
@ChrisMarisic maybe but there all related.
There's too much tight coupling
 
@Raynos My point isn't so much about your question in particular, but about using SO as a blog in general.
 
user1385191
8:01 PM
you might want to add some question marks to your questions :)
 
@RyanKinal I know what you mean, it's border line
 
@RyanKinal honestly i think thats something really SO should encourage more, too many questions get closed that would be great discussion articles
 
@Neal - got your code implemented and it's working - thanks again
 
but i suppose some of that could be argued its better for programmers or code review /shrug
 
@ChrisMarisic Agreed
 
user1385191
8:03 PM
the problem is
 
user1385191
this is a Q+A site, not an RSS feed
 
didn't need the if(animateDone) check, but - works perfectly
 
@MattMcDonald i don't see the advantage to pushing away discussions that are relevant and on topic
 
user1385191
what's stopping SO from adding forums for every topic?
 
user1385191
you have to draw the line somewhere
 
8:05 PM
of course i just generally view just about nothing should be removed from the internet unless its spam, completely off topic (I count show me the codes in this one), or duplicate
 
@MattMcDonald I suppose that's what "community wiki" is for, but the Meta post (which I honestly haven't looked for during this conversation) said that users should be getting rep from their good ideas.
 
@Dave ur welcome
@Dave you do need it or it will call the setTimeout twice
 
@MattMcDonald I'm not a fan of drawing arbitrary lines, if its on topic and relevant i see absolutely no negative. i see many negatives for stifling discussion
 
@Neal - I only put the timeout call in one place - on the thumbnail animate
 
@Dave oook.
 
8:07 PM
unless the justification to intentionally limit use as a means to save money or something but i'd call that short sighted
 
@Raynos ur moving up
 
@Neal ?
 
@Raynos on ur oop question lol
 
Ah yes.
 
0
Q: Use of Javascript with Dojo/Diji on a WordPress page

NealWaltersI just created a web page that uses a lot of JavaScript to build a fancy form that helps build an build the object/html behind an mp3 player for a user. I got it working and tested in a plain-html page outside of WordPress. I then copied into a WordPress "page", took out the <head> tag, ...

 
8:25 PM
@Raynos I actually have some interesting thoughts on Prototype (Object.create) based programming in JS, but I'll be gone for the next 5 days or so (starting in about 5 minutes) so I won't be able to immediately put them down in your question.
 
hey guys, i am trying to no longer keep my css code in my homepage code but instead import the code in from a css sheet....but when i try some weird stuff happens so im not sure what to do: dev.icalapp.rogersdigitalmedia.com.rogers-test.com/…
its suppose to have a black background and the borders around menu should be different format
 
moron
remove the <style> from the css file...
AND all html from the style sheet
there is no html in a style sheet
 
and fix the bit in the head that links to the css file:

<link rel="stylesheet" href="style1.css" type="text/css" media=">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
it worked except the blur is gone
 
@RyanKinal Thats cool do it when you have time
 
8:33 PM
@Raynos I've decided to attempt to write some of it down while I'm thinking clearly about it
Is it me, or do all traditional Object-Oriented examples kinda suck (chair, person, animal, etc.)?
Actually, animal isn't too bad.
 
user1385191
meh, I just use A > B > C
 
;_;
Object composition
Object inheritance gets silly
is the best
Unless its used properly
For example every entity shares a single event emitter so that's cool to be in the inheritance chain
 
8:48 PM
anyone know anything about jQuery's tablesorter plugin?
0
Q: jQuery tablesorter comma parser

NealThis is an offshoot of JQuery TableSorter Comma-Digit Parser not working I want to be able to sort with that parser, but i do not know which column the numbers are in. I have dynamic tables and some tables have more or less columns than others. And some table do not have numbers, whereas other...

 
user1385191
I should write a quick table with bubble sort support
 
...
 
0
Q: Javascript to open new window

NealWaltersI'd like to have a link open in a new pop-up browser window. In non-WordPress with JavaScript I would do it some like this (but I would add some underlink/color to make it look like a link). My Video Blah Blah Blah enter code here In WordPress, this shows up on my page like this: onClick="m...

 
user1385191
lol
 
ha
 
user1385191
9:04 PM
it's amazing just how complex tables are
 
user1385191
did not know about HTMLTableSectionElement in the DOM
 
9:16 PM
@Raynos My answer is incoming. phew
It's a bit of a novel -_-
 
i fixed it. i had to edit the tablesorter plugin...
 
@RyanKinal thanks :)
@RyanKinal do you have a blog?
never mind
 
@Raynos I do, yes. And I'm considering dual-posting my answer on my blog. Because it's actually kind of comprehensive.
Also, my entire site needs a redesign.
And I need to post more
blah blah blah every blogger says that
Anyway, give it a look. I think it makes some good points
And vacation starts now :-)
 
9:33 PM
@RyanKinal actually left a comment :)
 
There's got to be an easy way to hook up your SO feed to your blog.
 
9:52 PM
fishin
@gsnedders u ruined the fish
ha
 
it's like those joke arrows through the head
 
10:17 PM
@Nathan fantastic idea
I'm gonna do that ASAP
 
10:38 PM
hmmm chrome console keeps freezing
 
kick it.
 
10:54 PM
ouch
 
did that work?
 
anyone know why this does not return the string 'Dunkin'?
extract_last_name : function(full_name,identifier){
left_name = full_name.substring(0,full_name.indexOf(identifier));

last_name = left_name.substring(left_name.length, left_name.length - left_name.lastIndexOf(' '));

return last_name;
}


alert(extract_last_name('ROGER P DUNKIN &W CLUADIA L','&W'));
I know tha the function is in object literal format, and the function call does not get invoked on object, but I just extracted that stuff for convenience.
 
what does it alert?
 
OGER P DUNKIN
 
user1385191
11:15 PM
my boss has an OOP ActionScript 2 book I was just briefly skimming through
 
user1385191
it had a bit that compared classes in ActionScript 1 to 2
 
user1385191
classes in AS1 are identical to JS
 
@JohnMerlino because you have a space between DUNKIN and the &W separator
is AS1 based on ECMAscript?
 
user1385191
yes
 
user1385191
at the time, the var keyword was only for "local" variables
 
11:21 PM
thanks for respose. So I guess I have to manually create a trim function
i know jquery has trim, but for one little piece of script, not worth using whole library
 
user1385191
trim as in trimming whitespace from a string?
 
... I would just use jQuery for the cross-browser implementation
 
yes, although I dont think trim is the issue with that function I posted above.
 
alert(/(\w+)\s*&W/.exec('ROGER P DUNKIN &W CLUADIA L')[1]);
 
user1385191
var ws = /^\s+|\s+$/g;
 
user1385191
11:28 PM
I could probably improve that, but I'm in a hurry
 
those are pretty good
 
0
Q: Dijit in WordPress - Alignment Follow-up

NealWaltersBased on help here ( Use of Javascript with Dojo/Dijit on a WordPress page) I got Dijit half way working using a custom template. But, I still can't figure out why WP inserts breaks where it does. I'd like to keep as much of the page in the WP Page, and as little in the template as possible. W...

 
00:00 - 17:0017:00 - 00:00

« first day (256 days earlier)      last day (4694 days later) »