« first day (531 days earlier)      last day (2870 days later) » 

1:55 PM
@NobodyNada I'm currently making a few modes for the bot. And the filter I was working on seemed to be a bit of a failure.
So I think for now two filters are enough
BTW, I didn't work on the bot for the last two days. Just took some rest
 
2:28 PM
@AshishAhujaツ I've been taking a break from the bot too. I don't usually like to work on just one project for more than a couple weeks.
 
 
5 hours later…
Sam
7:15 PM
Hiya
Ok
Right
How well do you know C#?
I assume you know about reflection, lambdas, etc?
Good good
So what exactly are you stuck with?
6
Q: What is the fkey that's present on some pages and what does it do?

MohamadI am a bit reluctant to ask this question since it may appear sinister (or that it may belong to SO), but my curiosity has peaked: I'm wondering what the "fkey" does that gets sent with a new comment. I read here that using a token can help prevent some forms of session hijacking. I would like t...

^ That'll explain better than me
lol
No, you pass it in the request's body.
For most requests, IIRC.
You need to pass it for all chat actions.
It can/does change over time.
However, I don't know precisely how often, so I just re-fetch it ever 24 hours.
Yep
Longest uptime (which I know about) was close to a month.
Even then it was due to the bot's code, not the library.
There may be the odd GET request, let me check.
Oh, uh.
@QPaysTaxes Yes.
Sometimes setting the origin/referrer header is also necessary (for auth).
Every auth.
It depends, which sites do you intend to support?
Right...
No
So for chat.meta.se and chat.so you need to post with the referrer set (you might be able to get away with not setting it; I've never tried).
For chat.se, you need to set the origin and same as above wrt the referrer.
@QPaysTaxes It's a slightly different auth process for chat.se.
@QPaysTaxes Correct.
And then you'll need to handle any confirmation prompts.
Yeah
So you'll get something like: fkey=<some hash>&session=<another hash>
Yeah
It's not JSON or anything fancy.
The .Net lib.
@QPaysTaxes Yeah, I know nil about that project.
Yep
 
JAL
7:50 PM
haha
 
Sam
:P
Huh, apparently address.com is actually a thing.
It's just a Dictionary.
(Easy was of handling multiple user accounts.)
Brb
Back
Ok
 
8:07 PM
@Sam want to help me come up with a low-quality question model sometime?
 
Sam
Sure
 
Should I compile a bunch of known low-quality questions, and save the similarities, or do you think that it wouldn't really return that much useful data, since there are all sorts of low-quality questions
 
Sam
@QPaysTaxes So it can't be manipulated from the calling code.
@JacobGray Not the best time to get into that atm. :)
It'll require a fair amount of planning/thought to get anything decently accurate.
 
@Sam with the current model, it just looks for low english word count, which isn't that accurate

SG Bot Development

A room for the testing of the super goggles bot
 
Sam
@JacobGray Regex?
 
8:17 PM
@Sam for what?
 
Sam
> it just looks for low english word count
 
No, enchant
 
Sam
k
 
basically, a dictionary :P
 
Sam
I'll stop by later (probably tomorrow, if I remember) and have a proper chat about this.
 
8:18 PM
okay :)
 
Sam
Ping me if I forget :)
 
8:33 PM
An error happened in UserTracking (cc @Sam)
0: The request timed out
----
at SOCVRDotNet.UserDataFetcher.GetLastestCVReviewIDs (System.String fkey, Int32 userID, Int32 reviewCount, System.Action throttler) <0x420851c0 + 0x005bf> in <filename unknown>:0
at SOCVRDotNet.User.ScrapeData () <0x4206d2b0 + 0x0025b> in <filename unknown>:0
An error happened in UserTracking (cc @Sam)
0: The request timed out
----
at SOCVRDotNet.UserDataFetcher.GetLastestCVReviewIDs (System.String fkey, Int32 userID, Int32 reviewCount, System.Action throttler) <0x420851c0 + 0x005bf> in <filename unknown>:0
at SOCVRDotNet.User.FetchTodaysReviews (Boolean async) <0x4206c990 + 0x00143> in <filename unknown>:0
An error happened in UserTracking (cc @Sam)
0: The request timed out
----
at SOCVRDotNet.UserDataFetcher.GetLastestCVReviewIDs (System.String fkey, Int32 userID, Int32 reviewCount, System.Action throttler) <0x420851c0 + 0x005bf> in <filename unknown>:0
at SOCVRDotNet.User.ScrapeData () <0x4206d2b0 + 0x0025b> in <filename unknown>:0
 
4 messages moved from SO Close Vote Reviewers
2 messages moved from SO Close Vote Reviewers
 
Sam
9:20 PM
Sure
It sends a HTTP request.
GET or POSt depending on the RestRequest object (it also specifies the endpoint).
Pretty much.
It also sends off any relevant cookies too.
Yeah, that's what it's for :)
It sets the Cookie header
@QPaysTaxes Yes
Meh
It's an internal static class.
Would've made things uglier if I init'd the Dictionary anywhere outside of the class.
 
Sam
9:40 PM
@QPaysTaxes Yeah, except the cookie part, it just sets the cookie header. It doesn't pass 'em in the actual HTTP body.
@QPaysTaxes Also correct.
Uh
 
waffles
 
Sam
I apparently don't lol
 
Give the man a waffle
 
Sam
@QPaysTaxes I don't actually handle that library-side.
The header format is taken care of by the request library I use.
 
 
1 hour later…
Sam
11:11 PM
For which site?
Also, how are you planning on authing?
 
Sam
11:32 PM
Auth with openid.se and fetch your super magical login url thingy.
Then pass that url to the site you wish to login to.
What are you stuck on?
k
TIL unicorns can get stressed
Tough life, eh?
:o
Ok
Which function are you looking at?
Yes
Yep
Well
We still pass the cookie key, but there won't be any cookies to pass since this is our first request.
Nope
Oh wait
IIRC
It reads the response and adds any new cookies to the cookie container.
@QPaysTaxes probably
I haven't checked this sort of stuff in a while
@QPaysTaxes Yes, as the calling code may create multiple Clients for different accounts.
oh, right. Yeah.
I just take whatever cookies are present, from all reqs.
Yes
 

« first day (531 days earlier)      last day (2870 days later) »