« first day (587 days earlier)      last day (4360 days later) » 

3:00 PM
div should be treated as p but so often now we use divs inline other elements as our goto container.
so bye bye divs and spans.
 
@rlemon why bye bye Divs ?
 
because they are not semantic elements
 
but everyone uses them
 
well, fuck everyone
 
@TimeToThine tell me how I will convert a div in markdown... or try to read some markdown that is riddled with 200 divs for layout purposes.
 
div doesn't have anything useful for markdown
 
I neva heard markdown before
 
@Esailija well if everyone treated it as a block level item... I could treat it as a p
 
you are using it as we speak
 
I dont know any HTML based website which is not based on divs
 
3:02 PM
@rlemon div is usually just a generic container and you have p when you have paragraphs
 
markdown is human readable syntax for text formatting.
it is what SO uses to format the questions and answers and in the chat
@Esailija i know, but technically speaking they both are block level containers.
 
it's pretty hard to tell when div is used as paragraph
for example SO comments are just in adiv
 
it's the 'well technically they should be treated as paragraphs...` but because we use them in umfinity number of ways... I cannot make that assumption.
 
yea
 
what would we gonna use if not divs
 
3:04 PM
@TimeToThine nothing. we are talking about MARKDOWN
not MARKUP
 
thought so
if few of your work mate dont like you then what one should do :D
 
lols
what do you do for work
 
@TimeToThine google markdown, you'll understand quickly
at least, you should.
 
@TimeToThine try to be less annoying
possibly show up to work with a 12 pack and some cheetos
if that doesn't work... then grow a moustache... everyone loves a guy with a kick ass moustache
 
I'd say beard.
 
3:11 PM
nahh..
 
what, you don't like a guy with a beard?
 
Ok. You're right.
 
:)
i mean.... :-{D
 
in JS, passin an argument to a function is like passing a pointer to that argument variable? or it makes a copy of it inside the function?
 
3:17 PM
test it out
 
makes a copy
except if it's an object
objects are passed by reference
 
it's not a hard thing to test.
 
ok, thanks
 
@rlemon its the same guy who nicked my idea and made a website
 
3:20 PM
lol
 
why is the first object 1 too?
 
@TimeToThine so pour sugar in his gas tank and call it a day
 
lol it got downvoted though
xD
 
@rlemon sounds like a plan lol
 
@Esailija you rep whore
 
3:23 PM
LOL
just having a good day for once
it seems being the first to answer is really important
usually more important than your answer being correct
 
3:35 PM
my next job gonna be as Javascript developer altho I dont know much @rlemon LOL
 
@TimeToThine Are you talking about Zuck?
 
the one who made facebook ? lol
am talkin about myself :)
 
What? You stole your own idea?
That's original!
 
can someone help with simple jquery?
 
@Oleg i did that once... tracked myself down, kicked my own ass for it too! last time I fuck with me..
 
3:38 PM
<asp:TextBox ID="txtEIN" runat="server" onblur="fnLookupEIN" >
 
@ScottSelby of course: function simple() {jQuery = null;} simple();
 
shouldn't that, make this fire
 
oooh, @Oleg no i wasn't talkin about Zuck, its one of my mate who did
 
function fnLookupEIN(){

var name = $("#txtEIN").val();

$.ajax({
type: "POST",
url: "Default.aspx/Validates",
data: "{name:'" + ein + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
$("#result").text(msg.d);
}
});
return false;
}
 
@TimeToThine Forget it, it was a joke.
 
3:40 PM
@Oleg sorry mate, my head is spinnin today :L
 
data: "{name:'" + ein + "'}" Y U NO JSON.stringify(); ???
JSON doesn't accept a:'b'
It must be "a":"b"
 
especially, data doesn't accept strings (except urlstringified ones)
 
Double quotes, all in quotes. Quote all your JSONs.
 
I can fix that part, I just can't even get anything to happen when the text looses focus
 
and var name = $("#txtEIN").val();
You do not use it
 
3:42 PM
ahhhhhhh - yes i do
 
isn't it suppose to be var ein =
 
var ein = $("#txtEIN").val()
fixed
 
Besides.
ASP is beurk
 
anyways, I sucks at javascript, and can't even get it to fire , that is the first problem, then I can watch what the data looks like back and forth
nothing happens on onblur
 
and use data: { name: ein }
anyone knows yahoo cocktails? developer.yahoo.com/cocktails
 
3:45 PM
wTf is this

http://harmon.ie/dontsharepointwhilewalking?ad_id=27084&gclid=CO3rtrnjm7ACFWwntAod9lgAXA
 
@ScottSelby It's not javascript related.
 
one week i'm waiting for a strat-up to give me a day and a hour for an interview. Can i tell them to f**k off ?
 
The problem lies in asp.
 
thanks
but..... since this is a javascript room - you'd think there is at least someone who uses javascript in the .net environment
guess not
that does help though
 
@ScottSelby I'm not familiar with asp.net, so I can't be sure... but shouldn't you setup the fnLookupEIN function somewhere?
 
3:50 PM
I thought that was the function
I just need to call it properly from asp
 
onblur="fnLookupEIN" means: when blur event occurs, call function "fnLookupEIN".
So the function fnLookupEIN has to be defined somewhere.
If not - nothing will happen.
 
@Oleg - that's what this guy is
function fnLookupEIN(){

var name = $("#txtEIN").val();

$.ajax({
type: "POST",
url: "Default.aspx/Validates",
data: "{name:'" + ein + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
$("#result").text(msg.d);
}
});
return false;
}
 
onblur="fnLookupEIN();" < try this
Also, be sure that fnLookupEIN is available to the caller (must be in global scope in your case).
 
@oleg - worked , thanks
 
3:59 PM
@ScottSelby No problem. Stackoverflow automatically withdraws $5 from your account and transfers some of that sum to me every time you are being helped here.
 
cool man - sand me a bill - ha
 
They take 20% commission though... bastards!
var foo = function() {
  var t = new Date();
  foo = function() {
    return t;
  };
  return foo();
};
Does it even work?
 
idk
but i am pretty sure there is a better version for making static variables in javascript
right @Esailija ?
 
what
!!> const aids = "static"; aids;
 
@Esailija SyntaxError: Use of const in strict mode.
non strict only
 
thats a static variable ?!?!
 
function foo () {
    return new Date();
}
That no good?
!!> new Date().toString();
 
@Oleg [object Date]
@Oleg "Fri May 25 2012 19:06:10 GMT+0300 (FLE Daylight Time)"
 
19:06, interesting
 
4:07 PM
According to the blog
its not
JavaScript doesn't have static variables like C++ so anytime the outer function foo is called, it creates a new instance of the variable t meaning the value is different across invocations.
 
!!> [] + {}
 
@rlemon "[object Object]"
 
!!> {} + []
 
@rlemon 0
 
WTF JAVASCRIPT!
 
4:16 PM
I see you like the WAT talk.
 
lol
@rlemon
!!> 1 + {}
!!> {}+1
 
@Abhishek "1[object Object]"
 
even funnier
 
@Abhishek 1
 
@rlemon { <-- start of expression. {} //-> undefined
!!> {}
 
4:18 PM
@AndyE "use strict"
 
ok, that must be broken.
 
!!> {} + {} + 1 + [] - 2
 
@rlemon NaN
 
!!> this = null;
 
!!> ({}) + 2
 
4:19 PM
@Oleg ReferenceError: Invalid left-hand side in assignment
@AndyE "[object Object]2"
 
@AndyE ({}) looks like a vagina - it is the hug emoticon for BBM... I lul every time my gf sends me it. (she will do kiss face, then hug... i see on my android kiss face, then vagina)
 
!!> this.toString();
 
@Oleg "[object DedicatedWorkerContext]"
 
lol
 
!!> navigator.userAgent;
 
4:20 PM
@Abhishek Security Exception: cannot access navigator
 
aww man ..
!!> ( {}+[]+[]+{} ) -2
 
@Abhishek NaN
 
!!> {} + [] + []
this one is funny
 
@Abhishek "0"
 
see :P
 
4:22 PM
!!> terminate()
 
@AndyE ReferenceError: terminate is not defined
 
bah
 
!!> ( {} +[] ) === ( {}+[]+[] ) // wtf javascript
 
@Abhishek SyntaxError: Unexpected token }
 
!!> unicorn();
 
4:23 PM
@Abhishek SyntaxError: Unexpected number
true
:3857897 ReferenceError: unicorn is not defined
 
Y U NO HAZ unicorn();??
 
WT WT WT WTF JAVASCRIPT ?
{}+[] ; // 0
{} + [] + [] ; // "0"
and they are same .. wtf is javascript on weed ?
({}+[]+[]) ; // 0
Anyways just wondering
whats the petrol price in USA / Canada ?
 
@Oleg , can you help with this
function fnLookupEIN(){
var ein = $("#txtEIN").val();
$.ajax({
type: "POST",
url: "Default.aspx/Validates",
data: { "name" : ein },
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
$("#result").text(msg.d);
}
});
return false;
}
it's sending bad JSON
i tried - data: name : ein,
 
What do you mean by "it's sending bad JSON"?
Please explain "bad".
 
{"Message":"Invalid JSON primitive: name.","StackTrace":"
name=10943022 , ( i typed 10943022 in txtBox)
 
4:36 PM
!!> var a = [0, 1, 2, 3]; a[[2]] === a[2];
 
@rlemon true
 
Javascript; You so crazy.
 
data: { "name" : ein }, will produce a GET query ?name=10943022
I might be mistaken, but that's written in the manual.
 
!!> _=$=+[],++_+''+$
 
@rlemon ReferenceError: $ is not defined
 
4:38 PM
oh, I could use get query
 
!!> +!![]+''+(+[]) == 10
 
@rlemon true
 
sweet... just found a new way to make "10" in javascript!
 
!!> i; i;
 
4:39 PM
@Oleg ReferenceError: i is not defined
 
!!> (![]+[])[+[]]+(![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]
 
@rlemon "fail"
 
@Esailija "win"
 
!!> self
 
@Oleg [object global]
 
4:41 PM
!!> console.log(self);
 
@Oleg undefinedConsole log 1:[object global]
 
!!> self.postMessage('hi');
 
@Oleg hi
 
!!> for (var i = 0; i < 999; i++) {self.postMessage('All your base are belong to us!');}
 
@Oleg All your base are belong to us!
 
4:43 PM
:(
 
@Oleg All your base are belong to us!
 
!!> [Array(Math.floor(Math.random()*100))).join((![]+[])[+[]]),Array(Math.floor(Math‌​.random()*100))).join((typeof a)[+[]])].join('');
 
@rlemon SyntaxError: Unexpected token )
 
!!> [Array(50).join((![]+[])[+[]]),Array(50).join((typeof a)[+[]])].join('');
 
@rlemon SyntaxError: Unexpected token ILLEGAL
 
4:47 PM
!!> importScript
 
"fffffffffffffffffffffffffffffffffffffffffffffffffuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu"
:3858045 ReferenceError: importScript is not defined
 
:(
 
@Esailija why didn't [Array(Math.floor(Math.random()*100)).join((![]+[])[+[]]),Array(Math.floor(Math.‌​random()*100)).join((typeof a)[+[]])].join(''); work?
 
!!> function o () { return o();}
 
but that last one did.
 
4:47 PM
@TomWijsman "use strict"
 
@rlemon in my console it says : illegal character
 
in mine it works :P
chrome
18?
19?
 
FF
12
I hate Chrome development tools
 
what
 
@DieVarDump o_O
 
4:50 PM
Yes. I find it way less dev friendly than firebug.
 
The chrome dev tools takes some getting used to for sure -- I use it often but definitely prefer firebug..
 
!!> var str = "eval(str);"; eval(str);
 
@TomWijsman RangeError: Maximum call stack size exceeded
 
lol
 
beats IE dev tools
hehe
 
4:53 PM
An abacus beats IE dev tools
 
haha
 
!!> var i = 0; while (i < 999999) { eval("var f" + i + " = function() {}; f" + i + "();"); }
 
@TomWijsman Maximum execution time exceeded
I wonder how you got it to call postMessage twice.. as it should terminate worker after first message
@Oleg
 
!!>self.postMessage('Test\nTest');
 
!!> [Array(Math.floor(Math.random()*100)).join((![]+[])[+[]]),Array(Math.floor(Math.‌​random()*100)).join((typeof a)[+[]])].join('');
 
4:56 PM
Test
Test
@DieVarDump SyntaxError: Unexpected token ILLEGAL
 
humpf
 
user1385191
 
user1385191
day by day…
 
it's the ' Math.random()*100 ' part which is bad
 
it doesn't even run on my console
 
4:59 PM
@Esailija when you past it from the chat, no
but if you del and rewrite the Math'random()*100 thing it works
 
@Esailija I didn't.
 
btw, the chat uses markdown, in which [] and () are special characters
 
!!> heyy
 
@Oleg ReferenceError: hey is not defined
ReferenceError: heyy is not defined
:3858135 ReferenceError: heyy is not defined
 
@MattMcDonald hum, just two of you calls ( the two lasr ) are comparable. No ?
 
5:01 PM
@Oleg ReferenceError: heyy is not defined
LOL. dude.
@Oleg ReferenceError: heyy is not defined
 
user1385191
@DieVarDump the last call just returns null
 
user1385191
because it's IE 6
 
don't ruin it for everyone
 
user1385191
I can only gain so much because Sizzle uses zero recursion
 
time to roll sleeves and rewrite it iteratively
 
5:03 PM
!!> Array(16).join((+[][[]]))+" "+(typeof+2)[3]+(![]+[])[1]+(!0+[])[+[]]+(typeof+1)[2]+(![]+[])[1]+(typeof+0)[+[‌​]]
 
user1385191
not going to happen
 
@rlemon SyntaxError: Unexpected token ILLEGAL
 
Dafuq
 
user1385191
Sizzle uses gEBTN("*") instead of recursion
 
chat doesn't like [] a lot
 
5:04 PM
Y U WORK IN CHROME CONSOLE!
 
The first one should be $('*').filter(function(obj) { return obj.className && obj.classNAme.length; } ); to be conmparable with your elementTree no ?
 
user1385191
I just wanted something with a function call
 
user1385191
and to see how Sizzle would handle an attribute
 
And Sizzle caches a lot of things, no ?
 
wait, why does it insert some weird unicode characters in there
 
5:05 PM
!!> var a; for (var s in self) {a += ' ' + s;} self.postMessage(a);
 
@Oleg (snipped)undefined global wl WebKitBlobBuilder XMLHttpRequest DataView Uint8ClampedArray webkitNotifications Int32Array location WebSocket MessageEvent MessageChannel webkitIDBObjectStore FileReader navigator ArrayBuffer Uint8Array onerror Float64Array Float32Array Uint32Array FileError webkitIDBTransaction webkitIDBKeyRange onmessage webkitIndexedDB Int16Array Uint16Array Int8Array webkitIDBFactory FileEx
 
user1385191
it's never going to be completely comparable
 
user1385191
but being 3-7x slower is a lot better than 10-15x slower
 
@rlemon hold on I'm gonna patch the invisible unicode characters away
!!> Array(16).join((+[][[]]))+" "+(typeof+2)[3]+(![]+[])[1]+(!0+[])[+[]]+(typeof+1)[2]+(![]+[])[1]+(typeof+0)[+[‌​‌​]]
 
!!> var a; for (var s in self.FileReader) {a += ' ' + s;} self.postMessage(a);
 
5:08 PM
Security Exception: cannot access FileReader
:3858216 SyntaxError: Unexpected token ILLEGAL
 
!!> var a; for (var s in self.navigator) {a += ' ' + s;} self.postMessage(a);
 
@Oleg Security Exception: cannot access navigator
 
boo
 
!!> Array(16).join((+[][[]]))+" "+(typeof+2)[3]+(![]+[])[1]+(!0+[])[+[]]+(typeof+1)[2]+(![]+[])[1]+(typeof+0)[+[‌​‌​‌​]]
@Esailija "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN batman"
code = (code + "").replace(/[^\u0000-\u00FF]/g, ""); did it :D
 
!!> Array(16).join((+[][[]]))+" "+(typeof+2)[3]+(![]+[])[1]+(!0+[])[+[]]+(typeof+1)[2]+(![]+[])[1]+(typeof+0)[+[‌​]]
 
5:10 PM
@rlemon "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN batman"
 
I love it!
 
how did you obfuscate that
 
Ok so it's done, i have a job
 
well... +[][[]] equates to NaN
then I just hacked around for the rest.
 
numBer < (typeof 2)[3]
 
5:11 PM
^ yup
and so on
 
I see
 
(![]+[])[1] == fAlse
etc..
 
m?
wait number yea
lol im so slo
 
lol
unfortunatly you cannot get the entire alphabet using that method. :<
 
after 15 hours open in one of my FF tab, my canvas game bugged :(
 
user1385191
5:14 PM
we need to get the entire JS community to read this article:
 
user1385191
so good
 
my grade 12 CS project (just a shooter) I lost my only two marks on because 1) the teacher couldn't beat the end boss... so deemed it unbeatable... bad UX mojo he said.... and 2) because he couldn't beat it he left it open all night and I had a timer overflow.
 
that's the one on jibbering
 
user1385191
yes it is
 
user1385191
5:16 PM
that server's buggy so I put the current FAQ on my host
 
holy shit how slow ie6 is
I just realised you are running single operation in the test code
 
user1385191
my code used to be about .5
 
user1385191
now it's 4.5-ish
 
what is the point of running any js in ie6 if it's that slow
:<
 
user1385191
because Sizzle cheats with a ton of native methods
 
5:19 PM
@rlemon working link please
 
user1385191
it's a fairer fight if they don't exist
 
user1385191
I'd test in older browsers, but JSPerf won't work in them
 
yea but I mean 12 op/s
so the browser will constantly freeze if you try to do anything with it
 
@copy lol you mean working system? this was in 2003
 
user1385191
did I tell you guys that the traverse methods work in IE 5?
 
user1385191
5:21 PM
my document sniffs don't though
 
any disks or HDD's with that code on it is long corrupt or bined
 
user1385191
(document is essentially an object, not a node-like one in IE 5.)
 
@rlemon The game ? Ohh you didn't save somewhere :-(
 
@copy lol back in 2003 I put online using Kazaa
so it might be floating around somewhere
Worms vs Birds 4000 X
and iirc there was a note on the cover page saying because everything is better with an X
 
@rlemon lol malware and windows-only
 
5:23 PM
man, it's been almost ten years since highschool. i feel mildly old.
 
I get 160kops for document.querySelectorAll("*[class]") in chrome
 
Nevermind
 
@copy lol def windows only
written in VB6
 
so I should not care about ie6 because it doesn't support something but because it literally can't run code fast enough to do anything useful
 
I mean kazaa (did not know that)
 
5:28 PM
did you also write a graphical GUI interface in VB6 to track ip addresses of killers?
 
@Esailija nope the GUI was a mixture of VB6 form controls and DirectX 2d graphics.
:P bauce
in retrospect, knowing it was going on my teachers pc, and knowing he wasn't too swift with computer (but was a CS teacher... fancy that) I should have installed some trojans.
Robert Lemon:
       Computer Science:   100%
ohh yea perfect grade
 
I failed at reddit
my first comment and it was downvoted
fuck that site
yea nobody would have suspected anything
 
lol well i did get like a 96 or something in the course anyways.
CE I got 103% :P eff yea!
final project we could build our own microcontroller or use a basic stamp II
 
user1385191
yeah I'm about 3x slower in FF 2
 
i choose to build my own, and if it worked (and only if it worked) you got an additional 10% for free :P
he didn't look at a single schematic or test anything other than the expected outputs
:) i like those types of bonus marks.
 
user1385191
5:39 PM
2x in o8
 
Hey all
Working on my hangman/wheel of fortune game:
thats where I am at so far.
what do u guys think so far?
 
5:58 PM
I can answer any question by looking at the source.
 
hangman in canvas... most of the code is for the rendering.
when I put it online I just used xhr to retrieve the game data (not secure, but not as easy to cheat)
 

« first day (587 days earlier)      last day (4360 days later) »