« first day (2 days earlier)      last day (2913 days later) » 

7:02 AM
I have entered the hive, ready to obey you @Tunaki
5
blob blob blob
 
7:54 AM
Hello @queen :)
 
: ), I guess she is sleeping, waiting for you your activation call.
 
Sam
Hiya
 
8:11 AM
Good morning
 
 
3 hours later…
Sam
:D
 
Thanks @Sam for your request c# batch number 321 is ready
 
Sam
It works \o/
I just need to work on the report html generator
 
Well you do not need html, you can just parse it in your brain...
 
Sam
:p
 
 
5 hours later…
4:18 PM
Some fun tonight?
 
Sam
Hopefully
I'm still trying to juggle all the stuff running on my server
 
Tell me if you need something.
 
Sam
Will do.
 
I see server is still up python :D
 
Sam
Yeah, I left it running :)
 
4:26 PM
I wonder what is the best ordering of questions?
 
Sam
Score/CV count, maybe?
 
first CV count then (date or vote), maybe roomba last?
 
Sam
Yeah
 
and for dupes?, only date?
 
Sam
Well if you're using my algo you'll get a % of the dupe possibility.
If not, then I guess date will work.
 
4:28 PM
: D, the let me use it!!!
How the heck can I implement it...
load a dll?
 
Sam
I'll put it up on the REST API.
 
Great!!!!!!
First check if you can parse the json, if you get tired of that and I can help you tell me
 
Sam
I use a lib for JSON parsing. :)
 
That's not dirty : ).... put the bots on : )
 
Sam
But sure, I'll keep ya up to date.
@PetterFriberg Yeah ik, I didn't have much choice though.
 
4:31 PM
: ), I also use a lib for json
 
Sam
xD
 
but it would be fun to regex it all : )
 
Sam
rofl
Yeah, have fun with that
 
split, indexOf, trim ...
lol
 
Sam
D:
 
 
3 hours later…
7:12 PM
@Tuna any new, have you discovered something nice?
new = news ; ), the usual typo
 
will take a look at the websocket
and make queen answer something :)
 
lol, can't wait :D, let her answer with a batch :P (there is the new method in CherryPickResult)
 
Did I miss something?
 
EVERYTHING
 
Sam
Lol
 
7:25 PM
@Tunaki Could you make a tl;dr of "EVERYTHING"?
 
Sure
22 hours ago, by Tunaki
Blob blob blob 0
 
Sam
8 hours ago, by queen
Thanks @Sam for your request c# batch number 321 is ready
You'll get a JSON dump of the batch atm
 
> Bad Request (Invalid host)
Is that intentional?
 
Sam
Yes yes, I know. I've been working on it all day.
It's complicated.
 
Sam, 404 on http://chat.stackexchange.com/ws-auth, normal?
 
Sam
7:30 PM
It means you screwed up
 
:(
 
Sam
What are ya sending?
 
@Gothdo we need you for a nice web interface!!!!
 
POST with all cookies roomid and fkey
tell me it isn't named roomid
looking at Sam's code
 
Sam
What's ya POST url?
 
7:33 PM
http://chat.stackexchange.com/ws-auth
oh
of course
NEVERMIND
 
@Gothdo You can download the SOCVRFinder from github and in the SOCVService you will find an executable jar that you can test [you need a jre 1.7 or above]
 
Sam
Ok nvm then
 
yeah
TUNAKI ROCKS
with stackoverflow instead of stackexchange (actual host of the room) it works better. Proof ^
 
Sam
lol
Afk for a few mins
 
7:36 PM
define a few, I miss you already :(
 
Sam
Maybe 20-30?
 
seconds
 
Sam
:)
Minutes
 
That's a lot : )
 
I'll spam in the mean time
Have to keep Petter entertained
 
7:37 PM
:D, you do not know how much I enjoy your spam....
 
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
 
You need the lib folder
and set the class path (log4j and json)
 
haha
Maven Petter, Maven :)
 
Tuna what logger are you using?
 
slf4j-api
it's the standard wrapper
then the client can use the implementation they want
 
7:40 PM
@Tunaki Maven is to complicated form me i need simple stuff split and substring...
 
regex
 
That also is to complicated :D
@Gothdo Are you running from eclipse or double clicking the jaar?
 
@PetterFriberg I'm running in terminal.
I managed to open it, I chose javascript tag and clicked search, and then I got:
> ERROR 2016-05-11 21:42:22,399 [Thread-0] {jdd.so.CVAppSwing$ExcuteRequest} run()
java.io.FileNotFoundException: output/javascript_20160511_2142.html (No such file or directory)
 
Are you on linux, the jar is executable you just need the lib folder in position...
 
I'm on Linux.
 
7:44 PM
:D yeah you need to create the output folder manually : D
Its still a test (I better fix that) (hence output folder is ignore on git)
Note the swing app is only for testing puropse, to see and understand what happens ecc..
Next error what is?, I wonder if it can open the file automatically on linux?
 
I works fine now, but I'll kill you for <td align>.
And also for the lack of doctype.
 
lol, I'm not a html guy...
actually it will send a gzip json to Sam's REST Api (and it works), test it
Sam's just need to fix the output :D
the html is only for local testing
 
> Incorrect response code, HTTP error code 400
 
@Gothdo hmm it works for me javascript
 
5 messages moved to Trash can
 
7:54 PM
yeah it's fun right? :D
 
Tunaki has invited you to join Trash can. See your invitations.
 
:D
 
@Gothdo Still got problem and have understood why?
 
Sam
Back
 
it is coming Petter
@Queen I think Tunaki rocks
huh
 
Sam
8:11 PM
Psst, she's not in the room
 
she should have joined :D
ah yes
wait no
hmmmmmmmmmmmmmm
well it failed before that anyway "Handshake response not received"
 
Sam
Timeout?
 
I think so yes
why would it timeout... hmmm
 
8:36 PM
@Queen I think Tunaki rocks
hmmmmmmm
she did join the room, it is getting better
 
Sam
\o/
 
turns out I was missing the ?l= thingy
 
Sam
lol
 
this is really poorly documented
 
Sam
Yeah, that tripped me up too
 
Sam
Oh nice
 
@Tunaki Yeah I see here
@Sam I have made the call to duplicated target title and duplicated target score.... so you will have them to in json...
 
Sam
Ok, thanks!
 
Sam
Nice :D
 
8:47 PM
@Queen Tunaki rocks
 
@Tunaki You're right, Tunaki is the best!
 
Sam
Woot
 
\o/
 
: D, but I can not star that :D
lol
 
@PetterFriberg You're right, Tunaki is the best!
 
8:48 PM
it is hardcoded :D
 
Sam
:D
 
Now just hard code the call to the CherryPick and we are up and running...
but is the bot listening to ping or parsing all chat events (finding queen)?
Tuna pull the latest update's from git
 
it is listening to all messages but only responding to those, for now, starting with @que
I'll improve that later on but quick and dirty :)
 
aah ok... seems good...
 
8:58 PM
I am. There is a conflict.
HELP GIT CONFLICT
 
on what the settings watch out I have api key in the one pushed...
If you manage take what ever is after the space in @que call and pass it as tag to the chhery pick then when it returns... output the link in getBatchUrl()
I meant no api key!
This is correct settings
API_KEY=
THROTTLE=500
REST_API=http://reports.socvr.org/api/dump-report
and just add your api key...
 
Sam
Afk
 
API key for Queen right?
 
right
 
all right, is there a test class somewhere?
 
9:05 PM
Yeah the CVAppSwing
 
oh there's a GUI
:D
 
she left :(
 
don't worry
 
just missing here
 
okay, so I have a File
in done(File)
 
9:09 PM
no you will not use that
you will use only BotCommands class
 
tell me
 
as previously
call the CherryPicker
it returns a CherryPick and in this you will find the batchUrl to output
This one
public CherryPickResult getCherryPickBatch(long chatRoomId, long userId, String tag, int maxQuestions, String cvFilter, String scoreFilter,
AnswersType answerType, Long minCreationDate) throws CommandException {
you can pass (0,0, tag,20, null, null, null, null)
also the tag can be null it will find the best in any tag
 
all right
 
output in chat the batchUrl you get from the result.
it will take a while to respond since it only using api calls for now... but who cares we can wait 10s
 
LOL
} catch (IOException e) {
    // Who cares
}
^ love that comment
 
9:14 PM
Thats a a typically stuff when you use sonar :D, other wise it complains...
 
okay so first test, I will send the messages with queen
 
> Opps an error occured: Incorrect response code, HTTP error code : 400
I'll do Java, C++ is messing up with URL encoding
Hum no
Ah, it is sending the gzip JSON
let me set that to false
 
what?
@Tuna No we need that
 
Looks like Sam's server went down then
blob
 
9:22 PM
Check that in settings you have exactly "http://reports.socvr.org/api/dump-report" without the /
 
ah no it is not that
I have http://socvr.org/api/socv-finder/dump-report
updating
 
Sam
The server should be up
Unless you DDOS'd it :p
@Tunaki LOL
 
Yeah its up I have test
 
Sam
So true
 
:D, yeah you are looping the questions, not calling Sam's rest :D just output the batchUrl
 
ah yes
 
but let it come :D, I close some
 
9:26 PM
@Queen you're a good bot
 
@Tunaki Okay, blob blob blob
 
Sam
@Tuna don't forget to decode the titles
 
Yes, I log the messages: you&#39;re a good bot
wait
 
ah yes
 
that's some JSON all right
 
:D UP AND RUNNING
 
Sam
:D
 
:D
 
Sam
I aim to start working on getting some nice html displayed on friday
 
9:32 PM
that's really nice already
 
Sam
(I'll be out most of tomorrow)
 
@Queen jasper-reports
 
it's dead
so 2nd test now
You say a tag, I cherrypick
 
Sam
I think it would be nice to use actual batch ids for the report url
Instead of unix epoch
 
Sam as it is structured the key is room_nr, batch_nr
so batch_nr is not enough
 
Sam
9:35 PM
Ohhhhhhhhh
I didn't see that there
Lol
 
well now its Math.random()
 
Sam
rofl
 
but the idea was that each room would have a batch nr that increments as they ask
 
lol
all right
@Queen jasper-reports
 
:30483121 New [@queen jasper-reports] batch: reports.socvr.org/1463002645
:30483121 New [@queen jasper-reports] batch: reports.socvr.org/1463002656
 
9:37 PM
Ups
 
"search_tag":"@queen jasper-reports"
 
lol
 
@Queen jasper-reports
 
@Tunaki New [jasper-reports] batch: reports.socvr.org/1463002762
 
9:39 PM
\o/
 
@Tunaki New [jasper-reports] batch: reports.socvr.org/1463002775
 
why are there 2 results queen
 
Sam
\o/
 
it creates two just to be sure :D
@Tunaki The ids are different it must have called 2 times
 
9:42 PM
Yeah I think the chat event listener got called 2 times, meh
not to worry
AAh no I know
There are 2 chat events, one of type 1 and one of type 8
 
Sam
...
You didn't check the chat events?
 
oh so the ugly starts with can be replaced with events of type 8 :D
I did but then forgot about them and looped around
or 18 for that matter
 
Sam
lol
 
@sam if you like a nicer url I can make the key on tag + batchNr
 
Sam
@PetterFriberg nah, it's fine
I didn't know the room id and batch id were in the json
That's all I need
 
9:47 PM
room id is not :D, i put a timestamp for you... ;)
 
Sam
:/
 
but you have searchTag and batchNr
I set the id on that it can have sense as well
 
@Queen java
 
then I want to try also :D
 
9:48 PM
 
Sam
I had kinda planned to change it to: http://reports.socvr.org/<room id>/<batch/report id>
 
@Queen die
Yay
It stops properly now
 
ok I will pass you room id (what ever tuna passes to me)
 
You need roomId and host
there can be 2 rooms with the same id on stackoverflow and stackexchange
 
Sam
I don't plan on supporting rooms outside of SO :p
Also, there's chat.meta.stackexchange
Anyway, gotta sleep. Cya guys o/
 
9:54 PM
Cya Sam
 
Cya o/
 
@Tuna are you doing some other testing or is it bed time...
 
bed time
do you want another quick test?
 
Na Im happy :D
 
it's great for now
 
10:01 PM
ooh she went to bed as well
 
We have a Bot that cherry pick
 
Yeah really nice...
:D
 
we can pass that to Sam and make a nice report
and then we can send it to chat
 
Yepp, problem solved :D
I will fix the other calls as well, did you see queen went to bed also... :D
 
Yeah, I'm guessing that when the account is logged out for some time, it automatically makes her leave the room
There's an explicit call to do that though, will have to look it up
 
10:04 PM
What is the best way to parse ">4" using regex to replace and find the 4 and the check if remaning is ">",">=" "="
I was think of a class with enum the operator and int the value...
 
hmm, .split("(?=\\d)")
this should split before the number and make an array of 2 elements
yep it works
 
ok... I will move on that but I need to include the negative - in regex
 
what do you mean?
>-4?
 
-?\\d+ for vote count
 
how can there be a negative number of close vote count? :D
 
10:08 PM
one of the parameter is a filter on votes
check the api :D
 
lol
 
cvFilter and scoreFilter
:D
if you like to find quesiton that are negative scored ; )
 
well ">=-4".split("(?=-?\\d)") gives an array of 3 elements: [>=, -, 4]
 
yeah thanks sound like a plan...
moving towards bed, cya
 
better @Petter
">=-4".split("(?=(-(?<=\\D)))|(?=((?<=[^-])\\d))")
Yeah that's some regular expression, it's not my cup of tea, maybe it can be made simpler
but this splits in an array of 2 elements always
[>=, -4] or [>=, 4]
 
10:17 PM
Great thanks! I will try out tomorrow
 
Cya o/
 
10:29 PM
@Tunaki Just as a test, would this work? ([>|<|=]+)([-]?\d)
 

« first day (2 days earlier)      last day (2913 days later) »