rexim / freq-parser Goto Github PK
View Code? Open in Web Editor NEWParser of HTML logs produced by freqbot
Parser of HTML logs produced by freqbot
I didn't find any support for h2 yet. As a backup plan we are going to generate an SQL script from the logs. For this we need some sort of variable binding to avoid accidental SQL injections.
Currently we retrieve this information from the log file path.
When I try to insert data into log
table I see the following error message:
DBD::Pg::st execute failed: ERROR: General error: "java.lang.ArrayIndexOutOfBoundsException: 0" [50000-173]
DETAIL: org.h2.jdbc.JdbcSQLException: General error: "java.lang.ArrayIndexOutOfBoundsException: 0" [50000-173]
ERROR: Parameter "#1" is not set; SQL statement:
INSERT INTO log (time, room, sender, type, message) VALUES ($1, $2, $3, $4, $5) [90012-173]
DETAIL: org.h2.jdbc.JdbcSQLException: Parameter "#1" is not set; SQL statement:
INSERT INTO log (time, room, sender, type, message) VALUES ($1, $2, $3, $4, $5) [90012-173] at ../freq-parser/parse.pl line 88, <$fh> line 50.
The problem is reproducible on h2 1.3.173
. When I use 1.3.170
everything works as expected. This is probably a bug of h2. We have to resolve the problem somehow.
Currently the log parsing process consists of two phases:
Currently all unrecognized raw messages are ignored. We should print a warning message for each unrecognized raw message instead.
Nicknames or messages may contain HTML escape characters. We should handle them properly.
In case it is not possible we have a backup plan #2
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.