« first day (566 days earlier)      last day (4385 days later) » 

10:00 AM
my successor will feel some pain...
 
job-change ahead?
 
yep
my contract will end in august
 
already got another one?
 
not yet
but several interviews planned already
 
well, for a guy with your abilities, this won't be much of a problem :)
 
10:08 AM
having JS abilities in france doesn't help much
 
why? what are they looking for?
 
JS is mostly jQuery plugin stuff for front-end in most companies...
I mean, assemble to correct jquery plugins and be done with it.
 
ಠ_ಠ
 
btw, why is it necessary to set the constructor property in a prototype?
 
i'm not sure if it is necessary after all
 
10:11 AM
something like Class.prototype = { constructor: Class, /* other properties */ }
how do you do these eyes?
 
i copy-paste them ;)
 
because if you set a whole new object to the prototype the constructor property will disappear
 
yes
I know that
but why is it necessary to have it?
 
this.constructor.prototype is more supported than this.__proto__ or Object.getPrototypeOf(this)
 
you dont need to set the constructor - property.
 
10:13 AM
@ I got this function working, anyone can tell me how can I FADEITIN instead of "show" please

<script type="text/javascript" src="/_layouts/1033/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("input[id$='btDelete']").click(function()
{
$("#divConfMessage").show();
});
});
</script>
 
The "constructor" property is a reference to the function that created the object's prototype, not the object itself.
 
$("#divConfMessage").fadeIn();
 
that's why you set it
 
oh
in case you use this in the object's prototype, it will use constructor ?
when you call it from the object?
 
can you give an example in code
 
10:14 AM
@FlorianMargaine thanks, and if I want to fadeIn + disable the page then :)
or atleast made it less visible
i think its something to do with opisity or something
 
@FlorianMargaine
 
function Class (name) {
    this.say = function() {
        console.log( name )
    }
}

var obj = new Class();
obj.say()
 
this will refer to the object
 
meh, i'd need to have a look into Stoyan Stevanov's book again, i'm not quite sure myself anymore :/
 
this.constructor.prototype will refer to the object's proto
unless you mess it up and don't assign it
:P
 
10:16 AM
function Class (name) {
    this.say = function() {
        console.log( name )
    }
}

var obj = new Class();
delete obj.constructor;
obj.say()
does that work too?
no it doesn't
hm wait
it does
but the following won't work:

function Class (name) {
    this.say = function() {
        console.log( name )
    }
}

Class.prototype.hi = function() { console.log( 'hi' ); };

var obj = new Class();
delete obj.constructor;
obj.hi()
 
but now you have no reliable way to refer to the constructor or prototype from the object
if you delete it
 
function Class() {}

Class.prototype = {
    hi: function() { console.log('hi'); }
}

var obj = Object.create( Class );
obj.hi()
the question is mainly, does that work?
 
no you need to pass Class.prototype to Object.create
Object.create doesn't take constructor but a direct object
 
oh yeah
function Class() {}

Class.prototype = {
    hi: function() { console.log('hi'); }
}

var obj = Object.create( Class.prototype );
obj.hi()​
this works
 
But doesn't seem so useful, it performs very poorly, has a lot of noise and doesn't even run an initialization function
now you don't see me micro-optimzing much but for such a low level operation as creating an object, the object.create performance is unacceptable
last time I checked it was 30k ops
now if you have a game running at 60 fps, that leaves you with 500 new objects per second and that's just creating them, not running any functions or drawing anything
 
10:23 AM
help me please :)
 
yeah new is definitely on another range
 
there is one special case though where you don't want to run the constructor and performance doesn't matter
ChildClass.prototype = Object.create( Parent.prototype )
you don't wanna run new Parent
 
to establish the chain
 
new Parent doesn't do the same?
I'm confused ಠ_ಠ
 
10:25 AM
new Parent creates a new object as well as runs the constructor function
 
why am i being ignored ????????????????????????????
 
since we are just using it to establish the inheritance chain, we actually don't wanna run the constructor function
but when you are creating objects normally, you want to run the constructor function to initialize it normally
 
@TimeToThine you're looking for opacity in css
@Esailija yeah got it
thanks
 
@FlorianMargaine yes, how can I change that here
 
look for "jquery css" in google
 
10:29 AM
@FlorianMargaine problem is am using a master page and this page contains 3 asp:content place holder, there isn't any div I can put this property or funciton 2
 
or !jquery css on ddg ;)
 
how this plugin BLOCKUI does it :/ @FlorianMargaine you must know that
 
i have no idea
@GNi33 ddg?
 
@FlorianMargaine but you MUST
duck duck go
 
oh
I don't use it
too slow
 
10:34 AM
it's ok, got used to it. It's not as fast as google, but the shorthand functions make up for that
and they don't log the crap out of your search-requests ;)
 
yawn
sucha small problem in jquery cant be fixed
FML
 
@GNi33 I like that google does that, now it only gets me results I want
 
yes, it has it's up- and downside
but duckduckgo really presents very relevant results, especially when searching for programming - terms
what i especially like, i got it bound to my address-bar
just type !js something in your adressbar and you are searching for something on the MDN
directly
i love that
 
oh god
I didn't know about !js
ddg now on the address bar
 
i think it works with !mdn too
 
10:39 AM
yup
 
back to the constructor - thing shortly:
http://www.2ality.com/2011/06/constructor-property.html
Best practice: Avoid replacing the complete prototype value of a constructor with your own object and only add new properties to it. Alas, with subclassing, you have no choice and have to set the constructor property yourself.
so, you should set it, if you completely overwrite the prototype, am i right?
 
that's not what I was asking :p but yes if you don't completely overwrite the prototype, it's already set, so no need to do it again
 
oh, okay :D
got a little confused myself. this weekend, i'll give stoyan's book a re-read
i hate it when things, that seemed very logical just seem to be completely wiped out of your mind after some time -.-
 
I really like javascript.info for this kind of stuff
 
yep, it's good
finally got my copy of this one :)
 
10:46 AM
@FlorianMargaine You should burn that webservice, then
@Abhishek (your name is really annoying :P I constantly think it's Absihek) Why would CORS make it simpler? The server is sending the requests, no domain limit here.
 
is it good?
 
at least jAndy said so, didn't start it yet
 
adding to my wishlist then :p
 
Nicholas Zakas...that name sounds familiar. Maybe we used to go out or something.
 
kindle edition is more expensive than paperback ._.
if anyone wants to please me amazon.fr/registry/wishlist/1O12DBCTRX20P /o/
 
10:48 AM
Do what I do: Steal it first, see if it's worthwhile, and if it is, buy it
 
@FlorianMargaine dude, it's french, i can't read crap on there

;)
 
well you can see the books
they're not french :p
 
If you want a great book on datastructures (<3), I HIGHLY recommend Introduction to Algorithms by Cormen
 
@Zirak haha, ordered that one too :)
 
11:00 AM
@Zirak More like a reference book, though, right?
 
Zirak is publishing WAAAAREEEEZ! OH NOES!
oh, and btw
happy __star wars day__ guys

May the Fourth be with you!
 
@Amaan It really teaches you these things, takes you through the process. It has some math in it, but not anything too scary
 
My high school math didn't carry me too far
(I have the book)
 
@Amaan now you can help me write my vb4 javascript engine
 
That's a huge challenge you've taken on
 
11:06 AM
Lol
 
Have you started yet?
 
His troll-o-meter is busted
 
Whose?
 
Exactly
 
Hahaha, so mine
 
11:12 AM
If an orange screamed when you peeled it, would you still eat oranges?
 
\o\
 
I don't eat oranges, so no.
 
/o/
 
It stops screaming when you finish peeling it
 
How about when you eat it?
 
11:13 AM
@Raynos insert face-punch emoticon here
As soon as it's peeled, it stops screaming. Only as you peel it the screams erupt
 
@GNi33 The amount of repetition saved from writing the constructor just once makes it very worth it to just assign an object literal to overwrite the original prototype
 
@Zirak Why exactly are we talking about this?
I sense some witty comment from you that goes on to be starred coming O.o
 
now apprehensive to write something
It's actually just a question which people give an interesting answer to. I've asked about 20 people, all of them said they won't eat oranges.
 
Because it'd be an abnormal orange?
It'd be quite amazing to have a screaming orange
An annoying orange.
 
If all oranges do it, people won't see it as abnormal
 
11:17 AM
@Zirak here's a free one dsp-book.narod.ru/fxtbook.pdf :D
 
5 mins ago, by Zirak
If an orange screamed when you peeled it, would you still eat oranges?
 
Normal is defined by sheer mass. Really weird things seem "normal" because everybody does them.
@Esailija suspicious
 
oh I noticed the .ru now
it's legit though
 
even more suspicious
 
you can prolly find a .de with algorithms for programmers
 
11:20 AM
.de? extremely suspicious, must contain nazi-content!
 
hrn, I should stop this imperative nonesense! Prolog awaits.
I hate the way my program solves defines a Sudoku 5x5...it's all...fixed. You'd have to manually change it to adjust it to a 9x9 for instance, but the logic remains...that must be solved!
 
@Zirak You have a Sudoku solving algorithm?
 
In Prolog, yes. And it's not exactly an algorithm :3
I want to fix it first, though, to allow variable-length boards
 
Never heard of Prolog before
 
11:28 AM
It hurts my brain. But it's amazing.
In imperative languages (like js, C, Scheme and so on) you write the how to do something; take flour, pour it into bowl, add this and that, throw in oven, wait, there's cake.
In Prolog, which is a declarative language, you define a cake...and that's it. The language makes it for you.
 
Where'd you learn it?
Got a tutorial handy?
 
Nope, which is a serious problem :P
 
Hahahaha
 
Downloaded GNU Prolog, opened console, and tried bashing things at it, hoping something comes out correct
 
@Zirak the language that talks back? :D
 
11:31 AM
shiver yes...that was horrible
 
42 zirak hits enter
Prolog:
 
yesterday, by Zirak
GNU Prolog 1.4.0
By Daniel Diaz
Copyright (C) 1999-2011 Daniel Diaz
| ?- x = 42.

no
| ?
One of the things that amazes me in Prolog is how a "return value" is made. Either the problem was solved flawlessly, giving you exactly what you wanted, or you get no
 
One-return-to-rule-them-all? Because of goto statements, methinks
 
0
Q: Sortable VS DragnDrop in Jquery

Ravias i am trying to work on sorting the some data using Jquery. i thought i will use drag and drop. Later i visited Jqueryui site. they have drag and drop, sortable functionality. so now i implemented drag and drop functionality to sort the HTML Table Row with saving their position in DB. Now ...

 
11:45 AM
Sounds like a fun question. I'm gonna go and flush my head down the toilet for more fun.
 
it is the evil behind
if( var )
    if( var2 )
         if( var3 )
 
@Esailija \o , @Amaan \o
Wait @Amaan long time no see
 
Yeah
I stopped coming online so often
Got one of those things the kids call "a life"
 
@Amaan lol :-) , i ruined "my life" cause of internet , but it also made "my life"
 
Oh, I still use the Internet a lot. Just more of it on Reddit
 
12:00 PM
for me it's like, nerd as much as you can during the week, be an idiot and have a lot of fun with your friends on the weekend
 
@Zirak would they plea for mercy or just scream? If it were just a whaling scream with no sense of self awareness then I would invest in ear plugs and live off fresh orange juice... otherwise I would just learn to like eating my orange in slices with the skin on.
Oranges are too damn delicious.
 
@rlemon You're betraying the lemons
 
@rlemon \o
 
@Abhishek o/
 
damn my head is spinning :<
 
12:04 PM
What is this o/ thing?
 
hi - 5
 
@Amaan Betrayal would be eating that scoundrel Lime..... green bastards....
 
Person 1 -> o/ \o <- Person 2

^
Hi 5
 
LIME..... Y U NO TURN YELLOW WHEN RIPE?!?! U LOOK LIKE BABY LEMON!
 
lmao
I just experienced loads of curroption @Amaan
 
12:06 PM
@Abhishek Corruption? In India? No way!
 
License Exam , literally a nude dance of curroption, the invigilators were telling us whats the right answer to press :-|
tbh , when som1 cant even us a remote the did it for him , on added cost
man now i feel so safe driving on roads lol
 
I didn't get you
 
Okay , have you given a driving license exam ?
 
 o/   \o
 |o-.-,|          < - Eiffel Tower
 
@Abhishek I'm 15, man.
 
12:08 PM
oh XD
sorry i forgot
 
Yeah, it's alright
 
its a 10 question asking basics about road signs , what will you do in certain condition
 
@rlemon What was with the VB thing?
 
3 options , you just have to press the right option.
 
hahaha I have a vb4 se still in it's shrink wrap
 
12:09 PM
even in that they were telling us which button to press on each question -.-
 
i uploaded to twitter as a quick "i need you online to show someone in the chat"
 
Hahahaha
Try pinging Raynos
 
just like my 1994 Ultra 386 SX-25 laptop
@Raynos [I was told to ping you?]
 
@rlemon You should make a site to organize your family gatherings
Okay, nevermind.
 
@Amaan my family doesn't gather. We just Hang Around
 
12:13 PM
I had a good name for it in mind
A party for the Lemons
@rlemon Don't blame this on me!
Would you jump off a cliff if I told you to?!
 
@rlemon guess what
i was ENJOYing an old NES!
 
yes NES was fun
what a lung workout
@Amaan depends on how you sold it.
if you made it sound really fun.... well then what choice would I have?
 
lol
@rlemon did you saw the windows 95 advertisement ?
it was hillarious !
google for Horrible Windows 95 Advertisment :-)
 
this is boring.
 
What is?
 
12:25 PM
like where would they have shown this? there were no 8 minute tv commercials? infomercail?
 
Ah, the commerical
 
12:36 PM
Lol
i died laughing that one
i mean (XD)
seriously! microsoft has gone way mature then that
 
@rlemon holy crap.
i want to punch the guy
 
@GNi33 me too
check this out ! even funnier
 
there was one extremely horrible commercial about a singing software from microsoft or so
 
0
Q: Something like firebug for internet explorer?

Nick RosencrantzIs there something like firebug for internet explorer? I've got a site that is only suppossed to be working in IE so I'm only targeting IE and the site is not suppossed to work in firefox. Thank you for any advice

 
that's it
microsoft songsmith
worst commercial EVER
 
12:44 PM
@GNi33 see the apple one
 
u will die laughing
 
@Feeds "the site is not supposed to work in firefox"? -_-
 
@Abhishek watch the songsmith one, you wanna jump off a building
 
@Zirak lmao
 
12:45 PM
and the worst thing about it.... it was an official commercial. I guess they were on crack or something
 
breakfast time
brb
 
Hello everybody
Can somebody help me with this question: stackoverflow.com/questions/10440845/…
 
@Abhishek Breakfast time? Dude, where are you? It's 6:18 P.M. in India
 
Here in the Netherlands it is 14:49
 
"microsoft, huh, so.... it's pretty easy to use?"

RAGE! why do i even watch this shit
 
12:50 PM
Can someone look at the question please?
 
@Amaan lol i am living in a whole other timezone in india (XD)
i sleep during day and wake during night to work
 
no one?
 
@rlemon wut?
 
o/
 
@Amaan y u
 
12:56 PM
@Raynos um completing sentence are we ?
 
Hey @rlemon the problem with the outline is solved
 

« first day (566 days earlier)      last day (4385 days later) »