« first day (709 days earlier)      last day (4254 days later) » 

4:04 PM
Hey my json config file - hope I did this right-
`{
    "ajax": {
        "holder": {
            "class":"page_login"
        }
    },
    "background": {
        "class":"login"
    },
    "sidebar": {
        "show":false
    }
}`
 
woah wow thats pretty huge @dievardump
 
@Loktar Ya, i saw that.
 
@Loktar yes it is. It seems that back in the days, it was "Private wall posts"
And... the private thing seems to have disappeard
 
@dievardump it must be when they moved to fb messages being e-mails that they become some new object type
 
OMG Panic everywhere with this facebook shit xD
 
4:11 PM
Went out for lunch, what about Facebook? What did they do this time?
 
Why does this throw? function eval () { 'use strict'; }
Ah, screw this, I'm opening a SO question... :)
 
@ŠimeVidas because eval is a native function
You can't redefine it
 
@dievardump In non-strict code, you can redefine eval.
Notice how only the function body is in strict mode, the function declaration is not in strict mode.
 
You can redefine it, but redeclare it?
 
If the global property eval us writable (and it is), you should be able to assign a different value to it via a global function declaration.
 
4:17 PM
yes
It seems it throws only in FF
Not in Chrome
 
What?
 
(and others are deprecated Browsers so...)
 
@dievardump Hm, it throws in my Chrome... jsfiddle.net/SE3eX
 
Hey I'm just wondering if people are still using the "livequery" plugin for jQuery or if there's another way to tackle the problem it solves.
 
For the sake of simplicity, let's use this expression: (function eval () { 'use strict'; });
 
4:20 PM
Hey if I use a json config file, how do I test if that json obejct has a varaible/object in it?
 
Why does it throw?
 
function eval() { 'use strict'; }
undefined
In this tab, it works, in others, I have a Syntax Error
weird.
 
You're gonna make me open this chat in Chrome... -.-
 
that is weird
 
@dievardump It doesn't work for me in this tab either
 
4:22 PM
I did. It still throws in Chrome for me.
 
> SyntaxError: Function name may not be eval or arguments in strict mode
 
Yawn
i slept :o
i slept for 2 frigging workable hours fffffs
 
And now you can work at night!
 
depends on his time-zone though
 
We're in the same time-zone
 
4:26 PM
India?
 
no
i am not in india
i am on northpole i am in all time zones :D
 
lol
Santa??
 
Hoe Hoe Hoe :D // Radically this sounds same as Ho Ho Ho and that makes me feel how perverted i am sometimes!
 
lol, was going to ask if thats how you thought HO HO HO was spelled.
 
actually i did so
till somebody told me meaning of hoe
poor santa :-D
 
4:31 PM
what's your idea on playing sound for a notifications
 
@Justin CAN BE IRRITATIVE AS HELL IF THE USER CANNOT STOP IT FOR EXAMPLE THIS WILL IRRITATE U
 
@Abhishek ok so using it is good, but have a "turn off sound" setting?
 
yes
 
cool
does jquery play sound?
Found a plug in for playing sound!
 
oh god why
why dont u realize u can use <audio> element ?
 
4:33 PM
for the notifications?
 
why why why why why why why why why ?
yes
 
I can't use html5 sorry
It's not supported enough, yet.
 
Use jplayer
it uses html5 audio with a flash fallback
 
@Justin trolling right ?
 
^ or soundmanager 2
 
4:34 PM
0
Q: (function eval () {}) throws if function body is in strict mode?

Šime VidasWhy does this code throw? // global non-strict code (function eval () { 'use strict'; }); Live demo: http://jsfiddle.net/SE3eX/1/ So, what we have here is a named function expression. I'd like to explicitly point out that this function expression appears in non-strict code. As you can see, it...

 
<audio> element is supported like everywhere
 
@Abhishek huh
 
IE 9 , 10 , Firefox 3+ , Chrome , Opera , Safari 3+ , Android 2.3.6+ , iOS 4.0+
 
@Abhishek not a certian microsoft product on a certian xp system...
 
its like supported everywhere
which has like no actual market share ?
*Usage stats: Global
Support: 78.01%
Partial support: 0.04%
Total: 78.05%
 
4:36 PM
@Abhishek I'm considered for my users that don't use chrome... I like the idea of the jplayer fall back, but to play a simple notificaiton???
Just a beep?
 
well if u are using jQuery jPlayer is the best
 
@Justin .... your talking about using a plugin for a simple beep.. over a simple element
 
and the mechanism involved with any plugin is going to be same
 
like me including a plugin to display div's
best approach would be, eff the beep unless your on a modern browser
 
@Loktar no jQuery plugin so I can play a sound quickly
 
4:37 PM
> I like the idea of the jplayer fall back, but to play a simple notificaiton???
 
jQueryy and quickly doesnt sounds quite right to me
 
@Loktar true.
 
my point is a jquery plugin for a simple sound?
using your logic :P
 
my question is jQuery ??
 
Unless the sound is essential (which doesn't seem so, since you said you will add a control to disable it), I see no reason not to use <audio> and ignore the fact that older browsers named IE won't play it.
 
4:38 PM
haha
 
@BrenoGazzola I'm agreeing
 
@BrenoGazzola yeah thats what Im advocating as well
 
@BrenoGazzola There is something called graceful degradation
 
One audio element that plays sound on demand...
 
we just dont spoon feed everyone
i usually put a link to google chromeframe
and or google chrome
for those who are using IE 6 , 7 , 8
 
4:39 PM
@Abhishek im confused as to which method you're for
 
or flash
 
@Abhishek Except... i don't want to force users to upgrade
 
I say just use <audio> and call it good
 
@Loktar thats what i say
 
I've choosen <audio> on html5 supported browsers, with a message to the user suggesting a html5 browser.
 
4:40 PM
I think thats what @BrenoGazzola was suggesting too
 
Even that he can do

var audio =  new Audio();
audio.autoplay = false;
audio.onload = function(){
   document.addEventListener('notify',function(e){
    audio.play();
  });
  audio.addEventListener('oncomplete',function(e){
   audio.seekTo(0);
 });
}
audio.src = "blah.mp3";
and then just do document.triggerEvent('notify'); wherever he wants the audio
 
Exactly... unless of course I want to play a diffrent notification for certian events.
 
@Justin you know u can do that too ;3
u can change the src after preloading all sounds once
on the fly
 
@Abhishek lol, yes
I'd make a quick function that does it.
 
or this is chrome / ffux only
use webAudio :D
that'd be leet as hell :D
but then IE will die coming close to that :-(
 
4:44 PM
I think IE needs to rebuild their browser using mozilla as the base, just like Chrome started
 
@Justin are u nuts ?
 
lol
 
Chrome is more close to apple safari then firefox
 
yep
 
4:48 PM
what u just said made my head to bomp
 
@Abhishek now it is, but they all use some form of Mozilla base... at least they say so
in the user agent field
 
@Justin nahhhhhhh
@Justin the mozilla 5.0
has a long story
even i thought as u then raynos told me the actual reason
 
I don't even no what IE uses but I don't think it uses any bit of mozilla, atleast when I checked out ie way back when
fill me in
 
when mozilla came in existence server side ua sniffing began
2
now webmasters did stuff like
if( ua.indexOf( "mozilla" ) {
damn sexy page
}else{
die ie nazi
}
microsoft didnt liked it
so they put in Mozilla in the UA
and then all followed -_-
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"
Read the whole
 
Loved the comments so I'm starring it.
 
4:51 PM
@BrenoGazzola happy with that ?
 
I think MS needs to stop pretending there's any good reason to couple their browsers to their OSes and hire a small talented team that expands laterally as-needed with one leader calling the shots reporting directly to somebody who has veto power over the rest of MS's layers of moro... I mean administration.
 
@ErikReppen MS can do much better on IE
seriously they can own webGL with a direct X interface
 
Not without 10,000 dependencies heaped on its head coming from their app designs wanting to treat the browser like a tie-in.
 
they can own webAudio with DX interace
 
They should move Excel team to IE. As much as I dislike Office, the guys at Excel do a good job.
 
4:52 PM
@Abhishek I want to see silverlight make IE web pages move faster... like take html5 and down compiler it into silverlight
@Abhishek Yep.
 
@Justin SilverLight is bad
the only good thing about it is C# in browser
 
Windows 8 is silverlight
 
@Justin windows 8 is HTML 5
 
That's what they tell you...
 
it supports a decent 80% ish html5
wrong
Metro IE is plugin free
 
4:53 PM
The development behind it is all silverlight... atleast when it was phone
they coupled windows8, with silverlight + .net framework.
I'm talking windows apps
 
My understanding was that they moved away from Silverlight.
 
They might've but I'm talking about the phone system, before it became 8
I haven't actually looked at 8's inner mechics. The OS looks and breaths silverlight
 
@ErikReppen they havent
they still think it can replace flash , well it is replacing flash (x in the grave!
 
flash is still very successful... grant it I'd like to see flash compile to javascript app area's... but
or html canvas
 
4:56 PM
@Justin flash sucks
nd sucks bad
 
@Abhishek It was a pinoeer in it's day... just not today
 
@Justin it was a demon crowned as hero
try profiling flash , you will know
 
Why you must have had flash problems
 
my laptop heats up like a barbeque when it runs extensive flash
 
mine too!
 
4:58 PM
but webGL with 10x graphics uses less memory , works faster , stays cool
 
Any HD video in flash, kills me
 
Testing team is starting to get desperate. Same person asked three diferent developers to fix a bug in the testing environment.
 
lol
 
@Justin try xat.com '[/// warning website sucks ass
 
Ok you are all distracting me from work...
 
4:59 PM
'it will nearly freeze ur computer if its not powerful enough
 
@Abhishek http://www.zdnet.com/blog/microsoft/will-there-be-a-silverlight-6-and-does-it-matter/11180

That's almost a year old though.
And there is a Silverlight 6.
 
New dev: "I like how this is set up. You guys did a good job with it."
Me: "Oh, thanks!" *:secretly knows it could be better:*
 
@RyanKinal Always thinking that is the reason it was set up well (if not perfectly) in the first place.
 
Truth
 
ug that json config file change doubled my code
`//Load the Intilizer Element
                        var init = $.getJson(isunp.config.pages, function(data) {
                            if(data.ajax){
                                //Ajax Object Configurations
                                if(data.ajax.holder){
                                    //Ajax Holder configerations
                                    if(data.ajax.holder.class) {
                                        $("#ajaxpage .holder").addClass("class", data.ajax.holder.class);
 
5:03 PM
Whats the best way to access specific variables from the main function in a modular pattern ? -> jsfiddle.net/ghBbK
 
brb
 
1
Q: How to refactor common methods that depend on local variables into a base class

BillI'm using Node.js and am creating some models for my different objects. This is a simplified version of what they look like at the moment. var Foo = module.exports = function () { var values = { type: 'foo', prop1: '', prop2: '' }; function model() {} model.init = function(val) {...

 
@ErikReppen i know dude
i write C# ...
and i think silverlight 6 is going to be microsofts html5 shim lol
i dont get this friken thing
why the fuck does microsoft spend so much on silverlight when they can just put that team into IE team
and make decent html5 ?
i mean why why why ?
 
IMO, anybody not going with phonegap-like approaches to mobile is going to feel very stupid in a year or two.
A lot of C# devs sure liked Silverlight though. What is with so many Java and .net guys not wanting to suck it up and learn client-side web technology proficiently. <-- observation of a phenomenon, not a blanket statement.
 
@ErikReppen nope
i disagree there
phonegap is a shim imo its not native development atall if u want exhaustive apps go native u have no other option BUT with increasing power of html5 in mobile its stupid as hell not to use it
i mean iOS 6.0 has webAudio .. the friken awesomness
 
5:08 PM
Yeah, but a shim that works !@#$ing everywhere as opposed to just in an Apple product or MS product or some gadawful blackberry product.
 
@ErikReppen It works nearly everywhere
 
Silverlight in MS-only apps I can understand, but not for mobile apps.
 
phoneGap team is working blood sweat and tears making stuff for it
 
I think QT's been sliding webkit into native windows for cross-platform desktop app dev but I never got around to trying it.
 
@ErikReppen i am guessing by 2014
we will have something like PlatformGap
create native applications for windows , macs , linuxes , smartphones
esp the way windows is going its very very very likely to happen
 
5:17 PM
@Abhishek I think it will be longer before people get used to the idea of the same app for smartphone, tablet, and desktop/laptop but at the very least people will feel stupid for not taking a phonegap approach to mobile.
^unless there was something about a given native implementation that simply isn't possible or as easily done cross-platform.
 
@ErikReppen well they are making websites for smartphones , tablets and computers using
responsive web-design
what stops them from going that for Apps is the differntiation of platforms
Linux owns .. literally owns the hell out of macs and windows
Windows pawns with its .net which linux lacks
Macs .. ugh its polished glass .. but prettyyyy :3
And then they think iOS , Android is different
but if we see Android is just DUH Linux with Dalvik
iOS is different but for apps it can be the same
developers esp native developers i think like to keep the feel of the apps the same way and thats why they dont go on an app for everywhere
 
@Abhishek That's a problem client-side web technologies are very good at solving though.
 
thats why i am saying by 2014 we will have something like PlGap
and this room will be filled by Mac, Lin , Win , iOS , Andr. Developers 24 / 7
trying to use jQuery for native apps :D
and we will be telling em NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
 
FilterLab -» Someone can elaborate/explain ?
 
is anyone here good with maths?
 
5:25 PM
They all speak about that (and the FB bug) today
 
@Olli I'm not terrible.
Was there really an FB bug or was it a hoax?
 
It exists
 
@Erik I have two numbers - 200 and 0,500 - how should I round the final result ?
 
I have a question... why build Native APPS?
With the web browser
 
You can do almost anything, and HTML 5 makes it better.
 
@Justin 'cause web browsers don't act the same
 
@Olli Is that the US-equivalent 0.5? What are you doing with the numbers?
 
@dievardump not yet
 
Android native browser is a shame
 
5:27 PM
yes
I'm counting with them
 
@Justin Not yet. So we are stuck with native apps for the moment
 
and i got result 8,2034 how should I round it
to 8,20 (3 significant digits) or 8 (1 significant digits)
 
But i bet we will begin to have fluid systems and start having a universal OS, one web-centric
 
200 has 1 significant digits and 0,500 has 3 significant digits
@Erik
 
@Olli It depends on what you're doing with them I guess. I don't know what math is being done. How the results are arrived at, or what the results are ultimately used for.
 
5:30 PM
ok.
 
hey guys
please give me this pleasure
beat this guy down v
@FlorianMargaine Je m'insurge. AngularJS is a nice way to structure very simple codebases too, and should IMHO be avoided only if the AngularJS code is too big for your requirements. — Cygal 3 hours ago
 
@FlorianMargaine What's left to beat down? He hits himself in the head with a ball peen hammer with that statement.
 
Explain that to him. I'm sick of dealing with people like him.
 
Marketing opération
100%
 
@FlorianMargaine hellfires away
 
5:36 PM
@Olli context is everything with numbers. I don't know what you're counting or how you're counting. If you were doing something with animation coords and pixels I'd do something totally different than if those had something to do with amount of time users spent looking at something, etc...
 
tsssssssssss
Firefox Y U NO UNDERSTAND BORDER-STYLE: DASHED WITH BORDER-RADIUS
That's a total shame
 
@dievardump xD
show me code
@dievardump i think this will answer u
 
@Abhishek How?
That does not answer
 
@dievardump firefox i think has crappy maths :P
cause u can see the center of the lines where cos / sin components have maxima there is a gap
that basically tells that the dots are there but they are too damn close to each other
 
5:51 PM
@dievardump this should
goto bugzilla
 
Hi. I have an ajax service which returns an array of json objects...In my UI i have a html table I have to update. Is it better I do an instant for loop to update the html table rows...or should I do a setInterval and call a function which takes care of reading the array (one element at a time) and then updating the html table...?
 
i am off guys i am having a Pain in the brian
 
@FlorianMargaine If you think that's bad, I can't get my boss to recognize the severity of the issue of having ID's that look like this: 'rate.list.123.rateval'
 

« first day (709 days earlier)      last day (4254 days later) »