« first day (398 days earlier)      last day (2997 days later) » 

user3956566
1:00 PM
you can
 
user3956566
sorry I need to get out of the tavern
 
user3956566
ok this proj now has my full attention
 
Sam
lol np
IMatcher should be ok?
Also
Do we want our matching alogs to return a definitive result (true/false), or a float?
 
user3956566
a float might be better to tweak the tightness
 
user3956566
IMatcher is fine
 
Sam
1:06 PM
Ok
 
user3956566
sorry if you need to get my attention ping me, as I'm looking at the codde
 
Sam
Ok
Just going to push the interface
And chat client initialisation
@MsY
 
user3956566
yep
 
user3956566
ok love
 
Sam
The interface is pretty simple atm
(Just a single method)
But we can add more stuff along the way
 
user3956566
1:13 PM
that's fine
 
user3956566
I prefer frequent pushes
 
Sam
ok
 
user3956566
you right for me to pull?
 
Sam
@MsY Which class(es) are you working on atm?
Yeah
 
user3956566
phrase checker and keyphrases only
 
user3956566
1:16 PM
just marrying them up
 
Sam
Ok
 
user3956566
pushed
 
user3956566
I always rebuild before commiting
 
user3956566
I find lots of commits easier to trouble shoot
 
user3956566
do you?
 
Sam
1:17 PM
I always do a build check before pushing too. :)
 
user3956566
actually, I'll add a test data class
 
user3956566
that is better
 
Sam
But, I sometimes get carried away and end up with a massive commit. lol
 
user3956566
we'll have to think of the best way to manage this
 
user3956566
I will make 10 - 40 commits in a day
 
user3956566
1:18 PM
I have having it work and then it stuffs up and I have to revert too much work
 
user3956566
a Load Data class?
 
Sam
Wait, so what's this for?
 
user3956566
for the strings and regex
 
user3956566
well
 
Sam
Test cases?
 
user3956566
1:20 PM
for the dupe phrases we're searching on
 
user3956566
LoadData not Test
 
Sam
Oh ok
 
user3956566
then it can be read from a file on github
 
user3956566
what do you think?
 
user3956566
nah
 
user3956566
1:20 PM
I need to think
 
Sam
Well, if the data is that complex that you need a separate class just to load it, then sure go ahead.
 
user3956566
we can always change this and develop it. For proof of concept, I'll hard code some data into a class
 
Sam
Yeah, ok
 
user3956566
the data will have a tag and then a list of phrases, but we also need regex?
 
user3956566
if this takes off
 
user3956566
1:22 PM
then we are going to need to add to it, but it means when the bot dies, it will have an increasing start up time
 
Sam
So an array of objects each contains those fields/properties?
 
user3956566
yes
 
user3956566
something like that
 
Sam
Sounds like a job for JSON again.
 
user3956566
so we can then get pKeyPhrase.Tag
 
user3956566
1:23 PM
KeyPhrase.List
 
user3956566
or possibly tags
 
Sam
Right
 
user3956566
why don't we just get it up and running with some hard coded figures
 
Sam
Sure
 
user3956566
and then when we know she works, as a bot can change it?
 
Sam
1:24 PM
I personally can't see the loading code being more than ~10 lines.
@MsYvette Yeah
 
user3956566
@Sam k :D
 
Sam
Ok, just pushing some more bot startup code @MsY
 
user3956566
k
 
user3956566
ok push
 
user3956566
@Sam can I put some code into RunAda?
 
Sam
1:30 PM
Wait not yet
Lemme push
 
user3956566
ok
 
user3956566
sure
 
Ada started.
 
Sam
Good that works
Oh
I apparently already pushed lol
 
@Pham alive
 
Sam
1:32 PM
Killed it
 
@Pham die
:( :(
I wanna kill a bot...
 
Sam
lol
 
user3956566
@Sam ok I'm going to put my start up data in Run Ada
 
Sam
ok
 
user3956566
ah you needing to use that for now?
 
Sam
1:33 PM
@PraveenKumar Maybe you will one day
 
user3956566
how far away are we running her?
 
@Sam Yay!!!
 
Sam
@MsYvette Nope, I'm done
 
user3956566
@Sam what do you mean?
 
user3956566
How far are we from bringing her in here to see if she lives?
 
Sam
1:34 PM
Sorry, my English went out the window.
 
user3956566
I know! :D
 
user3956566
foreigner :D
 
Sam
I've already done a basic startup check
lol
The bot can post messages, etc.
 
user3956566
what I don't understand is how to bring her in here
 
Sam
We just need to add commands.
@MsYvette Just create the config file
 
user3956566
1:35 PM
so can we borrow Hatman's or Phams for now?
 
Sam
Why not just use Ada?
 
user3956566
ok just create a couple of simple commands
 
user3956566
I am happy to write more. I need to see how she works
 
Sam
Here's the basic config:
 
user3956566
@NaveenNikhil hi
 
Sam
1:36 PM
{
  "LoginEmail": "",
  "LoginPassword": "",
  "RoomUrl": "http://chat.stackoverflow.com/rooms/68414/socvr-testing-facility"
}
 
user3956566
my learning curve is the bot side of things
 
Sam
Create a file called "settings.txt" in the output dir
 
user3956566
ok
 
user3956566
I need to actual go set a password
 
Sam
(Don't add it to the solution)
 
user3956566
1:37 PM
I used an open login
 
user3956566
brb
 
Sam
ok
 
user5912150
dammit
 
user5912150
you wouldn't think adding a password would be so mysterious
 
Sam
 
user5912150
1:39 PM
it's only giving options to use an open id or google or fb
 
Sam
Ugh
 
user3956566
I'll figure it out
 
Sam
116
A: How do I change my OpenID provider(s)?

Shog9This gets a bit more complicated when you're trying to add a Stack Exchange OpenID, particularly if you're already using a different SE OpenID. You can't change the email associated with an existing Stack Exchange OpenID. You can create a new one, but the Add Login page doesn't give you this opti...

Maybe that?
 
user5912150
thnx
 
user5912150
ah I was changing the email
 
user5912150
1:44 PM
god job
 
Sam
Sorry, I lied. The config looks like this:
{
  "LoginEmail": "",
  "LoginPassword": "",
  "RoomUrl": "http://chat.stackoverflow.com/rooms/68414/socvr-testing-facility",
  "TargetUrls": ["","",""]
}
Where TargetUrls is an array of dupe targets (urls)
 
user5912150
ok
 
user5912150
output dir
 
Sam
.\Dupes\source\bin\Debug
Or release, if you like debugging in release :p
 
user5912150
oh ok
 
user5912150
1:50 PM
should I worry about the target urls yet?
 
Sam
Nah
I haven't got that far yet
 
user5912150
ok done
 
user5912150
should I log out of this account?
 
Sam
No, you don't need to
 
user3956566
I'm joining you back here
 
user3956566
1:53 PM
so now what?
 
Sam
Well
 
user3956566
you are my teacher at this juncture
 
Sam
We need to hook up the post socket
And add chat commands
 
user3956566
yes
 
user3956566
I need to look at how you've implemented chat commands
 
Sam
1:55 PM
2 main ways of doing this:
 
user3956566
what is the best project for me to look at as an example?
 
user3956566
k
 
Sam
The ugly fast way: one method with a switch/if else chain + cmd logic.
Or
 
user3956566
can we start with that?
 
Sam
The nice slow way: each command has its own class, we then use reflection to gather all the commands and execute the appropriate one.
Sure
 
user3956566
1:57 PM
let's use the dirty hack to get her on her legs
 
Sam
Ok
 
user3956566
and then we can go elegant
 
user3956566
well I'd like to implement these features
 
Sam
Ok
 
user3956566
but I want to get it working to see how it works
 
user3956566
1:57 PM
if that makes sense
 
Sam
I guess you'll be working in RunAda
Yeah, I getchya
 
user3956566
I'm not doing anything else yet
 
user3956566
jsut want to get the bot up in chat with a couple of commands to see it works
 
user3956566
is Hatman a good example of the commands in classes?
 
Sam
Closey is the better example
Hatman, is, well...
 
user3956566
1:59 PM
where is closey's code?
 
user3956566
thnx
 
Sam
The CE.Net example should be enough of an example for the hacky way.
 
user3956566
ah k thanks
 
user3956566
I will have a look
 
Sam
2:01 PM
Although, I just threw everything into a single method with that.
 
user5912150
that's ok
 
Sam
We at least have separated the login from the command handling.
 
user3956566
do you want me to add that taken from the chat example?
 
Sam
Nah
We just need a simple method to handle pings.
 
user3956566
ok I am looking at it
 
user3956566
2:03 PM
I was going to modify the example one
 
Sam
Whatever you find easier
 
user3956566
how will this affect the bot shutdownMre.WaitOne();
 
Sam
It won't.
 
user3956566
ok
 
Sam
I just exposed that for possible future use
 
user3956566
2:05 PM
just going through the code you added
 
user3956566
nice and simple
 
user3956566
yes I wondered
 
user3956566
dumb question
 
user3956566
where is the code for the bot to listen for messages
 
Sam
There isn't any yet xD
 
user3956566
2:07 PM
ah
 
user3956566
so the bot will not be able to respond
 
user3956566
but will be able to talk
 
Sam
Atm, yes
 
user3956566
it
 
user3956566
dam enter key
 
user3956566
2:08 PM
it's good, because I'm getting to know the project and it won't be long before all the dots are connected
 
Sam
yeah
 
user3956566
now talk to me like I'm thick.. how to run the bot in the room?
 
user3956566
I run it from my machine
 
Sam
have you created the config file?
 
user3956566
but to keep a bot running 24/7, you need a machine up and running 24/7
 
user3956566
2:10 PM
yes
 
Sam
Ok
 
user3956566
settings.txt
 
Sam
Well, just run the program.
Either from VS, or just click on the exe
@MsYvette Yup
 
user5912150
Ada started.
6
 
user3956566
CAn you please pin that!!!!!
 
Sam
2:11 PM
:D
Congrats
 
user3956566
My first baby!
 
user3956566
sniff
 
user3956566
I took a screen shot of her first message
 
user3956566
how much time do you have to work on it now?
 
user3956566
what are you up to and what time is it?
 
Sam
2:13 PM
Uh
It's 2:15 pm
 
user3956566
I want to do the bulk of the work
 
Sam
I've got a few hours maybe
I'm flexible
 
user3956566
in that time, can you assist me in getting a listener set up?
 
Sam
Sure
So, atm the chat class doesn't expose anything for hooking up listeners
 
user3956566
so I need to be able to follow the question feed of SO
 
user3956566
2:14 PM
and answer commands
 
user3956566
ye
 
user3956566
s
 
user3956566
hang on got to post in SOCVR room!!! too excited
 
Sam
Ok
lol
 
user3956566
done :D
 
user3956566
2:15 PM
you know I love the bots
 
Sam
The chatRoom field has an EventManager, which'll allow you to add/remove listeners
:)
@MsY Just a reminder, we aren't running the bot in there until we have consent from the other ROs.
Why do I always say form instead of from.
 
user3956566
@Sam yes see my last comments
 
Sam
-_-
 
user3956566
it's s tpyo Sam
 
Sam
Ik
I do it so often.
lol
 
user3956566
2:22 PM
so treu
 
user3956566
OLL
 
Sam
lol
 
user3956566
D:
 
Sam
@MsY So getting back to the chat listeners?
 
user3956566
@Sam ah yes
 
user3956566
2:26 PM
Sam I'm grabbing another coffee
 
Sam
no rush
 
user3956566
I will make her code beautiful and resilient
 
user3956566
just wanted to get the skeleton
 
user3956566
ok coffee and I'll be back
 
Sam
Ok, I'm going afk for 10-15 mins.
Brb
 
Sam
2:46 PM
Back
 
user3956566
hi
 
user3956566
I should've been looking at your code
 
Sam
Lol, I'm just going over the transcript
 
user3956566
in SOCVR?
 
Sam
Yeah
 
user3956566
2:48 PM
we've done good Sam :D
 
Sam
So back to the bot
 
user3956566
ok love
 
Sam
Any progress while I was gone?
 
user3956566
no sorry
 
user3956566
someone answered the meta question
 
Sam
2:51 PM
lol np
 
user3956566
and then he came into chat
 
user3956566
:D
 
Sam
I saw
Yeah
Great to see the room more active
 
user3956566
ok closed those tabs
 
user3956566
yes!
 
user3956566
2:51 PM
there is movement
 
user3956566
chat listeners. let me unzip closey
 
Sam
ok
 
user3956566
I really should write these
 
Sam
Ok, well I'm going to start writing up my matching algo
 
user3956566
ok
 
Sam
2:54 PM
Lemme know when/if you need help
 
user3956566
thanks
 
user3956566
when I write some code, and push I'll get you to look at it
 
Sam
ok
 
user3956566
if you're going to be online, I'd like to get some listeners and commands working and then bring her in here and show you
 
Sam
Sure
 
user3956566
2:55 PM
so which classes are you using?
 
user3956566
checkpost?
 
Sam
(I'm going to be online for most of the day)
Hmm
To start I'll just create a new class
Then I'll see about plugging that into the PostChecker
 
user3956566
so under the directory chatroom, seems to be what I'm after
 
user3956566
ok
 
user3956566
3:25 PM
@Sam I wouldn't mind putting the classes into some directories, how will this affect your work?
 
Sam
I don't think so
Wait
 
user3956566
ok
 
Sam
Which classes are you moving?
 
user3956566
just push your changes
 
Sam
Yeah, one sec
 
user3956566
3:27 PM
post checker and phrase checker into a folder
 
Sam
Oh, ok
That's fine
 
user3956566
ok
 
Sam
I haven't touched those
 
user3956566
which ones have you changed?
 
Sam
Only new files.
 
user3956566
3:28 PM
ah k
 
user3956566
I'll move them after
 
Sam
Ok
Pushing
...
Still pushing
@MsY Done
So you can add your matching algo under /Matchers
Just make a new dir for it to keep things tidy
Wb Gunr
 
user3956566
k thanks
 
user3956566
3:45 PM
@Sam I think I need to go to bed soon, it's nearly 3 am
 
Sam
Sure
 
user3956566
I will work on it more tomorrow
 
Sam
What do you want me to work on while you're asleep?
 
user3956566
I really appreciate your help
 
Sam
Anytime
 
user3956566
3:45 PM
anything you please my dear, you're helping me
 
Sam
Ok
 
user3956566
so far it's more your bot than mine :D
 
user3956566
thanks my dear friend
 
Sam
Lol
 
user3956566
I've been reading code and will feel better to start working on it tomorrow
 
Sam
3:46 PM
Np, I enjoy working on these kinds of projects
 
user3956566
same!
 
Sam
\o/
 
user3956566
\o
 
Sam
o/
 
user3956566
^>^
 
user3956566
3:47 PM
that's a sleepy chirpy bird face
 
Sam
Lol, ok
I think we will in fact need that SO data dump DB
We need to be able to check for dupes across all posts, not just a handful we pick out
So... performance is going to be key.
 
user3956566
definitely
 
Sam
I better start downloading the file now... 8GBs of data.
 
user3956566
wow
 
user3956566
should I download it also?
 
Sam
3:51 PM
You'll need it if you want to debug/run the bot
@MsYvette And that's the zipped size.
 
user3956566
@Sam thanks
 
user3956566
I will leave my pc and modem on while I sleep
 
user3956566
we have a lousy slow connection
 
Sam
Ok
 
user3956566
night!
 
Sam
3:52 PM
Night!
 
 
2 hours later…
6:12 PM
Ada started.
 
6:49 PM
@Pham alive
 
Sam
Killed it again
 
@Sam Can I kill Pham plz?
 
Sam
I'm intermittently running/stopping him
 
I wanna kill him...
 
Sam
And he doesn't have a kill command atm :p
 
6:50 PM
Make me a mardaraaa!!!
Ah... :P
 
Sam
But when I've got one added, sure.
 
:D
I am also planning to make a chatbot...
But first, lemme create the user account. :D
 
Sam
Oh, nice
Which lang?
(Btw, you need to ask the other ROs if it's ok to run it in the main room.)
You can run it here though without any trouble.
 

« first day (398 days earlier)      last day (2997 days later) »