« first day (400 days earlier)      last day (3004 days later) » 

4:06 PM
@Sam - Looks like pham is working really well :)
 
Sam
Yeah
I'm still not quite happy with a few things regarding the matching algo though.
Nothing that can't be fixed. :)
 
except the first one where the questions differed in generation of javadoc for eclipse and intelli
Yes.. but its a good start
 
Sam
Yep
 
I would say great
:)
 
Sam
\o/
 
4:23 PM
Ada started.
 
Woah... Awesome... Pham works fine.
 
Sam
It would work better if I had a working PoS tagger.
 
@Sam Ah...
 
Sam
Which is really the last major piece of the puzzle.
 
BTW, I am still pondering how to create the cookie...
I am trying to do POST requests for all...
 
Sam
4:31 PM
That should be helpful
 
@Sam Wow!! Awesome. Thanks.
 
Sam
np
 
Er... Are we supposed to send password unencrypted?
 
Sam
It's over https
https://openid.stackexchange.com/account/login/submit
 
Great...
45c101e8-e6c2-4ba6-8ea4-c9c09f9e9df5 - This fkey is changing everytime for me.
ced1c668-4d16-45e2-8366-921cafc6d262 - :( :(
Is it expected?
 
Sam
4:33 PM
Hmm
 
And that's the cookieKey right
 
Sam
Not sure
 
Okay, is it the cookieKey?
 
Sam
Nope
 
Ah!!!
How do I get the cookieKey then?
OKay, lemme have a look at your code.
 
Sam
4:34 PM
The cookieKey is only used internally to help keep the library organised.
It's not needed for auth
Or anything else really
It's just a design path I chose for the project
 
Ah thanks...
So getting the fkey by parsing the HTML content is my responsibility or is there any way I can get it through some way or the other?
 
Sam
Nah, you have to do that your end.
afk for a min
 
:'( :'( - thinks: should have listened to sam
 
Sam
Ok back
Lol
Yeah, it's not simple
 
Am already doing it using JavaScript... So lemme try parsing it with jQuery.
 
Sam
4:42 PM
That should make things easier.
 
Awesome... Logged in. LoL.
Do we have an index of actions on the http://chat.stackoverflow.com/ as POST or GET?
 
Sam
?
There's no docs or method for getting possible actions, etc. if that's what you're asking.
 
for the websockets in chat there is this and this
 
@Sam To post a new message it is, http://chat.stackoverflow.com/chats/68414/messages/new
like that.
 
Sam
Yes
 
4:50 PM
No docs uh?
Ah...
 
Sam
You just have to go through the libs that are already out there.
 
Okay fine... I just need three HTTP Requests...
I already logged in.
 
Sam
Or emulate the actions yourself (get fiddler or something)
 
1. How to Join a room?
2. How to post a message?
3. How to Leave a room (I guess I saw this somewhere)
 
If you're using javascript I have an in-browser implementation here
 
Sam
4:51 PM
@rene Node
Server-side
 
@rene This is kinda helpful. But there's only answer for #2.
 
@Sam Yeah I saw
 
@Sam Thanks... 1. ???
That's the main. LoL.
 
Sam
Just create the websocket
(And don't ask what the quiet param is.)
 
4:53 PM
I am using through HTTP now... Not using WebSockets...
No I am not asking! LoL.
 
Sam
Then just GET the room via its url, I guess.
 
I could see only this: chats/join/favorite
 
Sam
I'm not too sure about chat when it comes to polling.
 
Shoudl I make the room favourite?
 
Sam
No no, that's for figuring out the user's ID.
Nothing related to joining a room.
 
4:55 PM
Ah... Gotcha... Just giving a GET request to http://chat.stackoverflow.com/rooms/68414 will do is it? :P
Lemme try that now...
Hope I am in the right room LoL.
 
Sam
Yes, no, maybe?
I've never tried doing it this way.
 
Nothing happened...
 
@PraveenKumar 1. is $.post('/ws-auth', { roomid: room, fkey: fkey().fkey }) I think
 
ws-auth?
Okay... lemme try that...
 
Sam
I thought you didn't want to use websockets?
 
4:57 PM
That is what I do in my init function
 
@Sam I am doing it using the normal HTTP...
Lemme see if it works.
 
I start of with this:
 
Hey, I got something like this:
 
$.post('/chats/' +  room.toString() + '/events', {
            since: 0,
            mode: 'Messages',
            msgCount: 1,
            fkey: fkey().fkey
        }
2
 
{
    "url": "wss://chat.sockets.stackexchange.com/events/68414/{some hashed}"
}
 
4:59 PM
Yeah, that is what you can use to get the websockets going
 
@rene Ah.. I am not using WebSockets...
 
user5915243
Hello, World.
 
:D :D :D
 
:)
 
user5915243
ChatBot Started.
 
user5915243
5:00 PM
Time: 1455382846
 
Sam
Congrats
 
nice.. nice
 
@Cat bye
 
Sam
Ok, well I'm going to start on this C# tagger. :(
 
Leave didn't work... :(
 
Sam
5:03 PM
I hate this library.
 
Ah $h!t... I screwed up.
 
Sam
@TheLostMind Corrected
 
@Cat bye
 
@Sam - Sorry? :P
 
@Cat die
 
Sam
5:04 PM
Don't be :p
 
@Sam Is this the right URL: http://chat.stackoverflow.com/chats/leave/68414
POST method...
Should I send any params?
 
Sam
Yes, your fkey
 
Oops! Something Bad Happened!
Ah... Okay.
@Cat bye
Request URL: chat.stackoverflow.com/chats/leave/68414
Request Method: POST
fkey: my fkey
@Sam tell me if that's right?
@Cat hello
 
user5915243
Hello, World.
 
Awesome...
@Cat bye
She's not leaving!!! :(
 
Sam
5:08 PM
@PraveenKumar And quiet: true
Not sure if that'll help
 
@Cat bye
Status 200 OK. Body length 0
 
user5915243
Hello, World.
 
Sam
Well I'm not sure then, it works fine in my lib.
 
Nopes.. She's not leaving...
Lemme try in a different way... LoL am I messing up and spamming the room? :P
 
Sam
Nope
It is the testing facility after all
Spam away
 
5:13 PM
Ha ha... Thanks man...
> XMLHttpRequest cannot load openid.stackexchange.com/account/login. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
 
Sam
Are you setting the origin?
 
Er.. Was working with Postman, and it worked..
I am not I guess.
What should I do in JavaScript to set the origin?
 
Sam
Wait actually
 
Sam
You shouldn't need to set the origin
 
5:20 PM
Eh?
 
Sam
I don't set the origin or referrer there
It's just a straight GET
 
This is because Chrome is preventing.... Sorry, I should have said you.
 
Sam
lol
 
Fine no worries. I am running the chat-bot on Chrome now.
LoL.
 
Sam
ok
 
5:22 PM
@PraveenKumar - So you are just makng POST / GET requests?
 
@TheLostMind For now, yes.
 
Never done socket programming before.. Will try it in Java..
 
I guess best is to use the websocket for this...
Yea, same here... Not much exp with WS.
 
and bug @Sam until he runs away :P
 
Sam
5:23 PM
:p
 
I see.. hmm nice
 
I have started a headache... LoL.
The leave function alone is not working.
Lemme login as her and leave the room LoL.
 
lol.
Thats why I am going to try this with a fresh mind tomorrow :P
 
Gaaargh!!!
Okay... Last attempt. LoL.
@Cat bye
Wow... :D
I believe I need to give these:
 
Sam
Whatever works
 
5:27 PM
Works in POSTMan... Grrr...
 
@Sam - How long have you been in the bot business ? :P
 
Sam
Hmm
 
@TheLostMind LoL
 
Sam
@TheLostMind Since Sep 2014.
 
Oh.. Nice
 
6:19 PM
@PraveenKumar I never leave.
 
6:40 PM
@bjb568 ?
 
muahahahaha
 
@bjb568 Go home, cat. You are drunk!
 
:p
 
Sam
6:54 PM
Yay, finally making progress with the tagger
 
@Sam Enjoy...
 
Sam
No where near finishing it yet :p
 
 
1 hour later…
8:14 PM
@Sam I almost gave up with @Cat.
 
Sam
What happened?
 
 
1 hour later…
user3956566
9:27 PM
@Sam look at this amazing answer
 
Sam
:o
That's pretty impressive
 
user3956566
the other thing is, I think it would be helpful if we put the key tag with the possible dupe, to assist dupe hammers
 
user3956566
also then it's possible to use the bot in multpile rooms, but filter what is posted by tag
 
Sam
Oh, that should be easy.
 
user3956566
I disrespect you so much with my porr typin' in 'ere
 
user3956566
9:30 PM
so lazy
 
Sam
I haven't been able to get much work done on it since I kinda got myself kicked from the API for 45 days.
@MsYvette lol
 
user3956566
what???????????????????????????
 
user3956566
LOLOL
 
user3956566
Hoooooooooooooooooooooow??
 
Sam
No idea.
 
user3956566
9:31 PM
contact them
 
Sam
I was debugging some API related stuff
 
user3956566
hm
 
Sam
Next thing I know, I've been throttled.
 
user3956566
but does that mean we all could be kicked
 
user3956566
I'll get Shog
 
user3956566
9:32 PM
to the tavern
 
Sam
@MsYvette Nah, my IP will change soon enough.
@MsYvette No no. As long as we don't make more than 30 reqs/sec
 
user3956566
ok
 
Sam
Which, I still don't know how I could've done that.
Meh, whatever.
 
user3956566
I was wondering that also
 
Sam
So instead
 
user3956566
9:33 PM
we should look at it
 
Sam
I started work on the pos tagger
 
user3956566
:D
 
Sam
I'll push my code then
One sec
 
user3956566
ok
 
Sam
Pushed
 
user3956566
9:35 PM
danke
 
Sam
The SeApiAccessor.GetQuestion method is still under construction atm.
Well, back to porting this Java lib to C#.
 
user3956566
that's ok, we're going for proof of concept and I suspect there will be a lot of refinement before it goes live
 
Sam
Definitely
And they obviously won't need to worry about api throttles. :p
 
user3956566
I understand though, as I don't want you to think it's my final code, as I can see glaring faults, but my focus has been a framework
 
Sam
Oh, I totally understand
 
user3956566
9:40 PM
this answer is amazing
 
user3956566
I've learnt a lot from asking this question and I don't understand the downvotes.. SO is like that.. cos I have to be careful how I word it, not too broad, no best practivces, I asked a yes or no Q and relied on the answerers to elaborate
 
user3956566
> I also know that it will indeed be a hostname, rather than e.g. a short treatise on mediaeval and early-modern beliefs in the apotropaic qualities of bezoars.
 
Sam
Hmm, yeah.
I think some people just DV because they view the Q as newbishly simple.
I've seen people act like this before.
Though I'm not sure if the Q would be better suited to programmers.se.
 
user3956566
I kept it simple, I thought of dressing it up, but I really think simple can be best at times
 
user3956566
@Sam ahhh
 
Sam
9:44 PM
Oh, wait. You're asking if you can.
I thought you were asking if you should.
 
user3956566
yes I wanted to know if we can
 
Sam
There's only one way to find out ;)
 
user3956566
and I wanted to understand the ins and outs of using constructors that can throw exceptions
 
Sam
Ah, right.
 
user3956566
I know Sam, but I wanted to get expert info on it
 
Sam
9:45 PM
I think your Q would've benefited from that.
 
user3956566
I usually find out by trying, but man, I've learnt so much
 
user3956566
> understand the ins and outs of using constructors that can throw exceptions
 
user3956566
too broad
 
Sam
Hmm
 
user3956566
if you think it can be worded better (and maintain the answers), please feel free to edit
 
Sam
9:46 PM
Sure
 
user3956566
I really like it when people improve my posts, I'm acutally sucky at asking questions, look at my SO and meta records
 
Sam
I can't think of anyway to improve the Q without making it OT.
Or invalidating the current answers.
afk
 
user3956566
10:01 PM
@Sam
 
user3956566
how about
 
user3956566
> Can you use a throw or try and catch within a constructor?
 
user3956566
> If so what is the purpose of having a constructor that has a argumebt that can throw an exception?
 
user3956566
also I'm going to start on the docs so we don't have a load to get through at the end
 
Sam
10:51 PM
@MsYvette Well, if it doesn't invalidate the current answers, then I'd say it's an improvement.
Ok
Afk again
 
user3956566
me too
 

« first day (400 days earlier)      last day (3004 days later) »