Coder Social home page Coder Social logo

freq-parser's People

Contributors

rexim avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

codingteam

freq-parser's Issues

SQL Query Building

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.

java.lang.ArrayIndexOutOfBoundsException on inserting data

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.

Show a warning message when a raw message can't be parsed.

Currently the log parsing process consists of two phases:

  1. Extract so called raw messages (a tuple of four strings: time, sender, and two chunks of text) from the HTML
  2. Convert raw message into particular type of a message (regular message, leave message, kick message and so on)

Currently all unrecognized raw messages are ignored. We should print a warning message for each unrecognized raw message instead.

HTML Escape Characters

Nicknames or messages may contain HTML escape characters. We should handle them properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.