« first day (403 days earlier)      last day (4535 days later) » 

12:04 AM
@Incognito Also connector punctuation:
var _﹏﹏﹏ = 1;
var _﹍﹍﹍ = 2;
var _﹎﹎﹎ = 3;
all valid...
 
Hacker news is a page views goldmine :)
 
@Raynos Why so?
 
you are new to this thing know as the internets , right ?
 
12:27 AM
0
Q: Class CheckText - 1

stack.user.0/** * "Class": CheckText */ var CheckText = function(text) { this.text = text; } CheckText.prototype.patterns = { name: /^[a-zA-Z-\s]{1,20}$/, email: /^[a-zA-Z0-9._(-)]+@[a-zA-Z0-9.(-)]+\.[a-zA-Z]{1,4}$/, pass: /.{6,40}/, url: /^[(-)\w&:\/\.=\?,#+]{1,}$/, aml: ...

 
1:19 AM
^ that guy annoys me
 
1:48 AM
@Raynos Anything on the front page of HN is assumed to be handed down by moses.
 
2:18 AM
heh
if doom3 is open source does that mean free?
 
2:32 AM
@Raynos no it is not free, you cheapskate
 
2:48 AM
0
Q: What should JavaScript be renamed to

Evan PlaiceBackground: I have been watching Douglas Crockford's series of presentation about JavaScript History (which I highly recommend) lately and a one comment of his specifically piqued my attention. The trademark for 'JavaScript' is owned by Oracle History: Due to time constraints at Netscape,...

 
 
1 hour later…
4:05 AM
I hope someone can help me with this: stackoverflow.com/questions/8237173/…
 
4:34 AM
RT @w3c: W3C Invites Implementations of API for Media Resources 1.0 http://ow.ly/1fMHip
RT @w3c: Open Web Platform Weekly Summary - 2011-11-14 - 2011-11-20 http://ow.ly/1fMHi9
 
 
1 hour later…
5:53 AM
You can now subscribe to notifications about changes to the HTML spec on a per-topic basis (e.g., “Video and Audio”) http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-November/033946.html
 
6:11 AM
posted on November 23, 2011 by Vasilis

Tom Morris – Why you need less interactivity I love white-space and I think that total focus on the content is better for everyone. Not everybody agrees with me. Tom Morris does and he has the best advice for social media experts I’ve ever read in this somewhat shocking article. You should read it. design, white-space, social media The mobile web splash screen antipattern [Leg

 
6:41 AM
0
Q: *how to know clients browser is on trusted zone or not by javascript

SameerI am working on site which have a lot of configuration and security settings and I have to check either clients browser is on trusted zone or not using JavaScript. Is it possible to determine whether my web site is being accessed as a trusted site? The reason I'd like to do this is that some func...

 
 
1 hour later…
7:54 AM
RT @ChromiumDev: The Synchronous FileSystem API for Workers - http://www.html5rocks.com/tutorials/file/filesystem-sync/ ^eb
RT @dstorey: Some very interesting proposals from Microsoft on evolving ECMAScript http://blogs.msdn.com/b/ie/archive/2011/11/22/evolving-ecmascript.aspx including date and number formatters
 
8:06 AM
RT @brianleroux: NodeJS style callbacks, w/ err/data passed as args, are finding their way to W3C API design. https://github.com/scriptlib-cg/api-design-cookbook ...good.
RT @divya: HTML5 in TextMate: Bundle Editor → Edit Languages… find HTML and paste https://gist.github.com/1386008 by @pornelski
RT @statico: I've heard "Holy crap, that's CSS?" a lot lately. Check out Dave Shea's recent presentation: http://mezzoblue.com/presentations/2011/fowd/FOWD.pdf (via @pau ...
RT @paul_irish: Want to stay current with frontend development, standards and browsers? Givin' you the 2011 feed hookup: http://t.co/y3H ...
RT @ericlaw: Fortunately, http://websocketstest.com/ supports the current version of the protocol. Fiddler vNext now supports WS:// and WSS:// ...
RT @ErikArvidsson: A JavaScript + DOM implementation of the DOM URL API: https://gist.github.com/1384398
RT @IEBlog: Adding Personality with CSS3 Transitions and Animations: Advancements like high-performance compiled JavaScript ... http://t ...
RT @__DavidFlanagan: v8 command-line args supported in Node 0.62: --harmony_weakmaps and --harmony_proxies This means that I can make a ...
RT @humphd: New post: Implementing Mouse Lock, part III - http://vocamus.net/dave/?p=1376, in which we make some good progress #mozilla #firefox /c ...
RT @ebidel: Excited to see parts of CSS4's cross-fade() working in Chrome Canary: http://peter.sh/files/examples/cross-fading.html
RT @divya: Writing forward compatible websites https://developer.mozilla.org/Writing_Forward_Compatible_Websites /via @annevk
RT @firt: To clarify: http://iWebInspector.com is a full web inspector, debugger and profiler for iOS & @phonegap apps. No server or script ...
RT @beverloo: Cross Fading, CSS Flexible Box, Grid Layout, Filters and Meta Referer http://goo.gl/lRceb #WebKit #Chromium
 
8:27 AM
RT @divya: If you were wondering what is up with the HTML Working Group, this presentation by @sideshowbarker is a good read ...
RT @annevk: How to prevent future standards from breaking your site: https://developer.mozilla.org/Writing_Forward_Compatible_Websites
 
8:48 AM
@Feeds: you suck.
 
9:05 AM
Haha
At least it's something to keep the room interesting when it's dead.
 
9:35 AM
@AndyE Better than nothing. Well, maybe...
 
meh
String#startsWith & String#endsWith getting native?
Number#isInteger, Number#toInteger, Number.format and more.
 
Hm, I thought isNaN already was standard.
 
@RobinAndersson It's possibly a revised method.
 
@AndyE Maybe, nevertheless it's working fine and thats what I care most about =)
 
@RobinAndersson isNaN is renowned for being useless in a variety of situations because it coerces the passed argument to a number.
this is a new implementation, `Number.isNaN`, which doesn't coerce the passed argument. e.g.

`Number.isNaN("2")`
`//-> true`

http://wiki.ecmascript.org/doku.php?id=harmony:number.isnan
 
10:15 AM
@AndyE Sounds like a good change.
 
 
2 hours later…
11:57 AM
is w3schools still that bad? I've heard they fixed alot of wrong things
 
18 messages moved to bin
 
@YiJiang That was a valid reason which I am willing to accept, will stop it from on now.
 
@DileepDil If you have a question, ask it on Stack Overflow
 
@YiJiang already asked & now hv a discussion
 
nah whatever, they should still get punished only for the naming
 
11:58 AM
@jAndy Their website uses <center> and tables for layout, something they themselves claim is incorrect and should be avoided; what else do I have to say?
 
The <center> cannot hold, it's too late!
 
@AndyE: :o)
@YiJiang: :o)
damnit.. is there some shortcut to quick-select a name when typing a "@" ?
I can't stand to click on the name everytime anymore
 
@all is this right room to ask something about JAVASCRIPT or is there any other rooms ?
use Tabs
 
@jAndy tab to autocomplete
 
12:01 PM
that question deserves at least one star
ah.. hahaha nice
 
help plz
0
Q: Uncaught TypeError: Object #<YYY> has no method 'xxx'

astrocybernauteI get this error: Uncaught TypeError: Object #<Interact> has no method 'getmyData' the problem is that it's true! 'Interact' has no method 'getmyData' it's 'myhandler' that contains it. it's not supposed to go look for it in 'Interact' but in 'myhandler' ! I have no clue why its actin...

 
Please guys....How can i set the content of an iframe without SRC attribute ??
 
@DileepDil I am not sure you can, you should probably use another element for that.
 
$(selector).contents().find('html').html('<html></html>'); not working...
 
@DileepDil: you just access the iframe node and then access contentWindow
@DileepDil: as long as the document.domain is identical you can change the dom like everywhere else
damn I love TAB
 
12:04 PM
hello everyone
i need help understanding the jQuery animate function - in it's mathematical form - how it calculates the speed by the duration using stepping. can anyone help me?
 
@RobinAndersson is there any element that better than iframe ?
 
@DileepDil Depends
 
@jAndy Could u pls give me a example ?
@RobinAndersson I cant use any other elements here,its For Preview purpose,i want to preview some entire pages
 
@DileepDil And you try to inject HTML into the iframe for that purpose?
 
@RobinAndersson yes,i want to inject some data to the iframe ,the date come from a variable
 
12:08 PM
@DileepDil: how does that data look like ?
 
@RobinAndersson domain is not an issue here
 
@DileepDil There are restrictions on how you can inject data to an iframe, if it is an page you don't control and on another domain in the iframe you are probably pretty screwed.
@DileepDil Otherwise it would be a really big security vurnability in the browser.
 
Can anyone help me understand jQuery animate function?
 
where is ma previous comment ??
@RobinAndersson its for Preview purpose ,and domains are same ,actually i dont want to do this <iframe src='url'></iframe>
 
@dinbrca , if you are using jquery mostly for animations , then you are using the wrong library
jquery's animations are quite horrid
 
12:12 PM
currently i use a library called fx
i previously used jquery for my whole site, but now i use fx animation library to animate something.. changing to the new library somehow made my animation slower
 
@DileepDil: my first idea would probably be like, format that incoming data, escape it and send it as data-uri into the src from that iframe
 
this is the reason i need to understand the jQuery animate function
 
that would be the solution if you cannot change or adapt that data on the server before I guess
 
@jAndy send it as a data-uri ??? how ?
 
@DileepDil: src="data:text/html,charset=utf-8,<escaped formated html string here>"
with escaped and formated I mean, there are no whitespaces or linebreaks allowed
 
12:16 PM
@tereško or I need to understand the duration of each stepping in the animate function, and what is the stepping that jQuery uses..
 
@jAndy sure i can change the content of iframe,but not FULLY ,my string come with both HTML,head,body tags...but i cant inject that data to the iframe,if t happens it removes the body and header tags..how its happening /
 
@DileepDil: probably a better idea to just send the pure data (JSON is probably a good way for that) and render the data within the iframe by script
 
@dinbrca i think that mootools and prototypes are good
 
@DileepDil I am trying to optimize my websites performance
 
@jAndy is it possible ? please take a look here stackoverflow.com/questions/8240101/set-content-of-iframe
 
12:19 PM
@DileepDil so now I try to create the whole javascript by myself..
 
@dinbrca it really depends ue needs ,if you want good animation with some perfomance then better leave jQuery use prototype ,its awesome,but i am not familiar with that
 
@DileepDil: jsfiddle.net/AvVmR
 
@DileepDil I already got an amazing animation library i found called fx from fx.inetcat.com
 
let me try..
 
12:32 PM
I just found a website that is almost completely vulnerable to XSS
They're just sanitizing the fields on the client (using Regular Expressions)
 
12:56 PM
0
Q: Disqus Comment System - How can I show comments count?

PatrikI have installed Disqus Comment System on my site. And it works quite nice except that the comments are not counted. The number of comments still says "0 comments" on the startpage. What to do?

 
1:12 PM
@Zirak wtf is with the accepted answer? It's completely backwards
 
The try/catch in the other answer is completely retarded.
 
1:33 PM
2
Q: Is it possible to simulated Object.getOwnPropertyNames in IE8

FarmorHello is it possible to simulated Object.getOwnPropertyNames in IE8. I'm trying to get this fiddle to work in IE8. I believe the only thing left is to make a function simulating getOwnPropertyNames. Of course other solutions to the base problem of extending a JavaScript object with object lite...

^ lol at "Conclucion" part.
An Object.getOwnPropertyNames function that doesn't return non-enumerable properties is just Object.keys.
 
the try-catch block to detect an object scares me more, especially when the guy calls himself a webdeveloper in his profile
 
var hasSufficientCowbell = window.hasOwnProperty('jQuery');
 
@Zirak: ironically, your attempt at a joke fails in IE 7 and lower :-p
 
window's probably super special thingy in those...
 
Object.prototype.hasOwnProperty.call( window, 'jQuery' );
 
1:40 PM
yeah, that works
30
A: How to list the properties of a javascript object

Andy EAs Sam Dutton answered, a new method for this very purpose has been introduced in ECMAScript 5th Edition. Object.keys() will do what you want and is supported in Firefox 4, Chrome 6, Safari 5 and IE 9. You can also very easily implement the method in browsers that don't support it. However, ...

 
and then you look at this line.. and then you look at "in" and ask yourself.. is it worth that much typing ?
 
^ reminds me of this answer and the accompanying blog post
 
woot, nice one. I will steal that piece of code for BarFoos es5 normalization @AndyE I will also hide from any advocate you send to me
 
:(
 
@jAndy: it found its way into the es5-shim anyway :-) github.com/kriskowal/es5-shim/blob/master/es5-shim.js#L803
 
@Raynos: At last, you're here. Let the trolling begin :-)
 
Help me fight the GWT trolls
@AndyE Y U TROLL ME
@AndyE you can shim Object.getOwnPropertyNames in IE8
 
@Raynos How can you get a list of non-enumerable properties?
 
You assume no propertyname is longer then 50 characters
you then try all valid identifiers under 50 characters by exhaustion
 
lol
 
1:48 PM
indeed :p
 
@Raynos Y U TROLL ME? :-p
 
And it's O(1) !
 
haha
 
Anyway, I should go do something awesome
I wrote that templating engine that enforces seperations of concerns
It only runs on node, maybe I should work on that client side support :D
 
0
Q: videogames development literature purely in javascript?

arrrrgvI'm mainly interested in the videogames development in pure javascript, since nowadays there's so many books about htm5 and javascript I couldn't find any book about game development with javascript only. Could u help me up please? Thank u

 
2:23 PM
... why the hell am I getting emails from "Ruby Source"? WHO GAVE THE RUBES MY EMAIL ADDRESS?
 
@RyanKinal :3
 
unsubscribes
 
@RyanKinal: be thankful its not the php or java source instead !
 
... actually, I wouldn't mind PHP
hides
 
>_>
I don't understand why people like php
 
2:27 PM
It's a nice language
 
I don't understand why people like javascript
Community y u no C || haskell
 
See above
C is a magnificent language
 
@Zirak php is a nice language?
 
API sucks. The language itself is nice.
 
But you have to write $ before all your varaibles ;_;
 
2:28 PM
I'd change tons of stuff in it, but that's because I'm picky.
 
@Raynos I think there's a way around that.
 
I actually kinda like that.
 
@Incognito is it called a preprocessor?
 
I forget, all I know is you can have vars without the $ but it's generally a bad idea in PHP.
 
Look at it this way: If a girl is perfect, as in no flaws or quirks at all, she's utterly uninteresting. The same goes for a programming language.
 
2:29 PM
PHP is fairly awful because it's basically a ball of magnets that rolled down a hill of bolts.
 
I'd take that girl
 
A perfect thing is perfectly flawed.
 
@jAndy Well yeah, I'd probably do unspeakable things with her, but I wouldn't want to date her.
 
With her or to her? :P
 
A little bit of both ;-)
 
2:30 PM
They're unspeakable!
 
the unspeakables !
movie idea ?!
 
The untouchables?
The Untouchables is a 1987 American crime-drama film directed by Brian De Palma and written by David Mamet. Based on the book The Untouchables, the film stars Kevin Costner as government agent Eliot Ness. It also stars Robert De Niro as gang leader Al Capone and Sean Connery as Irish-American officer Jimmy Malone. The film follows Ness's autobiographical account of his efforts to bring Capone to justice during the Prohibition era. The Untouchables was released on June 3, 1987, and was critically acclaimed. Observers praised the film for its approach, as well as its direction. The film was...
 
McDonald's commercial flashback
 
They should make a few movies
the unspeakables, the untouchables, the unsmellables, the unheardof, the unseen
 
2:33 PM
@Raynos: >> Community y u no C || haskell
I'm actually very, very glad that C is no longer mainstream. Looking at the terrible stuff 90% of people do with GC languages/script languages, I can't imagine what terrible things would happen to all of us
 
The Silence of the the Lambs will have to do for now
 
C was made for 2% of people backthen its maybe 0.025% nowadays
 
\o/
 
0
Q: DRYing up JQuery

YaskyI have a couple links and divs I would like to have the same functionality on. Basically, you click on a link/button/anything-chosen-as-the-trigger and the corresponding space slides open. The markup looks like... <!-- some code --> <li><a href="#" id="first">First</a>&l...

 
2:41 PM
Hello there ?
 
Oh great, it's you again.
Hostalities: begin
 
@Raynos, you PMSing?
 
PMS?
@Zirak I no bleed from crotch
 
@Raynos Y U NO BLEED FROM CROTCH?
 
@Amaan Y U BLEED FROM CROTCH
 
2:45 PM
@Raynos Touche.
 
I've had female friends who showed emotional symptoms like yours. Can't validate your sex and/or crotch, so it might be a severe case of empathy.
Or maybe you're pregnant.
c# is trolling me.
 
@Zirak ...
 
@Zirak c# was your first hint.
 
I'm getting trolled by the GWT people :(
 
Dart will end just like GWT, forgotten, alone, missunderstood
 
2:54 PM
Like poo in the sewers
 
I don't think poo feels missunderstood
 
@Raynos I've read assembly.
 
@Incognito I'm not saying its not human readable
Im saying it wasnt designed to be.
It was designed for machines
and trolls be trolls
 
@Raynos: did that guy you just call a 'script kiddie' ? :p
 
Yes he did.
 
2:57 PM
@jAndy Yeah that's a common "debate tactic"
 
Some hurr durr java gwt developer insulted me. I am offend.
 
enough is enough !
however, its a pretty useless discussion unless nobody clarified "wording" and "meanings"
 
@jAndy it is.
 
assembly indeed just was made for human beeings, to interpreate byte code easier
 
GWT is used if you're too stuck-up to learn html & js.
 
2:58 PM
but of course, its not "human readable" at all
 

« first day (403 days earlier)      last day (4535 days later) »