2011년 7월 30일 토요일

Paper2 Library Sharing problem.


When you share Paper2's database folders, you may get following error message.



This is happened by accessing database file at the same time from several computers. I fixed this problem using "sqllite" to create a new database file.

Follow instructions shows how to create new paper database from the corrupted database file.



1. Download SQLLITE binary file. 
(http://www.sqlite.org/download.html)


2. Run terminal

3. Run following command in the terminal
     teminal > sqlite3 Database.papersdb
    //next command is check your database, if your database has a problem, errors occur.
    sqllite3 > pragma integrity_check;
     // If you get no error message, Paper2 running problem is not the database problem.
     //Next command is create new database.
    terminal >  echo .dump | sqlite3 Database.papersdb >  DatabaseNew.papersdb.sql 
    terminal >  sqlite3.exe -init DatabaseNew.papersdb.sql  DatabaseNew.papersdb
    //change DatabaseNew.papersdb to Database.papersdb, Before changing, backup your original Database.papersdb. Because there are possibly to loss some records.
    terminal > cp  Database.papersdb DatabaseBackup.papersdb
    terminal > cp  DatabaseNew.papersdb Database.papersdb
    


RPI is not good handling DHT11

Hello? This is failure story about converting c code to python. There is GPIO controlling library on Python such as RPI, wiringPI. But...