Showing headlines posted by dba477

« Previous ( 1 2 3 4 5 6 7 8 9 10 11 ... 28 ) Next »

Setting up KDE Plasma on Rocky Linux 8.4 KVM/VBOX-6.1.26 Guest on Server F34

Following below is a brief set of instructions setting up KDE Plasma on RockyLinux along with Gnome Desktop Manager which is actually needed to support graphical login, otherwise system might be started via text login followed by "startx". The core idea is to install and activate just GDM to make graphical login enabled on Rocky Linux 8.4

Install Sqlitebrowser on RockyLinux 8.4

Following below is a brief set of instructions to install sqlitebrowser on RockyLinux 8.4 , which installs sqlite-devel before building the most recent Python release via source tarball

Python Wrapper for C++ solving the recent YandexQ problem

In this post I follow approach suggested in How to wrap a C++ object using pure Python Extension API which differs from C++ coding technique been presented earlier. Public Class Strike containing method "filter" is supposed to be declared. Later on in PyStrike_init( ) new instance of this class is been created.

Armadillo matrices via NumPy array and Python Extension to C++

The core test is converting numpy array into matrix 5x5 in Armadillo C++ inversion matrix into matrix C and verification myMat * C = E , afterwards we can safely return matrix C to Python Runtime Module

Assembly of Python External C++ procedure returning the vector of strings objects

This post is an immediate followup for the most recent post at Lxer.com regarding return of one string. Consider the task already been treated with 2D vector and dumping the content of vector to disk file. This approach would allow us to solve the same task via to straight forward returning vector of strings from C++ procedure to Python module.

Assembly of Python External C++ procedure returning the value of string type

Writing C++ procedure below we get a final answer as C++ string , then via sequence of operations which convert string to the pointer (say c) to "const char" and finally return required value via pointer to PyObject provided by PyUnicode_FromString(c) to Python Runtime module.

C++ versus Python solving one problem from the field of number theory

The version of C++ code here differs from the first one been posted at Lxer.com . Vector "v1" been pushed back by 2D vector "vec" is supposed to be re-declared before every next push back by "vec" versus option of been cleaned up in previous version of compilation.

Assembly of Python External C++ procedure using 2D vector

I was unable to return 2D vector from C++ to Python via Python API. Thus content of 2D vector has been written to file and later on the Python Runtime Module displayed the content of file been created inside C++ procedure.

Simultaneous assembly Python External C++ procedures returning vector and integer

Simultaneous assembly of two Python External C++ procedures returning sum and sequence of factorials of the first n members of the natural series via Python API. Looks like under any circumstances building external Python procedure in C++ has a significant advantage over C. Just setup.py should be configured to run "gcc" properly against C++ code.

Create Basic Python 3.10(beta) C++ Extensions on Fedora Linux 34

Detecting all prime numbers in given range is supposed to performed by C++ code code below as a procedure invoked from Python. Tested with both Python 3.9.5 and Python 3.10 (beta) via Python API. Refactoring code proposed in python-cpp-extension@github

Exercising to Create Basic Python C Extensions on Fedora Linux 34

This post follows up "Creating Basic Python C Extensions - Tutorial" and does just one update required in static PyMethodDef myMethods still having "METH_NOARGS" instead of "METH_VARARGS", what, actually, confuses inexperienced learners.

Tuning remote connection PyQT5 to Mariadb on Debian Bullseye

Tuning remote connection of PyQT5 to Mariadb-Server as well as to MySQL seemed to me the most time consuming part of this small project. Obviously, the options for Mariadb and MySQL are mutually exclusive. Tuning network configs on bare metal described in details utilizing `netstat -ant | grep 3306` output required to get connection ready

Setting up PostgreSQL 13.2&&Python VENV verified by another PyQT5 module on Debian Bullseye

Expecting Debian Bullseye release to happen pretty shortly (by the end of September 2021) PostgreSQL 13.2 setup has been verified on Debian Bullseye/sid as Oracle's Virtual Box 6.1.22 Guest running in EFI mode along with ongoing hackery of PyQT5 code mentioned in my recent post at Lxer.com

Setting up PyQT5 && Mariadb CRUD Application on Fedora Server 34

Code posted below is actually a kind of POC and may be freely modified any way you like. It is testing standard connection setup Python 3.9.5 to native Fedora's Mariadb-Server running on Server Edition Fedora 34 with Deepin Desktop installed. Here I have to notice then on KDE Plasma 5.20 Desktop instance on the same server seems to be a better choice for PyQT5 windowing running CRUD application with any of Mariadb 10.5 or PostgreSQL 13.2 .

Refactoring PyQT5 OldProgramer's code for Complete CRUD App on PostgreSQL 13.2 (Fedora 34 Server)

That is an immediate follow up for post Setup PostgreSQL 13.2 and PyQT5 to run CRUD App in PyCharm 2021.1.1 on F34. Method updating table students has been added to original code and front-end window has been updated as well to have one more button to invoke "Update table" on the fly

Setup PostgreSQL 13.2 and PyQT5 to run CRUD App in PyCharm 2021.1.1 on F34

  • https://dbaxps.blogspot.com/; By Boris Derzhavets (Posted by dba477 on May 25, 2021 2:22 AM EDT)
  • Story Type: Tutorial; Groups: Fedora, Python
Running PyQT5 CRUD (PostgreSQL 13.2) Application you might experience problem with importing psycopg2 . Posting below briefly provides the way to solve the issue and also describes in details database setup which is tuned specifically for Fedora 34 .

Install Virtual Box on Fedora 34 via rpmfusion repository

The most recent update to Fedora 34 installs kernel 5.11.14 and kernel-devel-5.11.14-300.fc34.x86_64 at a time . What makes possible to install Vitrual Box 6.1.18 via rpmfusion repository .

Setting up PyQt5 in PyCharm 2020.3.5 on Fedora 33 Server

PyQt5 is a comprehensive set of Python bindings for Qt v5. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android. Following below is a brief description to enable PyCharm 2020.3.5 to execute python scripts been written with PyQT5 bindings involved.

Install intellij-idea on Fedora 33 via COPR Repository

Procedure below works quite smoothly and eliminates any issues during similar manual setup which is available as well via `sudo dnf install openjfs`. First enable COPR Repository and perform install . . .

Django 3 Tutorial & CRUD Example with MySQL and Bootstrap on F33 KVM Guest

Regardless I've spent some time to overcome several issues (typos) in Original Howto........I strongly believe that mentioned article is one of the best for beginners to test the taste of Django 3.1.16

« Previous ( 1 2 3 4 5 6 7 8 9 10 11 ... 28 ) Next »