kaibadash / waketi Goto Github PK
View Code? Open in Web Editor NEWtwitter chatbot "わけち"
Home Page: http://pokosho.com/b/waketi
License: MIT License
twitter chatbot "わけち"
Home Page: http://pokosho.com/b/waketi
License: MIT License
U+1F3B6
https://github.com/kaibadash/waketi/blob/master/src/com/pokosho/bot/AbstractBot.java#L106
order by rand()
is slow.
see :SQL Antipattern: random selection
mysql> explain SELECT prefix02,suffix,chain_ID,prefix01,start FROM chain WHERE prefix01=44 order by rand() LIMIT 1;
+----+-------------+-------+------------+------+----------------+----------------+---------+-------+---------+----------+---------------------------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+-------+------------+------+----------------+----------------+---------+-------+---------+----------+---------------------------------+
| 1 | SIMPLE | chain | NULL | ref | INDEX_PREFIX01 | INDEX_PREFIX01 | 9 | const | 1986170 | 100.00 | Using temporary; Using filesort |
+----+-------------+-------+------------+------+----------------+----------------+---------+-------+---------+----------+---------------------------------+
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
AbstractBot.java:497
空文字がくるケースがある?
01/05 04:03:51:124 AbstractBot DEBUG
studyFromLine 256 <U+1F62D><U+1F62D>
01/05 04:03:51:167 TwitterBot ERROR
study 348 sql error
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075) ~[mysql-connector-java-5.1.13-bin.jar:na]
05/19 01:00:10:706 AbstractBot INFO
studyFromLine 232 studyFromLine:π_11(S^3) = Z/2
05/19 01:00:10:707 AbstractBot DEBUG
studyFromLine 238 it's not Japanese
05/19 01:00:10:722 TwitterBot ERROR
main 631 system error
java.lang.NullPointerException: null
at java.util.ArrayList.addAll(ArrayList.java:577) ~[na:1.8.0_25]
at com.pokosho.bot.twitter.TwitterBot.study(TwitterBot.java:316
π_22(S^6) = Z/504 + (Z/2)^2
01/16 03:00:10:849 AbstractBot INFO
studyFromLine 232 studyFromLine:π_22(S^6) = Z/504 + (Z/2)^2
01/16 03:00:10:850 AbstractBot DEBUG
studyFromLine 238 it's not Japanese
01/16 03:00:10:873 TwitterBot ERROR
main 631 system error
java.lang.NullPointerException: null
at java.util.ArrayList.addAll(ArrayList.java:577) ~[na:1.8.0_25]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.