« first day (900 days earlier)      last day (4060 days later) » 

5:00 PM
Let's build the rules, implement a system and let the bot only echo out what he would do. Then, you can check that and see if it's working
 
Sounds good.
Let me get to my laptop. Gimme 10 minutes or so. Outside right now
 
Sam
Do you want to calculate points as well? 7 bogus answers shouldn't trigger automatic acceptance.
 
Yeah we'll probably take those into account
 
Yes, we'll need to characterize a "good answer/question"
 
5:02 PM
Up votes on android are rarer than most tags, so in most cases even one up vote on an answer will mean it works
On the other hand, absolutely terrible questions get up votes
 
Sam
Questions with a positive score that aren't closed seems like a good starting point
 
@sam I've seen a lot of bad questions get up votes.
 
And we should take the "latest" activity into account, not what was a few months ago
 
And a lot of questions go unclosed too
Yeah
 
Come on man
you guys are cancelling each others points
 
5:04 PM
Lol. We'll agree eventually
 
That's called a discussion
 
And that's when we know what will work
 
Sam
It's a debate, it what should happen. We're all "right"
 
we can just go for answers having at least 20 rep.(means 2 upvotes)
 
20 rep is the minimum to chat anyways
 
5:05 PM
Also, rep doesn't mean anything
 
You can't request access with less than 20
 
Sam
Might want to consider how many days a user has logged in
 
Hmm.
 
I wouldn't
 
@Sam great point
 
Sam
5:05 PM
@LukasKnuth Easy for us to say.
:)
 
Heh. Rep doesn't mean much skill wise
 
regular users should get access only
 
<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>
 
Sam
The <center>!
 
Earlier today I saw a 3k+ user request access
 
5:06 PM
It can't hold!
 
200 something questions, 11 answers
 
oops!!!
 
Plus there's people like blankman
10k+ questioners
 
Sam
Was the 3k user "worthy"?
 
Nope
 
Sam
5:07 PM
I assume no
 
10k questions ? question bank
 
Even his chat history was all help
Nah 10k rep
Few thousand questions
 
@RaghavSood chat history could be tricky
 
Brb
 
Sam
That's the trouble with all of this, there are so many caveats...
 
5:08 PM
But it's a fun thing to implement
 
Sam
Honestly, Raghav can type faster outside on his mobile than I can on a keyboard.
 
Another thing that comes to mind is, helping the community by flagging/editing/closing. I haven't answered a question in 2 weeks.
 
Back
@Sam SwiftKey helps :P
 
Sam
Still I'm just slow.
 
I type a lot, both on mobile and normal keyboard
Several hours a day
Being in highschool means I usually text a bunch of friends :P
Even more so since we have holidays, and don't meet in school
 
Sam
5:12 PM
@LukasKnuth Most of the room's owners fall into that category: present but not active answerers
Except Raghav, obviously
 
thats why I brought it up
 
So how about we take 5 most recent questions and answers, plus chat history
 
Make that "5 most upvoted"
 
Sam
I don't have five questions...
 
Hmm. But with users with lots of questions, there's likely to be some good ones, even if the user is a help vamp
For people with less than five, take everything
 
5:14 PM
I'd say take all of them and look at the average vote.
If it's less then 1, he sucks
 
Sam
Will the scores for 5 q/a be averaged? What's the cutoff? 5, 7, 10?
 
okay How about we put all these rules into a command, and then run it on our correct users and see the results
That should tell us the cutoffs
 
If you have three questions with 5,7,10 upvotes: 5+7+10 / 3 = 4
Sounds good
 
Now for the hard part. How do I actually make the command? :P
 
!/help
 
I'll take it step by step. Outsource the recent chats part to PHP because there's no chat API
 
I read that yesterday, it's pretty straight forward.
 
No I know how to add it to the bot. Been doing that a lot recently
I'm talking about converting our rules to actual code :P
 
ahh
well, for question/answer stuff, we have a neat API
 
I'll make it a command to begin with, and turn it into a plugin later. Commands are easier to add to the bot.
 
Sam
5:19 PM
Can you cut and paste the existing ratio calculation?
!/user
 
Yeah that shouldn't be too hard
!/stats
 
@RaghavSood Command stats does not exist. Did you mean: stat
 
Sam
Nope, perhaps stat
 
!/stat
 
5:19 PM
@RaghavSood Raghav Sood has 22615 reputation, earned 94 rep today, asked 12 questions, gave 1034 answers, for a q:a ratio of 6:517.
 
Sam
Bingo
 
goes to find stat file
found it
 
!/stat
 
@Shaggy Shaggy has 5632 reputation, earned 10 rep today, asked 28 questions, gave 337 answers, for a q:a ratio of 28:337.
 
goes to program a tree
 
5:20 PM
cool
 
!/stat CommonsWare
 
@RaghavSood User Elusio proved elusive.
 
!/stat 115145
 
Sam
Ha... not an active user
 
@RaghavSood CommonsWare has 272227 reputation, earned 230 rep today, asked 13 questions, gave 9577 answers, for a q:a ratio of 13:9577.
 
5:21 PM
IDs work even if they're inactive :P
!/stat 22656
 
@RaghavSood Jon Skeet has 549983 reputation, earned 350 rep today, asked 28 questions, gave 25194 answers, for a q:a ratio of 14:12597.
 
Sam
I enjoy that error message alot
 
!/stat 39677
 
ugh
 
@RaghavSood Blankman has 21352 reputation, earned 25 rep today, asked 1839 questions, gave 9 answers, for a q:a ratio of 613:3.
 
5:22 PM
i thought sqlite wasnt case sensitive?
 
@JMRboosties It isn't
 
for me right now it is
 
Sam
Unless you're sorting
 
whoever built this DB might have made it so
nah, just a simple query
 
SELECT * FROM tablename is the same as select * from tablename
 
5:23 PM
no no no
 
Sam
What's the query and schema?
 
sorry
 
Sam
!/tell Raghav no
 
@Raghav NO!!!
 
Sam
:)
 
5:23 PM
SELECT * FROM table WHERE name = "billy" doesnt work
 
Sam
Couldn't resist
 
SELECT * FROM table WHERE name = "Billy" does
 
Oh you're searching column values
 
yup syntax isn't case sensitive
actual value should be.
 
@RaghavSood yea. i swore it wasnt case sensitive
 
5:25 PM
60
Q: How to set Sqlite3 to be case insensitive when string comparing?

quantityI want to select records from sqlite3 database by string matching. But if I use '=' in the where clause, I found that sqlite3 is case sensitive. Can anyone tell me how to use string comparing case-insensitive? Thank you very much!

Using like instead of = should let you do it without recreating the db
SELECT * FROM table WHERE "name" like "Billy"
 
recreating the DB actually isnt a big deal
thanks
 
Sam
!/cat
 
!/stat
 
@Ahmad Ahmad has 8775 reputation, earned 39 rep today, asked 41 questions, gave 450 answers, for a q:a ratio of 41:450.
 
5:28 PM
!/what
 
@JMRboosties Command what does not exist. Did you mean: whyt
 
!/what does this do
!whyt
 
@JMRboosties Y U NO MAEK SENSE!? Could not understand whyt (perhaps you meant to execute a command? If so, prepend the command name with a /)
 
it's a bot :D
 
!/help
 
Sam
!/tell JMRboosties help
 
broke :)
 
thats funny
 
@LukasKnuth Your regex is floating around in my stat file -.-
 
Sam
The bot doesn't send rapid fire duplicate responses.
 
5:29 PM
indeed it does.
Quick Poll: Traversing a Binary Tree would always give you a List, wouldn't it?
 
Sam
!/stat
 
@Sam Sam has 32705 reputation, earned 160 rep today, asked 3 questions, gave 1439 answers, for a q:a ratio of 3:1439.
 
!/stat
 
Sam
I want to hit the 10% subcase...
 
@LukasKnuth Lukas Knuth has 10227 reputation, earned 5 rep today, asked 32 questions, gave 546 answers, for a q:a ratio of 16:273.
 
Sam
5:30 PM
!/stat 1
 
@Sam Jeff Atwood has 25103 reputation, earned 10 rep today, asked 15 questions, gave 137 answers, for a q:a ratio of 15:137.
 
HA! Better than Jeff :D
 
!/stat
 
!/stat 2
 
@JMRboosties [JMRboosties](http://stackoverflow.com/users/588758/jmrboosties) has 1405 reputation, earned 10 rep today, asked 75 questions, gave 28 answers, for a q:a ratio of 75:28.

@LukasKnuth [Geoff Dalgas](http://stackoverflow.com/users/2/geoff-dalgas) has 1634 reputation, earned 0 rep today, asked 7 questions, gave 5 answers, for a q:a ratio of 7:5.
 
Sam
5:31 PM
Whoops it got confused.
!/stat 2
 
@Sam Geoff Dalgas has 1634 reputation, earned 0 rep today, asked 7 questions, gave 5 answers, for a q:a ratio of 7:5.
 
Hmm. JMR would probably be failed by our bot
75:28
 
why would i fail a bot
 
Sam
Trying to write automatic accept/reject rules...
For most people a poor ratio indicates they won't be a good addition to the room.
!/stat 420
 
@Sam Alex has 1144 reputation, earned 0 rep today, asked 22 questions, gave 12 answers, for a q:a ratio of 11:6.
 
5:34 PM
yea i got in before people started caring about that
 
Sam
!/mustache JMRboosties
 
@Sam Y U NO MAEK SENSE!? Could not understand mustache JMRboosties (perhaps you meant to execute a command? If so, prepend the command name with a /)
 
lol
 
Sam
Dude, you're eating your mustache...
!/mustache Shaggy
 
5:36 PM
your mustache needs to be fixed
 
Sam
Boo
 
where is mine ?
 
!/info
 
@RaghavSood I awoke on Wed, 03 Apr 2013 16:38:34 GMT (that's about 58 minutes ago), got invoked 29 times, learned 11 commands
 
@Shaggy Not all users get a mustache. The placement algorithm isn't perfect, and probably doesn't work well with cartoon faces
 
5:37 PM
@RaghavSood I awoke on Wed, 03 Apr 2013 17:37:43 GMT (that's about 8 seconds ago), learned 11 commands, teleported 7 goats
 
does it try to look at faces or something
 
!/listcommands
 
@RaghavSood userquality, docs, catgif, cat, whoami, help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, accept, addid, awsm, beautify, convert, get, google, hang, karma, learn, defuser, slugcat, logcat, redo, mad, 42, echo, whathaveyoutried, no, php, whyt, mustache, nudge, reject (page 0/1)
 
!/logcat
 
!/help userquality
 
5:38 PM
@JMRboosties Post the logcat, we can't see it from here.
 
Sam
Goats? We're part of google now?
 
@RaghavSood userquality: Reports userquality
 
!/choose
 
!/userquality
 
Placeholder for now
 
5:39 PM
Okay so I got the command in place. Now to calculate quality.
 
Sam
!/info userquality
 
@Sam Command userquality, created by God, invoked 1 times
 
!/userquality
 
Placeholder for now
 
boo
 
5:42 PM
!/tell JMRboosties not to Boo the bot
 
@Shaggy Command not does not exist. Did you mean: no
 
lol :P
let me copy one
!/tell JMR no
 
@JMR NO!!!
 
so only NO works ?
 
Sam
/no is a command. Get them all with /listcommands
!/tell Shaggy norris
 
5:44 PM
@Shaggy Most tough men eat nails for breakfast. Chuck Norris does all of his grocery shopping at Home Depot.
 
anyone created expansion file for their app ?
it says in the docs
<shared-storage>/Android/obb/<package-name>/
so for me sdcard/Android/
now i have data folder here
i create obb here right ?
and is the path correct
 
Don't think anyone's worked with extension files here
 
how come :O
50 mb is such a small limit for app
 
50 MB is a lot
 
and with 4 dpi devices the images itself takes 50 mb
well i do have 30 screen :P
in the app
 
5:54 PM
Whatever do you need 30 screens for?
 
same screens just different image
storybook type
 
!/userquality RaghavSood
 
@RaghavSood Could not process input. Error: msg is not defined on line 7340
 
Welp
!/userquality RaghavSood
 
@RaghavSood Could not process input. Error: msg is not defined on line 7340
@RaghavSood Could not process input. Error: extended is not defined on line 7347
 
5:59 PM
-.-
 
Sam
7 lines farther is progress... :)
 
I miss compile time errors :/
2
!/userquality RaghavSood
 
@RaghavSood Could not process input. Error: args.send is not a function on line 7354
 
I will rip you apart line by line and feed you to file overwriting methods rage
3
!/userquality RaghavSood
 
Placeholder for now1069068
 
6:05 PM
!/userquality 1069068
 
Placeholder for now1069068
 
Now we're getting somewhere :D
 
!/userquality Alin
 
Placeholder for now379865
 
!/stat
 
6:10 PM
@Alin Alin has 1481 reputation, earned 10 rep today, asked 111 questions, gave 33 answers, for a q:a ratio of 37:11.
 
niiiice
Good job Ragnav
 
stat was made by zirack :P I'm ripping it apart and putting it back together to make the bot more botty
 
!/accept surlac
 
@surlac Welcome! Please read the room rules
 
Sam
Can... can we mustache new users by default?
(No, I'm not serious.)
 
6:22 PM
While that'd be fun, I can't seem to get any code to run when a user joins the room.
That's why the welcome message failed too
 
Sam
6:46 PM
!/docs ContactsContract
 
@Sam ContactsContract - The contract between the contacts provider and applications.
 
Sam
A summary too, good addition.
 
Yep. Added that at Lukas' request. Then DaveRandom turned it from a hash of string functions into a nice DOM parser with caching. Works faster now :D
 
Sam
DaveRandom++
RaghavSood++
LukasKnuth++
 
Hello
 
Sam
6:50 PM
Hi. Hangman?
 
Si senor
 
Sam
!/hangman
 
put it to work!
 
@Sam Command hangman does not exist.
 
O_O
 
Sam
6:51 PM
!/listcommands
 
le what
 
!/hang
@Sam userquality, docs, catgif, cat, whoami, help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, accept, addid, awsm, beautify, convert, get, google, hang, karma, learn, defuser, slugcat, logcat, redo, mad, 42, echo, whathaveyoutried, no, php, whyt, mustache, nudge, reject (page 0/1)
 
Sam
!/hang
 
  +---+
  |   |
  |
  |
  |
__+__

----------
 
6:52 PM
Use !/hang letter
 
!/hang a
 
  +---+
  |   |
  |
  |
  |
__+__
a
-----a----
 
Sam
!/hang e
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, e
-----a----
 
!/hang b
 
6:53 PM
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, e
-----a----
 
Sam
!/hang i
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, e, i
-i-i-a-i--
 
Sam
woh
 
lol
 
Sam
%ng
 
6:54 PM
!/hang t
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, e, i, t
-i-i-a-it-
 
Sam
I thought it would end in ing
!/hang h
 
might end with a y
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, b, e, h, i, t
-i-i-a-it-
 
!/hang y
 
6:54 PM
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, b, e, h, i, t, y
-i-i-a-ity
!/hang m
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, b, e, h, i, m, t, y
-imi-a-ity
 
Sam
I should see it by now...
 
!/hang p
 
should being the operative word
 
similarity
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, b, e, h, i, m, p, t, y
-imi-a-ity
 
Sam
6:56 PM
!/hang l
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, b, e, h, i, l, m, p, t, y
-imila-ity
 
ahh
 
!/hang s
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, b, e, h, i, l, m, p, s, t, y
simila-ity
!/hang r
 
!/hang r
2 Points to Mr. Foam
 
@AndroidBot Correct! The phrase is similarity.

+---+
| |
| O
|
|
__+__
r
------
FoamyGuy++
 
Sam
6:57 PM
Whoops it started a new game.
!/hang t
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
e, r
------
!/hang l
 
hehe
 
@AndroidBot Only alphanumeric and whitespace characters allowed
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, e, r
-a----
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, e, m, r
-a----
 
!/hang p
 
+---+
| |
| \O/
| |
| /
__+__
a, e, m, p, r, t
-a----

+---+
| |
| \O/
| |
| /
__+__
a, e, l, m, p, r, t
-all--
 
Sam
6:59 PM
Foamy?
 
!/hang m
oh lol
 
yup?
 
@kabuto178 m was already submitted
 
!/hang z
 
@kabuto178 You people suck. The phrase was gallon
 
Sam
6:59 PM
Any guesses?
 

« first day (900 days earlier)      last day (4060 days later) »