« first day (817 days earlier)      last day (4129 days later) » 

10:00 AM
hello everyone
 
You're missing a URL parameter on your WS connection URL.
 
@OctavianDamiean Yeah I saw the 99999999, but it doesn't work still..
 
@GNi33 o/
Did you already start putting together your gaming rig? :P
 
I think I'm going to open a SO question.
 
I want to make something like this. > youporn.com/watch/157651/hentai-3d-hard
But without out the guy.... just a model stripping down
 
10:04 AM
@AndréSilva Put that code into a gist or something and link me to it.
@user1867842 Mate, you shouldn't share porn material here in chat.
 
done it lol
 
what? why's there a youporn - link in here?
 
@OctavianDamiean 1 second.
 
sorry.
 
@OctavianDamiean no, not yet
 
10:06 AM
@GNi33 DO EEEET! DO EEEEET NAAAAOOO!!
 
And any idea of how I can do something like that. using win32 and OpenGL is not the path I want to take. That being said is there any way I can do something like this ?@OctavianDamiean
 
pretty sure that it won't be too useful for anyone in this room, but i like the idea
 
present for my homeboys (because im bored) @GNi33 @OctavianDamiean @AndersMetnik @AndréSilva.... showing off my new found jquery skills lol codepen.io/rusticblonde/pen/wbICF
 
wait, are we the jQuery boys?
 
10:11 AM
WHA!
We're the JavaScript bros!
 
Are you a #WordPress developer who has availability and interested in an exciting project, get in touch with @ByAssocOnly now!
Yo, @KirstyHarris ^
 
JS ooops!
:O
i missed you! @amaan i apologise!
 
What?
 
OOOO!...
 
Oh, the mass ping
It's alright :p
 
10:12 AM
So @OctavianDamiean did you see it ?
@AmaanCheval Ping !
 
Pinged you because I thought you may be interested
 
Oh, you sent me a link. I forgot.
 
@AndréSilva Sup?
 
@AmaanCheval You were complaining about mass ping, so I decided to ping you one more time.
 
@AndréSilva console.log(WS.url);
Does the URL look right?
 
10:14 AM
@OctavianDamiean ws://sockets.or.stackexchange.com/events/17/a580db8297d943a9aa25e16b263c6a49?l=‌​99999999999
 
@Zirak makes the bot work with WebSockets now, I think
 
@AmaanCheval It already did ages ago. :)
 
Anyone with Chrome to test the code ?
 
@AndréSilva That's not the problem but make sure not to name JS objects you don't want to instantiate starting with upper case.
 
10:17 AM
@OctavianDamiean Hm, ok, I'll rewrite to fix some normalization problems
 
Man I'm so badass. I even forgot that I wrote the script ...
 
Dude..
I think my fkey is fucked up
 
Quite possibly.
 
10:22 AM
On your script I see :
 data: window.fkey({
                roomid: window.unknown_users_roomId
 })
On Ziraks :
data : fkey({
           roomid : roomid
}),
 
And on mine
fkey().fkey
Which returns a fkey, but I have no idea if it is working or not.
 
That doesn't look quite correct.
fkey is a function expecting the fkey as a parameter.
 
Didn't know that.
I'm going to correct that. But first I need to smoke.
 
10:24 AM
brb quickly
 
:D
Captain Obvious at your service.
 
kback
 
Well.. appearently this doesn't work..
        var xmlhttp;
        if (window.XMLHttpRequest) {
          xmlhttp = new XMLHttpRequest();
        } else {
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange = function () {
          if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            StartWS(xmlhttp.responseText);
          }
        };

        xmlhttp.open("POST", "/ws-auth", true);

        xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
 
10:41 AM
No, you gotta call the fkey function providing the fkey itself to that function and sent the value returned by that function.
Not just the fkey.
 
Makes sense
window.fkey({
          roomid: window.unknown_users_roomId
        });

        xmlhttp.open("POST", "/ws-auth", true);

        xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        xmlhttp.send("fkey=" + fkey().fkey);
?
 
xmlhttp.send("fkey=" + fkey({ roomid: window.unknown_users_roomId }));
Whoops, that function expects the room id not the fkey, sorry ...
My bad.
 
._. So what do I do? Return to what it was ?
 
xmlhttp.send("fkey=" + fkey({ roomid: unknown_users_roomId }));
This should work.
 
Uncaught SyntaxError: Unexpected token <
 
10:47 AM
o_O
 
I console.log(response)
And returned the error page
I'll with jquery ajax..
 
@AndréSilva What the hell? The response contains an error page?
 
Yes
SO default error page..
With star trek dudes..
By the way, I used your ajax connection and my Websocket function
 
°¯¯¯¯¯¯¯°
 
$.ajax({
  url: '/ws-auth',
  type: 'POST',
  data: window.fkey({
    roomid: window.unknown_users_roomId
  })
}).success(function (data) {
  connectSocket(data.url);
});

function connectSocket(response) {
  var WS = new WebSocket(response + '?l=99999999999');
  console.log(WS.url);
  WS.onopen = function () {
    console.log('Connection Open!');
  };
  WS.onmessage = function (text) {
    console.log(text);
  };

  WS.onclose = function (text) {
    console.log(text);
  };

  WS.onerror = function () {
AAAAAAAAND
CloseEvent.code = 1006 :(
 
10:52 AM
And you're running it from within this chat window?
 
Of couse..
I'm with console open here. Using chrome.
 
Alright.
Run that code step by step in the console.
That means, run a XHR against ws-auth from the console.
 
Using your ajax function right ?
Because my XHR is fucked up badly.
 
Well then use mine. I just used the basic jQuery ajax function.
 
Yeah I saw.. The problem is how the data was being formed..
 
10:55 AM
What do you mean? The encoding?
 
And I just saw how it is encoding..
Same thing I was doing in the first place ;(
 
So, back to the begining...
 
Did you run that XHR in your console?
 
Not yet sorry.
 
10:57 AM
By the way. I'm referring the jQuery ajax function as well when saying XHR since it is just the same thing.
 
So what do you want me to log ?
The send function or something ?
 
$.ajax({
  url: '/ws-auth',
  type: 'POST',
  data: window.fkey({
    roomid: window.unknown_users_roomId
  })
}).success(function (data) {
  console.log(data);
});
 
--' It is doing that already
ws://sockets.or.stackexchange.com/events/17/2ba2a2c70f194de1accba56db0cc03c9
 
Good!
Now just this.
 
Just to be sure.. Object {url: "ws://sockets.or.stackexchange.com/events/17/ffefd8d9219340e5ba9037fb2f6ca31a"}
 
11:00 AM
var socket = new WebSocket(response.url + '?l=99999999999');
 
Same thing..
ws://sockets.or.stackexchange.com/events/17/8257ef73b0b242f8a5d2bf09e31aefa4?l=99999999999
CloseEvent {reason: "", code: 1006, wasClean: false, clipboardData: undefined, cancelBubble: false…}
 
o_O
what does socket.readyState say?
 
Connecting!?
wut
 
console.log(socket.readyState)
It doesn't open.
 
11:02 AM
Yea, 0 means connecting.
 
It won't even error it..
 
Which is strange.
 
I thought it was firewall problem..
 
Yep. I put the console.log(socket.readyState) inside the onclose and I got 3
 
11:04 AM
Funny.
 
Tragic.
 
Just did that myself and it works for me.
 
What browser?
 
Google Chrome Version 23.0.1271.97
On Ubuntu though.
 
On Windows 7 using Chrome 23.0.1271.97
 
11:07 AM
Strange then.
 
Maybe the chat just hates you.
 
Is it possible.. that for some strange reason.. SO gives permission to users with high upvote quantity ?
 
Nah, otherwise you wouldn't be able to chat right now.
Your browser does the same thing.
 
But SO uses websockets to chat ?
 
11:09 AM
Well, that's funny when I think about it for a bit.
 
You are chatting with me using that very same browser refusing to open the websocket connection.
 
SO chat does not require WebSockets though
 
The chat is some sort of hybrid. It uses XHRs to send messages.
And usually WebSockets to retrieve messages.
 
why is that?
 
11:11 AM
@AndréSilva You could analyze the output of your "Network" tab in the developer tools in Chrome.
@ThiefMaster Does it fallback to XHRs exclusively if there is a WebSocket connection issue?
 
@OctavianDamiean How ?
 
@AndréSilva Just hit F12 and click on the "Network" tab. Then write something and wait until someone sends some messages.
Then take a closer look at the requests/responses.
 
{
  "startedDateTime": "1969-12-31T23:59:59.000Z",
  "time": -1,
  "request": {
    "method": "",
    "url": "ws://sockets.or.stackexchange.com/events/17/2ba2a2c70f194de1accba56db0cc03c9?l=99999999999",
    "httpVersion": "HTTP/1.1",
    "headers": [],
    "queryString": [
      {
        "name": "l",
        "value": "99999999999"
      }
    ],
    "cookies": [],
    "headersSize": 102,
    "bodySize": 0
  },
  "response": {
    "status": 0,
    "statusText": "",
    "httpVersion": "HTTP/1.1",
StatusText: Success ._. Type Pending lawdy
Post to ws-auth 200 - OK
Now, the WebSocket returns a status text of success but type is pending.
Same thing for Time Latency :(
:(
 
The world just hates you mate.
 
:(
So I won't be able to write a greet bot...
 
11:24 AM
Did you already try Firefox?
 
:( Okay.. I'm going to try..
Firefox couldn't connect to the server ws://sockets.or.stackexchange.com/events/17/37266f2585194a9299162d24dc51ed74?l=1‌​4150672
 
@OctavianDamiean I think so
 
wtf is with google fonts atm... shocking!
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Pacifico::latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
  '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})(); </script>
This is there own js for importing but its erroring in Cloud 9... @import aint working and neither is the link to the file.... epic fail there
 
So, no hope on this problem ? :(
 
@AndréSilva Nope. It looks like you're doomed.
 
11:34 AM
can anybody tell me about ajax based calculator tutorial or any link
 
I've read about making the timeout longer... Is it possible ? ._.
 
@RohitGoel °¯¯¯¯¯°
 
@OctavianDamiean ?
 
is there a way that if i did an onclick function to fadeIn a div, that i can stop it, then on another click fadeOut that Div?
 
ajax-based calculator?
can you tell me the motivation behind something like that?
 
11:44 AM
@KirstyHarris :D
 
@abhishek!!!!!!
 
guess whut :D
 
@GNi33 Now you can utilise the power of the cloud to perform simple arithmetic!
It sells itself!
 
Wut! :D
 
I JUST FINISHED MY FIRST APP :D
x-platform app i must say
Android , iOS , WP 7.5 + & Browsers
 
11:46 AM
EEEEEEE!!! Can i see!
 
@phenomnomnominal sounds legit
and for uber-calculation - function - whatever - stuff, use the wolfram alpha api
 
Exactly
 
Do some sweet table layouts and you have the best app ever.
@KirstyHarris FUCK YOU
 
hahah!
 
11:49 AM
YOU BITCH
 
aaaaaah
 
You've learned, though
 
Well done
 
@KirstyHarris, That looks GREAT
 
11:49 AM
well... to play fair
<-- that guy just lost
 
ha! Ive lost so many times!
 
Losing the game is an infinite loop right?
 
!!/guesswhat
 
@OctavianDamiean Command guesswhat does not exist.
 
miss harris shows some potential, way to go
 
11:50 AM
 
!!/tell KirstyHarris guesswhat
 
@OctavianDamiean Command guesswhat does not exist.
 
FU SO BOT!
 
@KirstyHarris :D
 
@GNi33 i did didnt i!
does desk dance
 
11:51 AM
@KirstyHarris it should be out by month's end
now time to bind it to existing database
 
@Abhishek Awesome!
 
oooo awesomeness!
 
and a nice moneytizer :D
 
Congrats
 
:D
i am so happy and i know it
 
11:52 AM
Hahaha, money-tie-zer
 
!!/listcommands
 
@OctavianDamiean 420, 5318008, help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, get, learn, bewbs, i_am_a_robot, aliens, ym, format, happynewyear, tell2, 3point14, camel, echo, ihatelanadelrey, fa, vk1, vk2, rlhd, convert, nudge, undo, timer, stat, beautify, hang, todo, google, spec (0.04 pages left)
 
!!/ban OctavianDamiean
 
@Abhishek: who on earth is 'Alexis Nicole' :p ?
 
@AmaanCheval Could not process input. Error: Object NaN has no method 'replace'
 
11:53 AM
Grrr
 
@jAndy did u see my new pen? codepen.io/rusticblonde/details/ckhaK
 
@AmaanCheval You can't mindjail me. :D
 
@Zirak Fix the bot's ban command
@OctavianDamiean It doesn't work on anyone!
I tried mindjailing @AndréSilva yesterday
 
I know but even if it would.
 
@KirstyHarris: lol Ms. Harris... I thought better of you before...
I lost the game
 
11:54 AM
where is the jquery mobile channel?
 
var playTheGame = function(thinkAboutTheGame) {
  if (thinkAboutTheGame) {
    loseTheGame();
  }
}

var loseTheGame = function() {
  thinkAboutTheGame();
}

var thinkAboutTheGame = function() {
  playTheGame(true);
}

playTheGame(true);
 
YES!!!!!! Domination ... :P hahaha!
 
@AmaanCheval ._. what is mindjailing.
 
@AndréSilva Banning you from using the bot
 
i think personally its just there to catch thick fecks like me out... i lose all the time.
 
11:55 AM
@AmaanCheval :(
 
In jquery mobile we are trying to cache external pages that are prefetched. They are removed from the DOM cache after visiting. How can we avoid this?
 
@JNDPNT localStorage
 
@phenomnomnominal You want to store whole pages in localStorage ?
 
No, but maybe templates
 
But jquery mobile already caches pages, so I just need to find out how to avoid the default removal
 
11:57 AM
Oh external pages
 
When a visitor comes on the page, we need to tell jquery mobile to not remove this page. We tried binding to different events and set data-dom-cache to true, but they still got removed
 
@AmaanCheval You can't mindjail other owners. teehee
 
@OctavianDamiean Yeah, figured. Andre isn't an owner, though
 

« first day (817 days earlier)      last day (4129 days later) »