« first day (255 days earlier)      last day (4680 days later) » 
02:00 - 19:0019:00 - 00:00

2:48 AM
RT @beverloo: Flexbox, Web Sockets, inclusion of WebRTC and Smooth Scrolling http://t.co/jbwMV9T #Chromium #WebKit
RT @kylebarrow: Paper.js, a wickedly cool open source vector graphics scripting framework: http://paperjs.org/
 
3:25 AM
RT @HTML5Grind: Another reminder — HTML5Grind.com needs contributors. Like #HTML5 #gamedev and want a soapbox? Email editor@html5grind.com
 
4:17 AM
GUYS
I CANT SLEEP AWAKE FROM 32 hours so frustrated I cant make up my mind what to choose for my website color layout!!! I need your help choosing
anyone awake at this time?!?!
ive finallly narrowed down to 12
i need help choosing!
 
RT @ChromiumDev: How To Use IndexDB - Here you got some code and basic examples: http://goo.gl/aVFb9 #HTML5 #Chrome #FF ^gi
 
 
3 hours later…
7:22 AM
RT @janstandal: Opera 11.50 is out: New design, new extensions, more HTML5 support, improved performance for CSS and SVG and more. www.o ...
 
7:32 AM
o/
 
8:26 AM
RT @pornelski: W00t, there's a chance we'll have some interoperability in web app packaging (maybe extensions too?) http://t.co/ujx41d9
 
8:53 AM
posted on June 28, 2011

I have no idea if this is going to work. I’ve never tried it before. But if I never try I’ll never know, so here it goes. And I’ll give you fair warning: there’s a blackmail aspect to all of this. <breath type="big" /> I’m seeking to raise € 2,500 in donations. Before the end of this year. Let me explain. Currently I’m going through one of tho

 
9:29 AM
Brent Fulgham: WebKit SDK updated http://goo.gl/NVsrZ new Transparent Web View support, , improvements to JS engine, rendering, perf, memory
 
 
2 hours later…
0
Q: JQuery UI button and some calculations

CalumI'm using JQuery and Jquery UI (latest versions). I have a list of checkboxes styled using JQuery UI as buttons. Each have a data-price attributem containing a price in this format: data-price="40.00", data-price="25.00" etc. When the user "checks" a box, I am adding it's data-price to the tot...

 
12:18 PM
RT @ChrisBowen: Internet Explorer 9 Developer Tools Deep Dive - Part 4: Profiling JavaScript - http://bit.ly/l4gVtm #IE #IE9
 
Does a ECMAScript Harmony to ES3 compiler exist? If not should we write it? This would be a great SO js community project.
2
 
i find some gigantic irony in that statement
after i've seen more about harmony the past week than i have before and reading one of its purpose is to make js a better language to compile down TO
of course that right there shows me how archiac a language is
I code in C# for the same reason I don't write MSIL or assembly
 
@Raynos , can JSON contain executable function definitions ?
( the JSON is returned from webserver )
 
12:37 PM
@teresko yes/no
Function.prototype.toString returns javascript source code in string format
Basically you can't encode functions as datatypes in json
but you can serialize it
Tbh it's one of the worst ideas ever
define your data as raw data
then write a wrapper on the client and the server
 
ok
 
I.e. write a class and populate the class with the data.
 
another question
 
Object.create(somePrototype, JSONdata)
 
I seem to have developed something of a race condition
 
12:39 PM
0
Q: Ecmascript:Harmony / ES6 to JavaScript compiler

RaynosAfter reading Peter's article on JavaScript I noticed Brendan Eich stated that one the goals for Harmony is to be a better target for to-JavaScript compilers. There are currently two popular compilers with some vague ES:Harmony compliance: Tracuer CoffeeScript Although coffeescript has ...

@teresko impossible, js is single threaded
unless your using web workers
 
well , it is similar problem , that's why there were words "something of"
i have animation going in parallel with data request
and i should not display the retrieved data before animation has been complete
 
jQuery ?
 
is there some "recommended solution" for such situations
mootools , but pure-JS would be the best
i need a solid idea , how to make a solution , and not a "magic function" which does it for me
 
Implement promises / deferred
 
yeah .. i was afraid you will say it
 
12:44 PM
var animDef = new defer;
var xhrDef = new defer;
doAnimation(... , function() { animDef.resolve(); });
doXHR(..., function() { xhrDef.resolve(); });
when(animDef, xhrDef).then(function() { /* handle data */ });
I recommend Futures
The standard js way to do this is to use a counter
or _.after will work aswell
var handleData = _.after(2, function() { /* handle data */ });
anim(..., handleData);
xhr(..., handleData);
That would be the easiest way to do this.
 
@Raynos Some parts of Harmony are pretty stable, others aren't.
 
by others aren't you mean strawman?
 
12:58 PM
@Raynos Even some of the proposals are less stable than others.
@Raynos All that them being proposals is there means there's rough consensus that the feature should be in, not that every last detail is final.
 
That makes sense
Do you think it's worth working on an ES6 -> ES3 compiler?
I wouldn't suggest actually using the compiler in production before ES6 is stabilized.
 
@raynos there is a typo in the link text for "traceur"
 
Thanks
 
and by the way, that would be awesome
I was thinking, is there a way to include directly coffescript from a web page and to the compilation on-the-fly ?
 
@Raynos Not to be pedantic or anything, but I think the correct spelling is ECMAScript, with ECMA capitalized
 
1:05 PM
Or is ES6 too unstable to work on this now. I basically want a full compiler ready when the ES6 spec is finalized
 
@Raynos <https://github.com/mozilla/narcissus/> may be of interest
@YiJiang It is indeed.
 
Fixed both typoes
 
in the way traceur seems to do
ok nevermind, it's in the docs
 
1:26 PM
Yes Traceur does a subset of this
But I don't know whether that project aims to become a full ES6 compiler
 
is there a build-in function for comparing two array ?
i want to check if array X is a subset of array Q
( i kinda suspect that there isn't such function )
 
@teresko i.e., every member of X is in Q? Treating the two as sets?
 
yeah , something like that
 
@teresko Nothing built-in
 
k
 
1:30 PM
@teresko You'll be pushed to come up with something better than O(n^2) where n is the number of members in X, I think.
@teresko (Obviously you can optimize a few simple cases like if (X.length > Q.length) return false;)
 
hmm .. i could replace array with object , and put values as parameters
 
@teresko If everything in the array is a string, or everything in the array has a unique stringification
 
they are identifiers for "completed operations"
i need to execute something , if all the prerequisite asyn functions have been completed
its for 2 .. 4 functions running in parallel
 
@teresko Well, yeah, then using an object for Q should work, as then you can just use hasOwnPropety, so it'll be O(n)
 
btw, on the same subject
can you suggest a name for such structure ?
because the current "Exchange" seems ill-fitting
 
1:47 PM
Queue
Delayed
 
hey guys
im having a very hard time choosing what my websites colour will be...can you help me out
 
RT @annevk: Replacing mutation events: http://t.co/UMk7v3N #domcore #pleasereview
RT @souders: new blog post: Unexpected Reloads in WebKit (be careful how you test primed cache in Safari) http://t.co/GCc6Sfx
 
2:02 PM
@Raynos , actually i chose "Funnel"
 
@kbok Yes, but it's not recommended for production. jashkenas.github.com/coffee-script/#scripts
 
@ErrorErrorError Why would you come to a forum full of JavaScript programmers for graphic design advice? ErrorErrorError indeed ...
 
Was there not a Colorblind JavaScript programmers chat? I mean, as long as you're looking for the worst place to ask. :-)
 
got it thanks
 
This is one of those morning when I feel there needs to be a stackexchange site for how to copy and paste answers out of stackexchange pages.
 
2:14 PM
In other words, a morning.
 
@Pointy Fair enough. A lot of crap questions?
 
@codelahoma Just to enforce the non recommendation. I highly recommend against doing that.
@Pointy There really should be.
The amount of questions you can answer trivially with a re-direct
That should be a feature request. Redirects.
I guess it's the same as close as duplicate.
 
Fine question with clear one-line answer that the OP can't seem to get right.
 
@Pointy do you know of a ES5/ES:next/ES:Harmony to ES3 compiler?
 
@Raynos No I don't - I did see your question. I always like your questions but I never know the answers :-) I saw Eich at TXJS a couple weeks ago, talking about Harmony, but he didn't mention anything other than an allusion to Coffeescript
 
2:25 PM
@codelahoma yes, I can see why. But it is really more handy when you're under windows
 
@kbok I assumed that was why you were asking.
 
@Raynos There's an ES5 to ES3 one, at least. Somewhere.
 
hi all
 
2:40 PM
@gsnedders where
@Pointy that's because I google before I ask my questions ;) Most js questions can be answered with trivial research :(
2
 
Hi @Neal
 
@RyanKinal hey
 
3:07 PM
0
Q: What is a better (more testable) way to structure this page-specific JS?

Joshua PoehlsI've created this (very) contrived example that demonstrates how we currently organize page specific JS in our app. Basically each page has a matching JS file that uses the module pattern to enclose page specific behaviors. Each module has an init() function that takes control IDs and wires up ev...

 
3:17 PM
<[^>]
 
Does @Feeds send here every post on Code Review ?
 
@kbok And a few other sites
 
@RyanKinal Not Stackoverflow ?
 
@kbok Nope
Too much spam
 
Ok
 
3:18 PM
Just out of curiosity, could somebody else type in the string <[^>] and send it?
 
<[^>]
omg
 
:-D
 
Is the firefox crash intentionnal ?
 
No, I don't think so
 
that will be a funny bug report :D
 
3:22 PM
So, I was trying to figure out how to write a script to simplify replies, and I stumbled upon Eggs.js
There are several different Easter Eggs. One of which is the Cthulhu egg... which you just saw.
 
<[^>]
 
I think it only gives you one at a time, and I don't know when it changes
 
yeah
from bobince's post I think
 
15
Q: What Easter Eggs do the chat sites have?

MosheAccording to @balpha, he SE chat sites may have individual Easter eggs, depending on the site. If you find them, please post. Edit: Because it's so easy to make this stuff up, a screenshot as proof would be nice. (Although Photoshop ain't that hard either...)

 
Lots of unrendered Unicode in Chrome.
 
3:24 PM
Yeah, saw that
Also, recently discovered that Chrome has a feature that unobfuscates code
Which kinda rocks
 
<[^>]
when will it stop
 
After about 20 seconds
I think
 
under FF5 on windows it crashes
 
You should definitely file a bug report on that one
 
anyone how I can position an iframe on my website?????
im trying this but it isnt working


#inneriframe
{
position:absolute;
top:-412px;
right:-318px;
width:1280px;
height:1200px;
}
 
3:31 PM
@ErrorErrorError You're trying to position it outside the viewport? That's a little sketchy.
 
top and right negative ? what are you trying to do ?
 
user1385191
width and height before position
 
nvm i got it....I guess since Align works for me ill just use that
although position would of been better for more accuracy
 
user1385191
I try to go width/height > margin > padding > border> misc > position
 
user1385191
although another convention is to just declare alphabetically
 
3:33 PM
im trying to make that calendar go right on that black part
any ideas how to move it?
 
user1385191
...403 error
 
You don't have permission to access /display/rdmpublic/On-Call+Schedule on this server.
 
thats how it looks
the white box at top is an iframe
sad..but i used <br />
 
user1385191
3:57 PM
wishes the CSS room was popular
 
i know lol...sucks that iti snt
 
lol
 
do most ppl not do Webdevelopement?
@Neal how do you position an iframe?
Align= Right works but i want to specify exact location
 
user1385191
...and people still can't tell the difference between attributes and properties
 
4:11 PM
@MattMcDonald attributes are the physical values you set on the tag? wheras properties are the corresponding (as well as additional) values in the DOM?
 
user1385191
yes, attributes are initial values
 
cool.
 
see @MattMcDonald's answer:
59
Q: .prop() vs .attr()

NealOk. So jQuery 1.6 has the new function prop(). $(selector).click(function(){ //instead of: this.getAttribute('style'); //do i use: $(this).prop('style'); //or: $(this).attr('style'); }) or in this case do they do the same thing? And if I do have to switch to using pro...

doesnt all have to do with jQuery
 
user1385191
it's a vital part of the DOM
 
user1385191
it baffles me how unknown the difference is
 
4:13 PM
lol
it is..
 
awesome. @MattMcDonald you're a genius.
ah gotta run for lunch. later guys.
 
user1385191
please don't ever call me that again
 
@MattMcDonald HA why?
 
lol im not trying to set width or height im trying to position
 
Man I hate spending a long time on an answer to have it just sit forever.. never voted on or checked again.
personally I hate the new prop/attr
 
4:22 PM
posted on June 28, 2011

Wow. This morning I launched a donations drive that was supposed to net me € 2,500 in, hopefully, a month or two or so. At least that’s what my “sensible” average projection was. Instead, it netted me € 3,200 in about six hours, and donations are still coming in. Thanks, all. Awesome. Humbling. Scary, even, in a sort of way. I mean, I have to be extra good and stuf

 
I want my stuff to be correct so I find myself having to look up if its in fact a prop or just an attribute.
 
user1385191
the 1.6.1 prop/attr or the 1.6?
 
I guess the 1.6, thats what broke everything right? 1.6.1 you can just use attr and itll work right?
I just get annoyed having to look up if I need to use attr vs prop I guess. But I should learn to distinguish between all of them anyway. Just dont want to get called out by someone saying "Oh that should of been prop noob!"
 
user1385191
1.6.1 was a step back to the old way
 
user1385191
1.6 was a step in the right direction, even if it broke code
 
user1385191
4:27 PM
there's far too much magic that goes on in that code
 
@MattMcDonald you're a genius ;)
 
@Raynos lol
 
Would you be more offended if I called you a Mac Genius.
 
user1385191
4:42 PM
I got my first taste of compsci last night
 
user1385191
helped someone with their python homework
 
Sr. Genius
 
RT @GoogleCode: Just launched in Google Labs: Swiffy, an SWF to HTML5 converter. Read about it here: http://t.co/flysVTO ^sk
 
user1385191
python doesn't do pre or post increment/decrement operators :(
 
does it have combined assignment (eg +=)?
 
user1385191
4:48 PM
yes
 
not quite as bad, then.
 
user1385191
it threw me a loop (infinite, that is) when I tried to do recursion because of that
 
<div class=iframe><iframe id=content_iframe marginWidth=0 marginHeight=0 src="http://confluence.rogersdigitalmedia.com/display/rdmpublic/On-Call+Schedule#" frameBorder=3 style="700px; width:540px; height:440px; right:300px;" ></iframe></div>
that should work yes?
 
ruby doesn't have pre or post increment either.
 
user1385191
#iframe iframe /* anyone see anything potentially wrong here? */
 
4:50 PM
its working i just cant align it to the right side
 
use position and right
 
ive tried that many times
it goes to the right but i dont want it sticking to the right border
 
so add margin. or dont do right: 0 lol
 
Dangit beat me to it @Neal (answer on question for doc.ready)
 
5:12 PM
@Loktar ha
i like how people like making comments how ur answer is wrong, but dont put up their own answer to counter it...
 
user1385191
not everyone has time to make an answer
 
.... so dont make comments...
or make a comment that would help update the answer
 
user1385191
...
 
I agree with @Neal if you down vote you should at least say why.
 
user1385191
I thought this was about negative comments, not downvoting
 
5:15 PM
ah I misunderstood
I assumed he was downvoted if it was wrong
 
ehhh well both
but mostly on comments
even if they dont downvote
 
user1385191
I leave lots of comments, but I try to point out exactly where someone is wrong and do it without coming off negatively
 
user1385191
because most of the day, I don't have time for an answer
 
i guess
 
6:13 PM
Ooh, it worked
$(function() {
	$('#input').keyup(function () {
		var $input = $(this),
			val = $input.val(),
			$messages;

		if (val.charAt(0) === ':' && val.length === 1)
		{
			$messages = $('.message').click(function() {
				$input.val(':' + this.id.replace('message-', ''));
			});
		}
	});
});
 
@MattMcDonald on "genius" sorry. :)
 
If I were to write a compiler should I use an existing js to js compiler?
@Neal don't be a dick :D
 
@Raynos ??
 
Dont complain about people telling you your doing it wrong
Dont complain about anonymous down votes
if your doing it wrong then stop that and do it right
 
@Raynos it is allowed there is nothing agaist asking why the downvoter downvoted when they left no comment
 
6:25 PM
No.
But the downvoter does not have to explain himself
> .... so dont make comments...
Nor do you have any right to insist they are not allowed to tell you your doing it wrong
¬_¬ I see this mutany.
 
@RyanKinal whoa formatting
 
Pasted in the wrong place, lol
 
@Raynos Indeed. "Why the down-vote?" comments are pretty much just noise anyway, and are free to be flagged as such.
 
user1385191
they're becoming commonplace now
 
@TimStone That can be done either way. I think people are allowed to ask for a reason.
There just not allowed to demand or imply that it's bad ettiquete to not give a reason
I'm all for downvotes giving comments explaining how an answer can be improved
unless its obvouisly factually incorrect or low quality
 
6:36 PM
i always ask for a reason
 
google+ hm...
 
/me has an itchy down vote finger, having just gained the privilege.
 
@Raynos Yeah, my feelings on this are summed up here. I definitely agree that if people can give constructive feedback where it's warranted, they should.
 
All: Are there any downsides to using document fragments?
or to rephrase: Is there a reason nobody seems to use them?
@david In case of what?
 
a more serious answer would be that they probably don't use it because they don't need to
using documentfragments would probably be considered premature optimisation
so people just say 'eh, I'll add it in later if this bit becomes slow'
 
6:44 PM
i neeeeeeeed help......i cant understand why my menu isnt being proper.....my menu should be golden all in one line except its sooo weird here...
 
user1385191
I still need to test the IE support of documentFragments
 
user1385191
but they're awesome
 
user1385191
hm, msdn's search pulls a lot of stack overflow questions
 
my eyes... what is that lol
 
6:46 PM
what is what?
 
user1385191
documentFragment is DOM level 1, so it should have pretty good support
 
documentFragment is used a lot in jQuery isn't it?
 
Registration Now Open for 2011 jQuery Conference in Boston - get your tickets and hotel rooms now! http://cot.ag/j7axtA
 
w00t 999 answers lol
 
user1385191
6:47 PM
it speeds up DOM insertion (in newer browsers)
 
@MattMcDonald I rewrote the generation of a 20 row by 4 column table from some JSON data to use a documentFragment instead of working directly on the DOM. I got a thoroughly unscientific speed-up of about 20% in IE6.
 
user1385191
were you working with DOM table methods?
 
No. Just creating tables, trs, and tds with createElement().
 
user1385191
table methods minimize createElement calls to whatever is inside the table cells
 
user1385191
so you just create blank rows, cells, etc
 
6:50 PM
Yay! Something new to go learn!
 
user1385191
the collection of methods is pretty impressive
 
I can haz Google+ Invite?
 
It sure is. Thanks for the pointer.
 
@IvoWetzel Hmm, interesting
 
6:55 PM
@TimStone Indeed, and they even managed to come up with a useful name
unlike "Buzz"
 
@rpastorelle I don't *think* so, that's what we worked out with the hotel :) Really affordable for Boston.
@toepoke_co_uk It's just so people don't accidentally buy those tickets :p Team members get discount codes for that ticket.
@rpastorelle Gah. It's *ridiculously* more expensive. Some people got stuck with $499/night hotels when the room block sold out last year :/
 
02:00 - 19:0019:00 - 00:00

« first day (255 days earlier)      last day (4680 days later) »