this weblog is moving to dswsis.my.id
Please update to the new address.
Thanks …
Save a file named app.py as follow. This project will need mysql database and a table. Test it by running “flask run” on terminal on same folder with app.py. Prerequsite is pymysql and flask module (do pip install).
This one applied to cpanel 88.0.12, lets say we want to create a pyapp application.
Click the below image on your cpanel to start.
Click Create application then fill in form.
Ruby have its gem command to install package and python have pip. Since python 3.4, pip is included to default install.
On my linux mint pip command is pip3 and i try to list installed package with pip list command.
To install a package try : pip install <package name>
To search a package try : pip search <searched word>
To compile a python script to bytecode we can use py_compile module.
Above we try to compile tk_login_app.py and the bytecode available at __pycache__ folder. We can execute the bytecode as usual. This bytecode cant be used to hide your source code because one can “uncompile” it.
Hooray this is my first python post !
Here i want to share a tkinter based application on python 3 with login form. If user is logging in by clicked a login button then login form will disappear and main form will show up. This code is not connected to database yet ! Only playing with 2 toplevel tk window placement and control its state.
Donwload py source code below.
Postgresql database have an official interface to C programming language and a C++ interface derived from that. C++ is a different language from C and i think it will be more easier to deal with.
Lets give a try on the newest linux mint 20.
1. install libpqxx-dev package (sudo apt-get install libpqxx-dev).
2. install codelite IDE (sudo apt-get install codelite).
3. install postgresql (sudo apt-get install postgresql).
4. create an user (user1) for connecting to postgresql.
I remember need to alter this login.conf for sake of some program to run well but i forgot exactly. Just document it here for reference.
Different with OpenBSD which we can use apm command to check battery status, NetBSD have different way. Below command work well on NetBSD 9 amd64.
envstat -d acpibat0