Difference between revisions of "User:Alvonruff"

From ISFDB
Jump to navigation Jump to search
Line 7: Line 7:
 
* Python3 does not tolerate mixed tabs and spaces. Convert tabs in all files to 8 spaces.
 
* Python3 does not tolerate mixed tabs and spaces. Convert tabs in all files to 8 spaces.
 
* Use [[User:Alvonruff/Python2.7_Futurize]] to perform a mass conversion from python2.7 to python3
 
* Use [[User:Alvonruff/Python2.7_Futurize]] to perform a mass conversion from python2.7 to python3
* Update to the official MySQL [[User:Alvonruff/mysql.connector]]. There is no python3 support for MySQLdb, which is our current connector. Moving to a new connector is a prerequisite.
+
* The next two items need to be done together, as there is no MySQL connector for python2:
* Update to python3. This can leverage the futurize work, by removing the "from __future__" lines.
+
** Update to the official MySQL [[User:Alvonruff/mysql.connector]]. There is no python3 support for MySQLdb, which is our current connector. Moving to a new connector is a prerequisite.
 +
** Update to python3. This can leverage the futurize work, by removing the "from __future__" lines.
 
* Update all character sets. Final procedure still TBD.
 
* Update all character sets. Final procedure still TBD.
 
** Change the default charset in MySQL
 
** Change the default charset in MySQL

Revision as of 06:23, 23 April 2023

Founder of the ISFDB.

Python3 Notes

General outline of steps to move to Python3:

  • Python3 does not tolerate mixed tabs and spaces. Convert tabs in all files to 8 spaces.
  • Use User:Alvonruff/Python2.7_Futurize to perform a mass conversion from python2.7 to python3
  • The next two items need to be done together, as there is no MySQL connector for python2:
    • Update to the official MySQL User:Alvonruff/mysql.connector. There is no python3 support for MySQLdb, which is our current connector. Moving to a new connector is a prerequisite.
    • Update to python3. This can leverage the futurize work, by removing the "from __future__" lines.
  • Update all character sets. Final procedure still TBD.
    • Change the default charset in MySQL
    • Repair strings which have URL encodings in MySQL

System Upgrade Notes

Details on how to bring up a LAMP stack (on two different OSs), and how to setup https:

User:Alvonruff/Test Page

Other Loose Notes

Obituary Sources

Reading List