Giter Club home page Giter Club logo

is4c's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

is4c's Issues

Sample data fails to handle incorrect password

The get-lane installation could be fixed up a bit to better handle mysql permissions. Right now, if you agree to install the sample data, but then provide incorrect credentials to mysql, the script just continues. It should probably reprompt for a user name and password that works, or use the root credentials provided earlier in the script.

Possible buffer overrun in ssd.c?

In ssd.c the scannerInput array is defined as follows:

 char scannerInput[12];

But later in the code when the scanner input is read:

  for (i = 0; i < 17; i++) {
       scannerInput[i] = serialBuffer[i+4];
   }

Is this buffer overrun intentional? I have seen this code in multiple is4c forks on github and it has not been corrected. I changed the size of scannerInput to 17 in my own code to correct the issue, and the daemon still appears to run fine. Is there something I am missing?

Installation Failure

Running the command python pos/installation/install_server.py results in the following error:

Traceback (most recent call last):
  File "pos/installation/install_server.py", line 40, in <module>
    install_server_db(*user_input)
  File "pos/installation/install_server.py", line 28, in install_server_db
    exec_scripts(connection, 'is4c_op/data/*.insert')
  File "/Volumes/Webserver/Checkout/projects/is4c/pos/installation/installers.py", line 46, in exec_scripts
    exec_script(connection, script_path, absolute=True)
  File "/Volumes/Webserver/Checkout/projects/is4c/pos/installation/installers.py", line 30, in exec_script
    cursor.execute(sql)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQLdb/cursors.py", line 166, in execute
    self.errorhandler(self, exc, value)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1136, "Column count doesn't match value count at row 1")

This is on OSX using Python 2.6.

Browser hangs after sale ; scale reader ajax is locking up php execute

When the is4c lane scale reader is on it somehow stops the php execute function from synchronising the lane database with fannie. This causes php to hang. The server must be restarted to get things going again.

This happens with firefox and chrome on winxp mysql5 and two different machines one running php5 and the other php4
This effect does not happen with IE because the ajax code in is4c doesnt work with IE.
the ajax scale reader is in chscale.php

I cant imagine how this happens but it is quite weird.
If you put an invalid file name into the argument for the listen function in the ajax code, it all runs ok except of course there is no scale readout!!!

I have also removed the ?rand=randno.99999 from the request to the scale file and there is no difference in operation. The scale writes to this file so I cannot see what use this query is.

Installing sample data fails on products table (column count mismatch).

This used to work, because the script /pos/installation/install_server.py was written specifically with this purpose in mind. However now when this script runs, it fails with the error:

Traceback (most recent call last):
  File "pos/installation/install_server.py", line 40, in <module>
install_server_db(*user_input)
  File "pos/installation/install_server.py", line 28, in install_server_db
exec_scripts(connection, 'is4c_op/data/*.insert')
  File "/home/lance/src/is4c-wedgecoop/pos/installation/installers.py", line 46, in exec_scripts
exec_script(connection, script_path, absolute=True)
  File "/home/lance/src/is4c-wedgecoop/pos/installation/installers.py", line 30, in exec_script
cursor.execute(sql)
  File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in execute
self.errorhandler(self, exc, value)
  File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1136, "Column count doesn't match value count at row 1")

I've verified that the particular SQL script causing this is /pos/installation/mysql/is4c_op/data/products.insert. Apparently the number of columns in the products table (as defined by /pos/installation/mysql/is4c_op/tables/products.table) is different than the number assumed within products.insert.

MySQL bind-address

The default server configuration allows the MySQL default bind-address of 127.0.0.1 to persist. With the bind-address set to 127.0.0.1 no external connections are allowed. Probably not what we want?

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.