« first day (678 days earlier)      last day (4286 days later) » 

7:00 PM
@rlemon Puns? How could I not?
 
@Zirak Exactly. For me it's the same thing. I never had one with girls. That's why I say I never dated girls.
 
Ouch you smell Flag.
 
haha :D
 
anyways... NEW SUBJECT!
 
7:02 PM
Try GitHug, the new website for tracking your non-committal physical contacts.
 
    // Ok, you may have seen wrapping a number literal with parens to call Number methods
    (42).toFixed(2); // "42.00"

    // And it is understandable that without parens you get a syntax error
    42.toFixed(2); // SyntaxError: identifier starts immediately after numeric literal

    // But numbers with decimals work fine without parens (WTF?)
    42.888.toFixed(2); // "42.89"

    // And whole numbers with two dots work as well (WTF?)
    42..toFixed(2); // "42.00"

    // Hey, so what about 3 dots!? Firefox gives XML-related error (WTF?)
 
Could be worse.
 
@dievardump I wish I saw flags
 
Same
 
Who needs numbers anyway?
 
7:05 PM
go farm rep then
;d
 
@rlemon Believe me you don't ...
 
@rlemon // TypeError: XML descendants internal method called on incompatible Number
Isn't it because FF recognized ext4 syntax ?
 
@OctavianDamiean orly?
 
(Or maybe just for plugins?)
 
7:06 PM
!!> "3" -+-+-+ "1" + "1" / "3" * "6" + "2"
 
@rlemon Maximum execution time exceeded
 
@OctavianDamiean why I ask?
@Zirak ohh common man
 
Because there's people that think it's fun to flag shitloads of messages just for the luls.
 
!!> window.document.write('trout');
 
ahh well I would like to at minimal see when my shit is flagged :P
 
7:07 PM
!!> "3" -+-+-+ "1" + "1" / "3" * "6" + "2"
@dievardump ReferenceError: document is not defined
@Esailija "42"
 
Maximum execution time exceeded
:5076887 Maximum execution time exceeded
 
You get disturbed by totally pointless flags or flags on messages you have no context to. :D
 
@Zirak you have a broken build :D
 
@Zirak can you add that to the bot to listen for flags and notify us when they have been issued in the room ?
 
@dievardump ReferenceError: window is not defined
 
7:08 PM
@dievardump Maximum execution time exceeded
 
!!> function test (a) { if (undefined = a) { a = {} } return a; } undefined === test(null)
 
@rlemon Maximum execution time exceeded
 
@rlemon TypeError: Cannot assign to read only property 'undefined' of #<DedicatedWorkerContext>
 
!!> (function(){}())
 
@SomeKittens undefined
 
7:09 PM
@SomeKittens Maximum execution time exceeded
 
!!> console.log("test");
 
undefined
Logged 1:"test"
 
@SomeKittens Maximum execution time exceeded
 
!!> (function truite(){ truite(); }());
 
@dievardump Maximum execution time exceeded
 
7:10 PM
@dievardump RangeError: Maximum call stack size exceeded
 
!!> Math.min() < Math.max()
 
@rlemon Maximum execution time exceeded
 
@rlemon false
 
:) Impossibru
 
!!> console.log('Maximum execution time exceeded');
 
7:11 PM
undefined
Logged 1:"Maximum execution time exceeded"
 
@dievardump Maximum execution time exceeded
 
!!> return false;
 
Maximum execution time exceeded
:5076943 Maximum execution time exceeded
 
@SomeKittens SyntaxError: Illegal return statement
 
!!> parseInt(null, 24)
 
7:11 PM
@rlemon Maximum execution time exceeded
 
@rlemon 23
 
!!> function(){return false;}
 
@SomeKittens Maximum execution time exceeded
 
@SomeKittens SyntaxError: Unexpected token (
 
I am bad at this.
hides shame
 
7:12 PM
!!> new Array([],null,undefined,null) == ",,,"
 
@rlemon true
 
@rlemon Maximum execution time exceeded
 
ohh JS - you so crazy!
 
@Esailija you won't believe...
Im still working on it.
 
!!> var foo = [0]; console.log(foo == !foo); console.log(foo == foo)
 
7:14 PM
@rlemon Maximum execution time exceeded
 
undefined
Logged 1:true
Logged 2:true
 
@Amaan still up ?
 
Yeah
 
aiight i just added something u will like ;-)
 
!!> ie-754
 
@rlemon ReferenceError: ie is not defined
 
@rlemon Maximum execution time exceeded
 
@Amaan how u like it now ?
 
WTF ? how come console.log(foo == !foo); console.log(foo == foo) and both true ?
 
7:18 PM
@RoyiNamir Magic
 
@RoyiNamir Magic of [0]
 
@Amaan did u tried shooting in the new demo ?
 
@Abhishek Yeah, looks neat
 
True Magics are only in c#
 
@RoyiNamir no
true magics are only in C and C++
 
7:19 PM
!!> 9999999999999999
best one yet!
 
@rlemon 10000000000000000
 
@rlemon Maximum execution time exceeded
 
NO , really , whats so special with [0]
 
:D
 
7:19 PM
@Amaan have a look at the function rayCast
 
Later
I'm about to sleep now
Got an exam tomorrow as well
 
!!> Number.prototype.isInteger = function() { return this === Math.floor(this); }; var x = 1; console.log(x === Math.floor(x)); console.log(x.isInteger());
 
@Amaan whats so special with [0] ?
 
@rlemon fail
 
@rlemon Maximum execution time exceeded
 
7:21 PM
undefined
Logged 1:true
Logged 2:true
 
lol
 
@Amaan good luck
@rlemon jsfiddle.net/darkyen/C99LL/5/show are u satisfied ?
 
how teh fuck can that work in my bot
 
@Esailija how come the logged1 is true ?
 
inception
FTR, return this === Math.floor(this); is always false
 
7:23 PM
@RoyiNamir wtfjs.com
 
so it's weird that my bot gives true
how can it be?
OH WAIT
bot is in strict mode
so this can be a primitive
 
[0] is an array which has elements , length>0 so it is not supposed to be falsy
0 is falsy
 
Wait. I don't know either
 
where am i wrong ?
 
I forgot
 
7:26 PM
hehe
[0].length
> 1
amaan AFAIK
[0] will make an array wth an element 0
inside it :$
[0][0]
 
even an empty array is not falsy
 
[0]==true
false
)chrome)
 
[0][0]
0
 
== true is not same as testing for falsiness/truthiness
 
[] == true
false
[]==false
true
 
7:28 PM
Yeah
 
it's exactly the same as == 1
 
[0] == false returns true
 
@Esailija you mean when ==true is like ==1 ?
 
yeah
 
7:29 PM
@Esailija you can do return Number(this) === Math.floor(this);
 
@rlemon don't have to in strict mode ;D
 
hey all
 
!!> (![]+[])[+[]]+(![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]
 
can someone tell me why this fiddle takes so retardedly long in IE7 and 8? jsfiddle.net/Y6cQP
 
@rlemon Maximum execution time exceeded
 
7:30 PM
@rlemon "fail"
 
![0] == false also returns true
 
@AndyPerlitch because your using a giant rock to smash strings of HTML into the Document...
 
@rlemon it's not that
there are 2071 option elements by default
 
JavaScript room has changed my coding style a LOT ! pastie.org/4582230
 
@Esailija oh shit , you right , if ((function(){return true;}())==1 ) alert('1');
 
7:31 PM
@rlemon hahah ok so how can this be done differently
 
@Esailija if ((function(){return true;}()) ) alert('1');
 
@Esailija doesn't IE not like large hunks of htmlStrings being passed into innerHTML ??
 
@RoyiNamir it's in the specification
in the abstract equality comparison algorithm
 
still didnt get an answer why [0]==true is false
 
@rlemon no, you can see it if you just remove the elements: jsfiddle.net/Y6cQP/2
 
7:34 PM
what is most weird is : [0]==0
true
 
it's the removing of 2073 elements that takes time
convert array to primitive, then compare that to 0
so 0 == 0
+[0] === 0
String([0]) === "0" == 0
 
@Esailija only one single contained array ?
 
@Esailija ahhh no ie so...
 
@Esailija there a better way to remove those elements?
 
@Esailija @rlemon Yeah, I know, I fucked up the eval listening thing.
!!/todo add "fix > code"
 
7:36 PM
@Zirak Item(s) added.
 
@Zirak Item(s) added.
 
wow
@AndyPerlitch no, why the hell do you have 2073 options
 
so that idiots w/ js disabled can still find their model
 
@Esailija idk how jQuery handled this.. $("select").replaceWith($('<select>').html(filling_html));
 
I am just testing if simply removing the select element is faster
 
7:38 PM
lemme try that
 
@rlemon Probably not. To get even a chance to view flags, you need to have some amount of reputation, and I don't think flagging something triggers an event for everyone.
 
@Esailija isn't that why my code does?
 
@rlemon yes, removing select element is instant
 
@Esailija cool.
 
your code makes it fast
I mean, it's instant with the replacewith trick
 
7:39 PM
I'll star that... probably one of the only times I'll ever have it said to me.
 
:DD
 
@Zirak that stinks.
 
nice
but aw, now i have to reset the events on that select every time
thats ok though
 
@rlemon Just for testing though, flag one of messages
 
atleast ie doesnt have a heartattack for 10 seconds
 
7:41 PM
I am an idiot.
a big one :-/
 
@AndyPerlitch you could use event delegation
 
@Esailija ah so desu nehhhhh
 
flagging works. :)
 
kept on refreshing jsfiddle fullscreen demo page .. and was changing code on the localhost :-/ ... half an hour 400 changes and then i see the url ... THE HECK I REALLY AM AN IDIOT!
 
@KyleTrauberman we were trying to see if there was any event the chat bot could pick up on
 
7:42 PM
ahh
 
Nope, didn't see anything special
 
we tried to get it running in C# - no dice :)
 
thanks @rlemon, @Esailija
 
@Esailija If I have a page which listen to a resize event , and the iframe inside of it triggers(jquery) this event , will the page's function ( for the resize) will fire ?
 
how would it trigger it
 
7:45 PM
$(window).trigger('resize');
 
wait - if you do $(iframeWindow).trigger("resize") does it trigger that also in the $(ifameElement).on("resize")
 
@Esailija Ive made a sample , the alert is shown but not the resize jsfiddle.net/FbXBC/1
 
@AndyPerlitch I think the better approach (because i mean, you already have them there on load time) would be to hide the elements you do not want to display. I assume the purpose of this is to reduce the overall list?
 
@rlemon yes but i quickly learned that setting display:none on options doesnt work in several browsers
go figure
 
7:48 PM
which browserS?
i'm curious because i've never heard that
 
Jul 4 at 21:44, by ThiefMaster
user image
 
@Zirak :-/
i just saw it on fb
 
mark said it here:
 
@Zirak it's not the same.
 
26
Q: Hide options in a select list using jQuery

kidrobotI have an object with key/value pairs of options I want to hide/remove from a select list. Neither of the following option selectors work. What am I missing? $.each(results['hide'], function(name, title) { $("#edit-field-service-sub-cat-value option[value=title]").hide(); $("#edi...

in the comments
 
7:49 PM
but @Abhishek this pic's been shown here dozen of times
 
@FlorianMargaine \o
 
@FlorianMargaine My bed and your bed are different beds. Yet, they are still beds.
 
@Zirak worst analogy ever
 
the cross-browser "solution" is to remove the options:
 
7:49 PM
Yea, it's not the same, one is horizontal, the other one is vertical. :D
 
@SomeKittens read "python"
 
31
A: jQuery disable SELECT options based on Radio selected (Need support for all browsers)

Paolo BergantinoThe proper way to achieve the functionality you want is just to remove the options. As you discovered the hard way, disabling individual options is not supported particularly well across browsers. I just woke up and feel like programming something so I whipped up a small plugin to easily filter a...

 
@FlorianMargaine import joke?
 
are you sure that is not just jQuery?
 
nah, just the "plagiarism" thingy :D
 
7:50 PM
erm open it in full screen /show
 
@Abhishek don't need to
 
@rlemon pretty sure but i guess i didnt look too far into it...
 
but it's quite horrible
the blink when you shoot, that is
 
@AndyPerlitch no i got it now. ie6/7 do not play well
 
otherwise, good great job :)
 
7:51 PM
xD thats why i said open in full mode
 
yea... and my client's user-base is stuck in 1999
 
i am trying to figure out whats making it flicker
 
is it me or the bullet's speed depends on the distance it has to do?
 
Lot of humour
 
@FlorianMargaine it depends
 
7:53 PM
@dievardump nice one x)
 
@rlemon im so close to just disregarding the non-js users and loading it in with an ajax request
 
aiight
gn :P
 
Ludum Dare #24 in 5 hours. Time to feel horrible that you're so incompetent you won't be able to even do anything half-assed.
 

« first day (678 days earlier)      last day (4286 days later) »